4 Streaming complex event processing
This chapter covers
- Identifying streaming data opportunities
- Building a sample threshold event alerting system
- Enriching data streams the static and dynamic attributes
- Joining two or more event streams
- Using event processors in an edge-computing environment
In this chapter you’ll be working with streaming events, which is data that is observed intermittently and without access to complete data. If you’ve ever watched the old I Love Lucy – The Chocolate Factory episode, you already have a mental picture of what streaming events are all about. In the main scene, Lucy and Ethel are instructed to wrap pieces of candy as they roll down a conveyer belt in single row. Lucy and her friend are sternly warned to not let a single piece of candy make its way past them to the packing room without being wrapped. The stream, in this case a conveyer belt, continuously rolls out new events (chocolates). While the event stream (conveyer belt) appears to be moving at a manageable pace Lucy and Ethel very soon find themselves stuffing candy events in their mouths and down their shirts to avoid downstream (the boss) alerts detection. When it is apparent to Lucy that their event- processing technique is not effective in dealing with the onslaught of candies she yells to Ethel, “I think we are fighting a losing game.”