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

Isolating services by persistence

In the existing monolithic application of Helping Hands, the consumers and providers database tables are accessed by all the core components of the system, as shown in the following diagram. These tables are prime candidates for being wrapped around a service and isolated in a separate database that is accessible only to the corresponding service directly. All other services must talk to the Service Consumer service and the Service Provider service for any details instead of directly accessing the consumers and providers databases.

Since there is a separate service created to handle the requests for consumers and providers, there is no need to have a service corresponding to the Registration Component. The Service Consumer service and Service Provider service can now handle all the requests to register, modify, or delete consumers and providers, respectively. Similarly, the service and order services can now handle all the requests related to services and orders, respectively, by isolating the corresponding databases. The order service can now talk to Service Consumer, Service Provider, and Service to get the required details for the order.

The Helping Hands application will be using a combination of the Datomic ( http://www.datomic.com/) and Elasticsearch ( https://www.elastic.co/products/elasticsearch) databases for various microservices. Part-3 of this book discusses the persistence layer in detail, and the last chapter of Part-2 introduces Datomic .
主站蜘蛛池模板: 甘泉县| 上虞市| 上栗县| 花莲县| 承德市| 临泽县| 商洛市| 株洲市| 普宁市| 永清县| 昌都县| 新邵县| 凤阳县| 陕西省| 苏州市| 衡山县| 荃湾区| 通榆县| 卫辉市| 米易县| 监利县| 同德县| 青田县| 虞城县| 马尔康县| 庆城县| 阿巴嘎旗| 海安县| 云霄县| 华蓥市| 山阳县| 玉溪市| 华亭县| 永平县| 延川县| 岢岚县| 辛集市| 博野县| 北宁市| 灵寿县| 芦山县|