High level Microservices Architecture for Event Processing System.
Click on the image to enlarge.
Event Microservices Architecture Description
The green circles represent the wireless hot spots. It enables both wireless mobile and stationed devices to connect to the wired LAN network. The blue circle represents the wired LAN network. The Event Microservices can be accessed via RESTful Web Services. Each rectangle represents a category of Event Microservices. A category may have one or many microservices. All microservices are developed and deployed independently but integrated over RESTful APIs such as HTTP/HTTPS. All these microservices form a network of connected Event Processing System.
Microservices Benefits
Microservices is the right methodology to process events. It provides the following benefits.
- reduce complexity in development
- increase scalability
- increase reusability
- easier to maintain, repair, and update
- increase agility in respond to changing business demands
- independent development, deployment, and execution
- each service can be developed in a different programming language
- avoid single point of failure
Microservices Event System
Event occurs either by a pre-defined time interval or
trigger by an activity. Followings are some examples of Event Systems using Microservices Architecture.
Financial Event System
Financial event is an activity or a transaction a customer
interacts with the bank such as ATM, Banking Center, Online Banking, and etc.
An event would include at least the date when the event occurs, the source
where the event originates, the operation of the transaction, and the customer
information. Collectively, these events provide useful data for the bank to analyze trend for business strategic advantage. An incoming event, depending on its type and operations, may need to be filtered, transformed, aggregated, enriched, and/or routed to external systems.
Train Event System
A train has one or more carts. Each cart has many wheels.
Each cart is uniquely labeled with a name and each wheel is assigned with an
identifier. A stationed camera with triggered sensor need to be installed on the side of
the track. Further, a measured sensor needs to install under the track to
measure each wheel’s status of performance. When a train passes by, the camera
takes picture of each cart and the measured sensors measures each wheel’s
status. The data is then either wireless or wired transferred to the microservices Event System for storage, processing, triggering, and analysis. If an incoming
event indicates a bad wheel, it will trigger or alert other system so that the bad wheel can be replaced.
Battle Field Event System
Every solder has a GPS enabled device that tracks where he is as
well as every body of his team is located at any time. This visual support allows the team to have a better movement and position to coordinate offensive and defensive. It also enables the
superior at the command and control center to create or revise a radical strategy/tactic and instruct the
solders on the battle field to move according to the plan. This device sends and receives signal/event to and from satellite. The satellite communicates the Battle Field Event System and other mobile GPS devices of the soldiers.
Simple ATM Event Microservice source code
Source code for a very simple microservice using Jersey Framework with Grizzly self-hosting service is located in GitHub https://github.com/RichardVYang/microservices
