- Microservices with Clojure
- Anuj Kumar
- 218字
- 2021-06-30 19:24:33
Asynchronous events
Getting data via service endpoints synchronously may become overwhelming for services that maintain a widely used database, like the users database. Therefore, it is recommended for services to maintain a read-only cache for such databases and keep it up to date asynchronously using events, as shown in the following diagram:

For example, instead of looking up the address or order count using service endpoints synchronously, services such as User Service and Orders Service can publish the events of interest on a message queue in order of occurrence. The User Service can then receive the orders event from the Orders Service via the Message Broker and update its database with the orders count or cache it. Similarly, the Orders Service can receive any address update event from the User Service, keep the address up to date for the user within its cache, and refer to it as and when required to generate orders for users.
- Web安全防護指南:基礎篇
- SOA用戶指南
- 物聯網(IoT)基礎:網絡技術+協議+用例
- 物聯網安全(原書第2版)
- 異構基因共表達網絡的分析方法
- Django 2 by Example
- OpenLayers Cookbook
- Proxmox High Availability
- React:Cross-Platform Application Development with React Native
- 數字通信同步技術的MATLAB與FPGA實現:Altera/Verilog版(第2版)
- 網管員必讀:網絡管理(第2版)
- Microsoft Dynamics CRM 2011 Applications(MB2-868) Certification Guide
- Kong網關:入門、實戰(zhàn)與進階
- 中國互聯網發(fā)展報告2021
- Web用戶查詢日志挖掘與應用