July 2017
Beginner to intermediate
358 pages
10h 54m
English
Event processing is a model which allows you to decouple your microservices by using a message queue. Rather than connect directly to a service which may or may not be at a known location, you broadcast and listen to events which exist on a queue, such as Redis, Amazon SQS, NATS.io, Rabbit, Kafka, and a whole host of other sources.
To use our example of sending a welcome e-mail, instead of making a direct call to the downstream service using its REST or RPC interface, we would add an event to a queue containing all the details that the recipient would need to process this message.
Our message may look like:
{ "id": "ABCDERE2342323SDSD", "queue" "registration.welcome_email", "dispatch_date": ...Read now
Unlock full access