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

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 .
主站蜘蛛池模板: 手游| 丰台区| 金堂县| 漯河市| 乌鲁木齐市| 日照市| 无极县| 樟树市| 雷波县| 梁河县| 彰化县| 怀化市| 弥勒县| 砚山县| 阿合奇县| 高平市| 绩溪县| 沂南县| 准格尔旗| 侯马市| 衡水市| 陇南市| 南漳县| 拜泉县| 长沙县| 安达市| 鲜城| 石渠县| 禹州市| 金湖县| 司法| 靖安县| 祁连县| 永泰县| 甘洛县| 鹿泉市| 和平县| 斗六市| 南平市| 铜鼓县| 海晏县|