What is Event Driven Architecture?
Introduction
In this article we will be talking about event-driven talk about architecture whenever we talk about micro services we know that they involved a number of micro services talking to each other you have a number of common components you would have a number of common infrastructure related components like Naming services API gateways centralized logging and a lot of stuff like that and whenever you are going for a micro services kind of architecture even driven architectures are preferred you want to make your processes as event-driven as possible in this article we’d be talking about what is event-driven architecture and what are the advantages of even driven architectures let’s take a simple use case I have an order whenever there is an order.
SMS service would take care of sending an SMS and packaging services would take care of sending the packaging and the delivery request so we have two kinds of architectures our teacher one which is like one component doing everything our teacher to where you have even created and individual components would handle this specific event now how do you make the choice one to go for so if you are in a very simple organization with a few thousand requests not a huge load not huge scalability requirements and in those kind of architectures you can stick with the approach one which is to create single component which does everything
so you know exactly what a package service does SMI service always responsible for sending SMSs out whether the event is from an order service or whether it’s an update order request or any other requests it knows what kind of events it needs to listen to you and what kind of SMS is that it needs to send out so this is specific and tailored for that SMS service so you have individual components with specific responsibilities which is really easy to maintain so that’s number one flexibility and maintainability the second reason why you want to go for this kind of an architecture when you have huge load is scalability so when you have these kind of architectures.
Superb..keep it up
ReplyDelete