Amazon announced it could be in EventBridge In order to archive and replay events , such , Use cold （ file ） And the mechanism of thermal event storage , You can replay events during the deployment of a new version of code at the same time , This will enable CQRS/ES The re projection in is used to read the event data of the model .
Event driven architecture uses events to share information between components of one or more applications . Events tell us “ It has happened ”, Maybe you received API request , The file has been uploaded to the storage platform , Or the database record has been updated . Business events describe things that are relevant to your activity , for example , A new customer account has been created , Or the payment has been successful .
To use your own application , Integrated software as a service （SaaS） Applications and AWS Events in services connect applications together , You can use Amazon EventBridge（ No server event bus ）, The bus provides real-time data streams from event sources , And route the data to AWS Lambda Wait for the goal .
The incident tells us a fact , Can be shared with anyone who is interested in this information . After creating a new customer account , This information can be used by new services added , There is no need to change the existing interface . for example , The new fraud detection system may be interested in understanding the creation of all new customer accounts , Because they will be created to perform security checks and assess possible fraud activities .
Sometimes you may need to reprocess past events . In many useful use cases , for example ：
To simplify the operation , I'm happy to share EventBridge Now you can archive and replay Events ：
Archive and replay can handle EventBridge All the events dealt with , Including from AWS platform , come from SaaS Integrated Events and your own custom events .
During the replay , Your current event throughput will not be affected , because EventBridge Separate quotas are reserved for replay . In terms of events published per second , Replay speed with you in the area Current PutEvents Limit identical . If you ask to add PutEvents Service quota , Then playback will be faster . such , Your normal operation will not be affected by replay . however , You should check the performance and limitations of downstream services that handle replay , To make sure they can handle the extra workload .
You can stop playback in progress . You cannot resume a stopped replay , But you can create a new replay , And set the start time to lastReplayedEvent Timestamp of replay that was previously stopped .