Complex event processing [CEP] also known as event, stream or event stream processing is the use of technology for querying data before storing it within a database or, in some cases, without it ever being stored. Complex event processing is an organizational tool that helps to aggregate a lot of different information and that identifies and analyzes cause-and-effect relationships among events in real time. CEP matches continuously incoming events against a pattern and provides insight into what is happening. and allows you to proactively take effective actions.
Complex events are commonly related to important business events [such as opportunities or threats] with the implication that they will be responded to in real-time or at least in something approaching to real-time.
Complex Event Processing is mainly used to address the following requirements: Latency has to be low. It is usually expected to be less than a few milliseconds, but sometimes we can have as little as less than one millisecond, between the time that an event arrives and the moment it is processed. The volume of input events per second is quite high. We can typically expect to have hundreds or even a few thousand events per second. Event patterns to be detected are complex: such as patterns based on temporal or spatial relationships.