官术网_书友最值得收藏!

OTRS overview

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 on user entities.
  • Booking service: This makes use of the restaurant service and the user service to perform CRUD operations on bookings. It will use restaurant searching and its associated table lookup and allocation based on table availability for a specified time period. It creates a relationship between the restaurant/table and the user:
Registration and discovery of the different microservices

The preceding diagram shows how each microservice works independently. This is the reason why microservices can be developed, enhanced, and maintained separately, without affecting others. These services can each have their own layered architecture and database. There is no restriction to use the same technologies, frameworks, and languages to develop these services. At any given point in time, you can also introduce new microservices. For example, for accounting purposes, we can introduce an accounting service that can be exposed to restaurants for bookkeeping. Similarly, analytics and reporting are other services that can be integrated and exposed.

For demonstration purposes, we will only implement the three services that are shown in the preceding diagram.

主站蜘蛛池模板: 金门县| 津南区| 南京市| 东光县| 威宁| 辽阳县| 海兴县| 固始县| 建湖县| 休宁县| 九龙县| 通化县| 呼和浩特市| 金塔县| 景洪市| 长乐市| 紫阳县| 临安市| 安义县| 萨嘎县| 扎赉特旗| 灌云县| 应城市| 重庆市| 新沂市| 泰州市| 榆树市| 读书| 嘉义市| 松潘县| 应用必备| 孟村| 富蕴县| 广德县| 保山市| 容城县| 万全县| 无锡市| 永定县| 若羌县| 灵山县|