This chapter covers:
- The nature, purpose and anatomy of CloudEvents.
- A basic walkthrough of creating CloudEvents and using Triggers to route them.
- The major subcomponents of Eventing.
Here comes the next big section. I approach it with some trepidation.
In some sense, Serving is simple: do a thing. Eventing is: say a thing, hear a thing. In Serving, the intention to do and thing done have a relatively predictable temporal coupling. But in Eventing, I can be saying things long before they are heard. I can listen for things that will never be heard. I can hear things long since said. The shoe store point-of-sale system can emit events for sales before the sales forecasting system exists to process them. The inventory system can listen for stock shrinkage alerts that might not occur. And so on.
The underlying model of Eventing is this: Things happen in the world. Some of these happenings are observed. Some of these observations are transmitted from place to place. Receivers of the transmission read the observation, deduce some state of the world, then perhaps take actions. These actions perhaps cause still other observations to arise.