Internal layering of microservices