Reader small image

You're reading from  Microservices with Clojure

Product typeBook
Published inJan 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788622240
Edition1st Edition
Languages
Right arrow
Author (1)
Anuj Kumar
Anuj Kumar
author image
Anuj Kumar

Anuj Kumar is the co-founder and chief architect of FORMCEPT, a data analytics startup based in Bangalore, India. He has more than 10 years of experience in designing large-scale distributed systems for storage, retrieval, and analytics. He has been in industry hacking, mainly in the area of data integration, data quality, and data analytics using NLP and machine learning techniques. He has published research papers at ACM conferences, got a few patents granted, and has spoken at TEDx. Prior to FORMCEPT, he has worked with the Oracle Server Technologies division in Bangalore, India.
Read more about Anuj Kumar

Right arrow

Implementing event-driven patterns


Event-driven patterns address the observer model of communication to send messages among microservices. The messages are sent and received through a message broker that acts as a connecting bridge between the sender and the receiver. In a microservices architecture, these messages may be generated as events as an outcome of the action taken by the microservice. Messages for which the source microservice does not expect a response from the target service can be published as events asynchronously, instead of sending them over a REST API for direct communication. Since it is not a direct communication, an event can be published once and consumed by more than one microservice that has subscribed to receive it. Moreover, the sender does not get blocked by the receiver for each event that is published.

Message brokers also help to build a resilient architecture for event-driven communication as receivers need not be available while the event is being produced...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Microservices with Clojure
Published in: Jan 2018Publisher: PacktISBN-13: 9781788622240

Author (1)

author image
Anuj Kumar

Anuj Kumar is the co-founder and chief architect of FORMCEPT, a data analytics startup based in Bangalore, India. He has more than 10 years of experience in designing large-scale distributed systems for storage, retrieval, and analytics. He has been in industry hacking, mainly in the area of data integration, data quality, and data analytics using NLP and machine learning techniques. He has published research papers at ACM conferences, got a few patents granted, and has spoken at TEDx. Prior to FORMCEPT, he has worked with the Oracle Server Technologies division in Bangalore, India.
Read more about Anuj Kumar