Reader small image

You're reading from  Building Microservices with Node.js

Product typeBook
Published inMay 2024
Reading LevelIntermediate
PublisherPackt
ISBN-139781838985936
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Daniel Kapexhiu
Daniel Kapexhiu
author image
Daniel Kapexhiu

Daniel Kapexhiu is a software developer with over 6 years of working experience developing web applications using the latest technologies in frontend and backend development. Daniel has been studying and learning software development for about 12 years and has extended expertise in programming. He specializes in the JavaScript ecosystem, and is always updated about new releases of ECMAScript. He is ever eager to learn and master the new tools and paradigms of JavaScript.
Read more about Daniel Kapexhiu

Right arrow

Event-driven communication and Sagas with state

Event-driven communication and Sagas and state refer to software and system development concepts, particularly within the realm of microservices architecture.

Event-driven communication

Event-driven communication is a communication paradigm between software components where one component changes its state and emits an event to notify other components. The advantage of this communication model is that it helps reduce system connectivity and enhances reactivity, scalability, and flexibility.

A use case of event-driven communication is that in a distributed system of microservices, event-driven communication is valuable for loosely coupling services and enabling asynchronous, real-time interactions.

For instance, in an e-commerce system, when a user places an order, the order service might publish an OrderPlaced event. The inventory service and payment service, which are interested parties, can subscribe to this event and take...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Microservices with Node.js
Published in: May 2024Publisher: PacktISBN-13: 9781838985936

Author (1)

author image
Daniel Kapexhiu

Daniel Kapexhiu is a software developer with over 6 years of working experience developing web applications using the latest technologies in frontend and backend development. Daniel has been studying and learning software development for about 12 years and has extended expertise in programming. He specializes in the JavaScript ecosystem, and is always updated about new releases of ECMAScript. He is ever eager to learn and master the new tools and paradigms of JavaScript.
Read more about Daniel Kapexhiu