Skip to content
gqlxj1987's Blog
Go back

Event Driven changes everything

Edit page

原文链接

This continuous state of change means that legacy architectures are insufficient or unsuitable to meet the needs of the modern organization. Applications must be able to run 24×7 with 5-9s (uptime of 99.999%), as well as be superelastic, global and cloud native.

to become real time, they must be event driven

A sequence of related events is commonly called a stream

This raises numerous questions. Is ordering important? Do I want to ensure transactionality? How do I trust the execution? Security? Lineage? Where did the event come from?假定事件已经发生了,不可变了,我们的领域模型需要做出什么样的changes来回应这些

CloudEvents的概念

In the real world, the nature of the “event” can be described as:

事件的一些特性

evnet-first所考虑的问题

How is the event treated within a system? All of the following questions get asked as the event-driven architecture is developed:

event-first vs event-command

传统的rest属于event-command,接口/方法/返回值都是确认的,也是同步的

但是event-first部分,只是发一个消息,不确认谁来?

Event-first analog: I walk into a room, generate an “entered room” event and the light turns on. This is a reaction to an event.

Event-command analog: I walk into a room, flip the light switch and the light turns on. This is a command.

The pure event-first approach described above demonstrates:


Edit page
Share this post on:

Previous Post
迟来的2018总结
Next Post
AI projects learn