This is an architectural question.
I am currently in the process of designing a web application and I am used to a basic: frontend, api, database, microservices setup