Based on microservice principles, we need to have separate microservices for each functionality. After looking at OTRS, we can easily divide it into three main microservices—Restaurant service, Booking service, and User service. There are other microservices that can be defined in the OTRS. Our focus is on these three microservices. The idea is to make them independent, including having their own separate databases.
We can summarize the functionalities of these services, as follows:
- Restaurant service: This service provides the functionality for the restaurant resource—create, read, update, delete (CRUD) operation and searching based on criteria. It provides the association between restaurants and tables. Restaurant would also provide access to the Table entity.
- User service: This service, as the name suggests, allows the end user to perform CRUD operations...