- Microservices with Clojure
- Anuj Kumar
- 315字
- 2021-06-30 19:24:38
Isolating services by business logic
Once persistence-based services are isolated, the next step is to evaluate existing components for microservices with respect to business logic. Apart from dropping the Registration Component in favor of separate services for consumer and provider, a new service called lookup can be created to consolidate all the search operations into one service and allow users to search across application entities, as shown in the following diagram. Since databases of consumers, providers, services, and orders cannot be shared with lookup services, it can keep a denormalized (https://en.wikipedia.org/wiki/Denormalization) view of these databases containing only the fields that need to be searched.
Geolocation-based queries will also be limited to lookup services, so there is no need to maintain a separate geolocation service; instead, the Lookup Service itself can query for the geolocation.
Since geolocations rarely change, the Lookup Service can cache them and maintain a database of well-known and already queried geolocations as well for better performance.

The Alerting Component can be isolated as a separate service as it will be required by multiple services, including Order, Service Consumer, and Service Provider, to send alerts to the users. Alerts may be sent via SMS or email, and the Alerting Service can use external services to send the alerts. Since alerts must not be overwhelming for users, the Alerting Service can group by user all the alerts that are requested in a short period of time and send them as a single notification message.
- 網管員典藏書架:網絡管理與運維實戰寶典
- SEO 20日
- WordPress 5 Complete
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- 面向物聯網的嵌入式系統開發:基于CC2530和STM32微處理器
- 射頻通信系統
- 企業網絡安全管理
- 城市治理一網統管
- 城域網與廣域網(第2版)
- Kong網關:入門、實戰與進階
- Unity Artificial Intelligence Programming
- 通信十年:擁抱互聯網
- 工業互聯網創新實踐
- 網絡AI+:2030后的未來網絡
- 物聯網工程概論