- Spring 5.0 Microservices(Second Edition)
- Rajesh R V
- 208字
- 2021-07-02 19:44:54
Supporting event-driven architecture
Microservices enable us to develop transparent software systems. Traditional systems communicate with each other through native protocols and hence behave like a black-box application. Business events and system events, unless published explicitly, are hard to understand and analyze. Modern applications require data for business analysis, to understand dynamic system behaviors, and analyze market trends, and they also need to respond to real-time events. Events are useful mechanisms for data extraction.
A well-architected microservice always works with events for both input and output. These events can be tapped by any services. Once extracted, events can be used for a variety of use cases.
For example, businesses want to see the velocity of orders categorized by the product type in real-time. In a monolithic system, we will need to think about how to extract these events, which may impose changes in the system.
The following diagram shows the addition of New Event Aggregation Service without impacting existing services:

In the microservices world, Order Event is already published whenever an order is created. This means that it is just a matter of adding a new service to subscribe to the same topic, extract the event, perform the requested aggregations, and push another event for the dashboard to consume.
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- 精通Nginx(第2版)
- Oracle WebLogic Server 12c:First Look
- Visual Basic程序設(shè)計(jì)(第3版):學(xué)習(xí)指導(dǎo)與練習(xí)
- DevOps入門與實(shí)踐
- Functional Programming in JavaScript
- Web全棧工程師的自我修養(yǎng)
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Getting Started with Laravel 4
- 低代碼平臺開發(fā)實(shí)踐:基于React
- Learning AngularJS for .NET Developers
- Training Systems Using Python Statistical Modeling
- C語言程序設(shè)計(jì)
- Using Yocto Project with BeagleBone Black
- Python數(shù)據(jù)可視化之matplotlib實(shí)踐