Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

5/24/2018

Reading time:3 min

Using Event-Driven Architectures with Cassandra

by DataStax Academy

Using Event-Driven Architectures with Cassandra SlideShare Explore You Successfully reported this slideshow.Using Event-Driven Architectures with CassandraUpcoming SlideShareLoading in …5× 0 Comments 2 Likes Statistics Notes Radha Krishna Proddaturi , Principal Software Engineer at Coupons.com at Coupons.com Alif Ruliarso , Tech-focused delivering innovative technology and products at Bridestory No DownloadsNo notes for slideC* users should care about their application architecture for the simple reason that C* isn’t magic and can’t do everything. Cassandra can’t solve the problem of real-time correlation or reaction at the application layer. Developers have to solve these problems themselves, and Cassandra is just one part of the solution.Event Stream Processing and CEP play nicely with Cassandra, and that’s what we’ll be focusing onIntentionally small and stupid 1. @petabridge Petabridge.comEvent-Driven Architectures withCassandraAaron Stannard, CTO & Cofounder PetabridgeDataStax MVP 2015 2. @petabridge Petabridge.comCrash Course in EDA 3. @petabridge Petabridge.comSuccessful Product 4. @petabridge Petabridge.comStruggling Business 5. @petabridge Petabridge.comA Radical New Product 6. @petabridge Petabridge.comAllow our customers to startconversations with specifictypes of users. 7. @petabridge Petabridge.comHad to be done in real-time forbest results. 8. @petabridge Petabridge.comPrototype: HTTP + Database 9. @petabridge Petabridge.com(Read after Write) 10. @petabridge Petabridge.comTheory 11. @petabridge Petabridge.comReality 12. @petabridge Petabridge.comBreakthrough! 13. @petabridge Petabridge.comI had STATEFUL, REACTIVE,STREAM PROCESSINGproblem! 14. @petabridge Petabridge.comImplementation:HTTP -> EDA -> C* 15. @petabridge Petabridge.comWhy Do We Care About EDA? 16. @petabridge Petabridge.comDatabases Aren’t Magical 17. @petabridge Petabridge.comEvent-Driven ArchitectureConcepts 18. @petabridge Petabridge.comKey Terms• Event – a significant change in “state”• Message – a notification of an event• Emitter – detect, gather, transfer events• Sinks – react to events immediately• Channels – conduit between emitters andsinks 19. @petabridge Petabridge.comGoals & Benefits• Extreme decoupling• Easily distributed• Inherently asynchronous and concurrent 20. @petabridge Petabridge.comEDA Styles• Simple Event Processing• Event Stream Processing• Complex Event Processing (CEP) 21. @petabridge Petabridge.comEvent Stream Processing w/FSMs 22. @petabridge Petabridge.com 23. @petabridge Petabridge.com 24. @petabridge Petabridge.com 25. @petabridge Petabridge.comCQL SchemaCREATE TABLE IF NOT EXISTS FSMState(persistence_id text,state_id int,state_data blob,PRIMARY KEY (persistence_id, state_id)) 26. @petabridge Petabridge.comEvent Sourcing with C* 27. @petabridge Petabridge.com 28. @petabridge Petabridge.com 29. @petabridge Petabridge.comEDA + C* Tips and Tricks• Large number of small sinks works best• Define simple, reusable journals andsnapshots• C* == durable backup, App = singlesource of truth• TTL everywhere your business domainsupports it 30. @petabridge Petabridge.comHave questions? Ask us!http://petabridge.com/ Recommended Visual Aesthetics for ElearningOnline Course - LinkedIn Learning College Prep: Writing a Strong EssayOnline Course - LinkedIn Learning Test Prep: GREOnline Course - LinkedIn Learning Realtime Data Pipeline with Spark Streaming and Cassandra with Mesos (Rahul K...DataStax Forrester CXNYC 2017 - Delivering great real-time cx is a true craftDataStax Academy Introduction to DataStax Enterprise Graph DatabaseDataStax Academy Introduction to DataStax Enterprise Advanced Replication with Apache CassandraDataStax Academy Cassandra on Docker @ Walmart LabsDataStax Academy Cassandra 3.0 Data ModelingDataStax Academy Cassandra Adoption on Cisco UCS & Open stackDataStax Academy About Blog Terms Privacy Copyright LinkedIn Corporation © 2018 Public clipboards featuring this slideNo public clipboards found for this slideSelect another clipboard ×Looks like you’ve clipped this slide to already.Create a clipboardYou just clipped your first slide! Clipping is a handy way to collect important slides you want to go back to later. Now customize the name of a clipboard to store your clips. Description Visibility Others can see my Clipboard

Illustration Image
Using Event-Driven Architectures with Cassandra

Successfully reported this slideshow.

