Hi guys, We are working on a project with using Lagom. I am responsible for UI client side and BFF (Backend for Frontend). All client side web requests go to one play service and then goes appropriate private api lagom services.
I want to ask what if i use bff as lagom services ? not as play service. We are not going to use any server side rendering. We just return index.html and other than that we will use only json request, response. (No SEO concerns etc.)
Why i am asking this, play does not work well with maven. For instance, i can not use plays routes file because maven does not generate route. So i am using RoutingDsl. With RoutingDsl, i can not make any websocket connection with (play.routing.RoutingDsl). So lagom services already has exception serializer, request serializer, already has routing features (like optional binding). However, when i check online auction and chirper examples, i saw they are using play services for clientside. If i am not going to render server side for website and bff, should i still use Play or can i use it as lagom services. What is the cons and pros