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

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 .
主站蜘蛛池模板: 清镇市| 泾川县| 阳东县| 天水市| 从江县| 五指山市| 房山区| 抚顺县| 楚雄市| 渝北区| 蓬莱市| 新营市| 毕节市| 孝昌县| 内乡县| 闽侯县| 遵化市| 慈利县| 阿拉善右旗| 和政县| 乌拉特前旗| 海晏县| 德格县| 河池市| 厦门市| 普宁市| 花莲县| 临泉县| 平乡县| 盖州市| 乌兰察布市| 沅江市| 青铜峡市| 靖江市| 新绛县| 抚州市| 西畴县| 宝丰县| 鹿泉市| 宝清县| 霍州市|