My microservice prototype currently has a Spring boot MVC application as its front-end. The application renders the View completely in the backend. It makes rest calls to other microservices like OrderService or ShippingService that are behind an API Gateway. Scaling the micro-services behind the API Gateway is no problem. But scaling the front-end MVC with a session is not that great I guess. I can implement Oauth2 and I could set the fronted also stateless!?
I would also like to know if it is better instead of adding a Spring boot MVC app to each microservice if I just add the HTML to the OrderService and provide a link. When the user clicks it the browser will show the HTML page rendered by the OrderSerice instead of having a REST API?