Using Event-Driven Architectures with Cassandra
@petabridge Petabridge.com
Event-Driven Architectures with
Cassandra
Aaron Stannard, CTO & Cofounder Petabridge
DataStax M...
@petabridge Petabridge.com
Crash Course in EDA
@petabridge Petabridge.com
Successful Product
@petabridge Petabridge.com
Struggling Business
@petabridge Petabridge.com
A Radical New Product
@petabridge Petabridge.com
Allow our customers to start
conversations with specific
types of users.
@petabridge Petabridge.com
Had to be done in real-time for
best results.
@petabridge Petabridge.com
Prototype: HTTP + Database
@petabridge Petabridge.com
(Read after Write)
@petabridge Petabridge.com
Theory
@petabridge Petabridge.com
Reality
@petabridge Petabridge.com
Breakthrough!
@petabridge Petabridge.com
I had STATEFUL, REACTIVE,
STREAM PROCESSING
problem!
@petabridge Petabridge.com
Implementation:
HTTP -> EDA -> C*
@petabridge Petabridge.com
Why Do We Care About EDA?
@petabridge Petabridge.com
Databases Aren’t Magical
@petabridge Petabridge.com
Event-Driven Architecture
Concepts
@petabridge Petabridge.com
Key Terms
• Event – a significant change in “state”
• Message – a notification of an event
• Em...
@petabridge Petabridge.com
Goals & Benefits
• Extreme decoupling
• Easily distributed
• Inherently asynchronous and concur...
@petabridge Petabridge.com
EDA Styles
• Simple Event Processing
• Event Stream Processing
• Complex Event Processing (CEP)
@petabridge Petabridge.com
Event Stream Processing w/
FSMs
@petabridge Petabridge.com
@petabridge Petabridge.com
@petabridge Petabridge.com
@petabridge Petabridge.com
CQL Schema
CREATE TABLE IF NOT EXISTS FSMState
(
persistence_id text,
state_id int,
state_data ...
@petabridge Petabridge.com
Event Sourcing with C*
@petabridge Petabridge.com
@petabridge Petabridge.com
@petabridge Petabridge.com
EDA + C* Tips and Tricks
• Large number of small sinks works best
• Define simple, reusable jou...
@petabridge Petabridge.com
Have questions? Ask us!
http://petabridge.com/

Upcoming SlideShare

Loading in …5

×

  1. 1. @petabridge Petabridge.com Event-Driven Architectures with Cassandra Aaron Stannard, CTO & Cofounder Petabridge DataStax MVP 2015
  2. 2. @petabridge Petabridge.com Crash Course in EDA
  3. 3. @petabridge Petabridge.com Successful Product
  4. 4. @petabridge Petabridge.com Struggling Business
  5. 5. @petabridge Petabridge.com A Radical New Product
  6. 6. @petabridge Petabridge.com Allow our customers to start conversations with specific types of users.
  7. 7. @petabridge Petabridge.com Had to be done in real-time for best results.
  8. 8. @petabridge Petabridge.com Prototype: HTTP + Database
  9. 9. @petabridge Petabridge.com (Read after Write)
  10. 10. @petabridge Petabridge.com Theory
  11. 11. @petabridge Petabridge.com Reality
  12. 12. @petabridge Petabridge.com Breakthrough!
  13. 13. @petabridge Petabridge.com I had STATEFUL, REACTIVE, STREAM PROCESSING problem!
  14. 14. @petabridge Petabridge.com Implementation: HTTP -> EDA -> C*
  15. 15. @petabridge Petabridge.com Why Do We Care About EDA?
  16. 16. @petabridge Petabridge.com Databases Aren’t Magical
  17. 17. @petabridge Petabridge.com Event-Driven Architecture Concepts
  18. 18. @petabridge Petabridge.com Key Terms • Event – a significant change in “state” • Message – a notification of an event • Emitter – detect, gather, transfer events • Sinks – react to events immediately • Channels – conduit between emitters and sinks
  19. 19. @petabridge Petabridge.com Goals & Benefits • Extreme decoupling • Easily distributed • Inherently asynchronous and concurrent
  20. 20. @petabridge Petabridge.com EDA Styles • Simple Event Processing • Event Stream Processing • Complex Event Processing (CEP)
  21. 21. @petabridge Petabridge.com Event Stream Processing w/ FSMs
  22. 22. @petabridge Petabridge.com
  23. 23. @petabridge Petabridge.com
  24. 24. @petabridge Petabridge.com
  25. 25. @petabridge Petabridge.com CQL Schema CREATE TABLE IF NOT EXISTS FSMState ( persistence_id text, state_id int, state_data blob, PRIMARY KEY (persistence_id, state_id) )
  26. 26. @petabridge Petabridge.com Event Sourcing with C*
  27. 27. @petabridge Petabridge.com
  28. 28. @petabridge Petabridge.com
  29. 29. @petabridge Petabridge.com EDA + C* Tips and Tricks • Large number of small sinks works best • Define simple, reusable journals and snapshots • C* == durable backup, App = single source of truth • TTL everywhere your business domain supports it
  30. 30. @petabridge Petabridge.com Have questions? Ask us! http://petabridge.com/

Related Articles

migration
proxy
datastax

GitHub - datastax/zdm-proxy: An open-source component designed to seamlessly handle the real-time client application activity while a migration is in progress.

',d,a,t,a,s,t,a,x,'

11/1/2024

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

cassandra