C7: Complex Event Processing
Making Sense of Sensor Network Events in Real Time
John DohertySenior Presales Consultant
© 2008 Progress Software Corporation2
Agenda
The World of Sensors A Business Case for Sensor Events in Real
Time Building A Sensor Event Architecture Case Studies
CEP: Making Sense of Sensor Network Events in Real Time
© 2008 Progress Software Corporation3
The world is full of sensors…
Sensor: A device that measures or detects a real-world condition, such as motion, heat or light and converts the condition into an analog or digital representation.
© 2008 Progress Software Corporation4
What are the Top Markets leveraging sensor technology?
Energy Healthcare Logistics Nature & Climate Mobility & Traffic Telecommunications
© 2008 Progress Software Corporation5
The Control Loop
Traffic light iseither red orgreen
Traffic lightbecomes greenon car approach
Traffic light adapts to road blocks and traffic jams
© 2008 Progress Software Corporation6
Connect Sensor Technology to Business IT: Quite a gap…
Large number of small high tech companies Closed circuit/systems – no open access Usually not SOA-aware Little standardization Sensors can spit out very large volumes of data
Sensor Technology Environment
Business IT Environment
GAPAN OPPORTUNITY FOR CEP AND ESB?
© 2008 Progress Software Corporation7
Agenda
The World of Sensors A Business Case for Sensor Events in Real
Time Building A Sensor Event Architecture Scenarios for Traffic Management
CEP: Making Sense of Sensor Network Events in Real Time
© 2008 Progress Software Corporation8
The dependency mismatch: external vs. internal integration
ESB
CEP
104
107
© 2008 Progress Software Corporation9
Reality Check: Sensors, Events, Services and Data are very much related…
Event Service DataSensor
© 2008 Progress Software Corporation10
Making sense of sensor events...
Sensors can provide: real-time data real-life data increased speed and
agility
Sensors can be: very small very cheap wireless
Sensor events: need to be analyzed
• Deltas
• Alerts
• Loss of signal are not equal to
business events
Sensors are: usually not intelligent not error-free
The opportunity… The challenge…
You need an infrastructure to transform sensor events to business events…
© 2008 Progress Software Corporation11
Agenda
The World of Sensors A Business Case for Sensor Events in Real
Time Building A Sensor Event Architecture Scenarios for Traffic Management
CEP: Making Sense of Sensor Network Events in Real Time
© 2008 Progress Software Corporation12
Building a Sensor Event Architecture
SensorDomain
Event EdgeDomain
BusinessDomain
SensorEdgeEvent
ProcessorESB
Actuator
BusinessEvent
Processor
© 2008 Progress Software Corporation13
The Progress Portfolio for Sensor-Driven SOA
ESB
DB SERVICE
BPM REGISTRY BPEL
MANAGEMENT& SECURITY
COMPLEXEVENT PROC
SEMANTICINTEGRATION
MAINFRAMEINTEGRATION
TCP/IPMESSAGING
SENSORS&
ACTUATORS
© 2008 Progress Software Corporation14
ALL WITHIN any 2 minute time period
time
real-
time
data
stre
ams
Traffic Jam Scenario
!
AND ( Average Car Distance decreases by 5%
!
WHEN Weather Conditions are BAD
!
OR Weather Conditions get WORSE )) !
FOLLOWED-BY ( Average Speed going down
THEN Activate Traffic Jam ACTUATORSAND Alert TMC Traffic Centre
Weather Conditions
Average CarDistance
Traffic Density
Average Speed
When does Apama® make sense in sensor networks?
•Multiple (sensor) data sources that need correlation•Large amounts of time-dependent sensor data•Analyse & Filter events•Include temporal constraints•Prediction/anticipation based on sensor feeds•Intelligent decisions (based on rules not part of the sensor network)•Record & replay of sensor events
© 2008 Progress Software Corporation15
Design Choices for Architects (1)…
Base concepts• How quickly do you need to act?
• Do you need to derive values from Event Streams?
• What data do you need to store?
• Do you need to integrate applications across Business Silos?
Platform choice• Apama®
• Sonic™
• OpenEdge®
• All three?
© 2008 Progress Software Corporation16
Design Choices for Architects (2)…
IT Architecture• How will you connect to Apama?• Will you use an Edge Domain (or not?)• What about Fault Tolerance?
Development• Collaboration (Business with IT)?• Do you need to keep the state?• Speed (Time to Market vs Latency)?• What will the interface look like?
© 2008 Progress Software Corporation17
Agenda
The World of Sensors A Business Case for Sensor Events in Real
Time Building A Sensor Event Architecture Case Studies
CEP: Making Sense of Sensor Network Events in Real Time
© 2008 Progress Software Corporation18
Case Studies
Dynamic Parking• Optimization of parking space usage
Health Monitoring• Walkers swallowing pill to monitor vitals
City Ring Parking• Parking registration and billing based on car
location Train Delay Management
• Providing real time service to customers and employees
© 2008 Progress Software Corporation19
Dynamic Parking
Customer: Large telecom operator
Problem: Ineffective use of parking space reservation
Sensors used: License Plate Recognition, road sensors, mobile phones
Technology used: Apama, Sonic, Business Partner Application and existing Reservation system.
© 2008 Progress Software Corporation20
Health Monitoring
Customer: Nijmegen 4 Day Walk
Problem: Walkers Dying due to dehydration.
Sensors used: RFID, Thermometer, mobile phones
Technology used: Apama, GPS, SMS
© 2008 Progress Software Corporation21
City Ring Parking
Customer: Local government
Problem: Charging for road-side parking
Sensors used: License Plate Recognition
Technology used: Apama, Sonic, Business Partner Application
© 2008 Progress Software Corporation22
Train Delay Escalation
Customer: Railway operator
Problem: providing train delay information to customers & employees
Sensors & Actuators used: Train, Mobile phone, Railpocket
Technology used: Apama, Sonic and Google Maps
© 2008 Progress Software Corporation23
In Summary: Making Sense…
Sensor Networks are growing rapidly A SOA Architecture approach is “very useful”
• Not having a SOA will increase complexity significantly Real Time will provide significant value but…
• No investment without a proper business case - Will it Save you Money or Make you Money!
• Avoid re-architecting. It’s resource intensive Architects have to understand the Real Time Paradigm
• Usage of real time paradigm has major impact Progress has the technology to make sense of sensor
network events!
© 2008 Progress Software Corporation24
What Do You Think ?
© 2008 Progress Software Corporation25
Thank You [email protected]
© 2008 Progress Software Corporation26