I was learning Spring Boot and found out that you can have multiple servlets in a single Spring Boot application. I was thinking about the use case of having multiple servlets, one that came to my mind was separation of concerns, like different servlets providing different functionalities.
So my questions are:
- What are the use cases of using multiple servlets?
- Considering my assumption about separation of concerns is correct and the rise of microservices, is there still any advantage of using multiple servlets?