Complex Event Processing

829 views

Published on

Andy Ennamorato at Ignite night at the Denver Open Source Users Group

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
829
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Complex Event Processing

  1. 1. Complex Event Processing Queries ... on Speed!
  2. 2. WARNING
  3. 3. Relationships
  4. 4. Each item (bride’s shoes, boutonniere, church bells) signifies a larger event - a wedding
  5. 5. Query Data
  6. 6. Data Data Data Data Data Data Data Data Data Data Data Query
  7. 7. Do your queries look like this?
  8. 8. Should your queries look more like this?
  9. 9. The Real-Time Web is coming... “They sort of laugh at me and go, ‘It’s O.K. if it’s a few minutes’ old,’” he said. “And I’m like, ‘No, no, it needs to be every second.’” Larry Page
  10. 10. Basic EPL queries: select avg(price) from StockTickEvent.win:time(30 sec) every StockTickEvent(symbol="IBM", price>80) where timer:within(60 seconds) simple, huh?
  11. 11. Ummm... insert into CombinedEvent(transactionId, customerId, supplierId, latencyAC, latencyBC, latencyAB) select C.transactionId, customerId, supplierId, C.timestamp - A.timestamp, C.timestamp - B.timestamp, B.timestamp - A.timestamp from TxnEventA.win:time(30 minutes) A, TxnEventB.win:time(30 minutes) B, TxnEventC.win:time(30 minutes) C where A.transactionId = B.transactionId and B.transactionId = C.transactionId http://esper.codehaus.org/tutorials/tutorial/transaction_casestudy.html
  12. 12. Where’s the speed? Esper exceeds over 500,000 event/sec on a dual CPU 2GHz Intel based hardware... with 1000 statements registered in the system - this tops at 70 Mbit/s at 85% CPU usage. - 2007 benchmark
  13. 13. Competitive Advantage “Nearly everyone on Wall Street is wondering how hedge funds and large banks like Goldman Sachs are making so much money so soon after the financial system nearly collapsed. High-frequency trading is one answer.” Charles Duhigg, New York Times http://www.nytimes.com/2009/07/24/business/24trading.html
  14. 14. Learn http://espertech.com
  15. 15. Thank You http://www.flickr.com/photos/dittaeva/ http://commons.wikimedia.org/wiki/ 3193192563/ File:Traffic_seen_from_top_of_Arc_de_Tr iomphe.JPG http://www.flickr.com/photos/ pinksherbet/3372160289/ http://www.flickr.com/photos/rutlo/ 3164449930/ http://www.flickr.com/photos/ hortulus_aptus/3789340877 http://commons.wikimedia.org/wiki/ File:Nebraska_State_Historical_Society_ http://www.flickr.com/photos/ Historical_Marker.jpg jenniferchong/3673356796 http://commons.wikimedia.org/wiki/ http://www.flickr.com/photos/klearchos/ File:US_Navy_070824- 620451334 N-0684R-060_An_F- A-18C_Hornet_breaks_the_sound_barrie http://commons.wikimedia.org/wiki/ r_while_making_a_high- File:Schema_database_simplified_ADD_ speed_pass_close_to_the_Nimitz- NEA_march2009-2.jpg class_aircraft_carrier_USS_John_C._Ste nnis_(CVN_74) http://commons.wikimedia.org/wiki/ _during_an_air_power_demonstration.jp File:Oracle_Databases.jpg g

×