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—the restaurant service, the booking service, and the user service. There are other microservices that can be defined in the OTRS, but 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) operations and searching. It provides the association between restaurants and tables. This service also provides access to the Table entity.
- User service: This service, as the name suggests, allows the end user to perform CRUD operations...