AI EncyclopediaAIMore concepts 1
Event-driven architecture
이벤트 기반 아키텍처
A way of designing software in which parts are connected so the system reacts each time something happens.
Overview
Event-driven architecture is a design in which, when something happens, the event is announced as a message and the component that receives it does the work that is needed. The parts do not call each other directly. They go through a channel for events in the middle, so when one part changes, there is less effect on the rest.
This approach has been widely used in settings that must process large numbers of events in real time, such as financial trading, the Internet of Things and cloud automation. More recently, the same principle is also used to build structures in which an AI agent senses a change outside and starts a task by itself.
How it works
When its state changes, a publisher puts a short record called an event into a queue or an event bus. A subscriber picks only the events it is interested in and handles them. When it is done, it leaves the result as another event, and so the flow continues.
Events should be designed on the assumption that they may arrive out of order, or that the same one may arrive twice. If the processing logic is written so that the result does not change when the same event comes many times, you can prevent an order from being paid twice even when the network resends a message.
Where it is used
In e-commerce, when an order comes in, reducing stock, confirming payment and sending a delivery notice are each handled at the same time by separate, independent services. It also fits monitoring factory equipment, where robots and sensors send changes in state.
The condition for using it is that the order of events does not strongly affect the result, or that you can put in a mechanism that guarantees the order. For work that does not need a real-time reaction, batch processing can be simpler and easier to manage.
Limits and misconceptions
It is hard to see in one view where an event started and which path it took, so it can be tricky to find the cause of a failure. So it is usual to design trace logs and monitoring tools along with it.
A common misunderstanding is that event-driven always means fast and reliable. In practice, if messages pile up or are delayed, the whole flow can be held back, and the more complex the structure becomes, the more running costs actually rise.
An everyday example
It is like getting a text message automatically when a parcel arrives at a sorting center. When one thing happens, other connected things start on their own.
Why it matters
As AI agents and automation services increase, many systems have started to become tangled together. If you understand event-driven structure, it is easier to trace what runs where and when, which helps you find problems.
Sources and further reading
Also calledevent-driven design