Our monolith deals with User and UserAddress. So we will break it down into three microservices:
- A user microservice
- A user address microservice
- A gateway microservice
A gateway service is an API between the application client and the services. Using it allows you to simplify this communication, also giving you the freedom of doing whatever you like with your services without breaking the API contracts (or at least minimizing it).