SlideShare une entreprise Scribd logo
1  sur  14
Log* with C*
Naveen and Shesh
Use Case
Entity based approach
• Select from orders where state=‘Dirty’
OrderID State others
x ‘Dirty’ ..
y ‘Synchronized’ ..
Z ‘Completed’ ..
What we tried
• Partition Key:‘Status’, Clustering Key: ’Order Id’
• Status Change was Delete and an insert.
• tombstones
tombstones
• t0(’dirty’) , t1(’synch’), t2(‘dirty’),…. tn
• n tombstones for the same record.
• They stay for 10 days
• Queries pick them even if the current state is not ‘dirty’
Queues with C*
Queue vs Log
Queue
Log
Lo Log
Offset
Log
• Append only
• Totally-ordered
• Append-at-end(order of occurrence = order of insert)
• e.g. change log, application log, kafka
Comparison
SQL based Query Cassandra Based Query Cassandra Based Log
Complexity O(# of dirty orders) O(# of times dirtied in the
last 10 days)
O(1)
Log Log*
inserts No-intermediate Intermediate
lookup offset key
query getNext Key, getNext*, Range query,
Key vs offset distinction yes no
getNext implementation native simulated
Architecture at LinkedIn
Checkout
Soft
Declined
Log
Completed
Order Log
Dirty Order
Log
Payment
OMS
Schedulers
WCS
C*
Log* getNext, get(Key), getRange()
Scheduler(consumer)
Checkout(producer) put(time, event)
getNext

Contenu connexe

En vedette

A tribute to simon gillespie by dr. jeffrey lant master marketer and also col...
A tribute to simon gillespie by dr. jeffrey lant master marketer and also col...A tribute to simon gillespie by dr. jeffrey lant master marketer and also col...
A tribute to simon gillespie by dr. jeffrey lant master marketer and also col...
howie martell
 
Google Instant Impact on SEO
Google Instant Impact on SEOGoogle Instant Impact on SEO
Google Instant Impact on SEO
Optify
 
The latest article on thanksgiving from a turkey's prospective let the revolu...
The latest article on thanksgiving from a turkey's prospective let the revolu...The latest article on thanksgiving from a turkey's prospective let the revolu...
The latest article on thanksgiving from a turkey's prospective let the revolu...
howie martell
 
Convergence of social media and SEO
Convergence of social media and SEOConvergence of social media and SEO
Convergence of social media and SEO
Optify
 
Priorities for EU-Caribbean cooperation in Science and Technology
Priorities for EU-Caribbean cooperation in Science and TechnologyPriorities for EU-Caribbean cooperation in Science and Technology
Priorities for EU-Caribbean cooperation in Science and Technology
Fabio Nascimbeni
 
Media Plan Of Dove
Media Plan Of DoveMedia Plan Of Dove
Media Plan Of Dove
raaaiii
 

En vedette (20)

The ABC’s of Health Insurance
The ABC’s of Health Insurance The ABC’s of Health Insurance
The ABC’s of Health Insurance
 
Smart LightRaise 60wi Interactive Projector User Guide
Smart LightRaise 60wi Interactive Projector User GuideSmart LightRaise 60wi Interactive Projector User Guide
Smart LightRaise 60wi Interactive Projector User Guide
 
Wikipedian in Residence KB & NA - Wikimedia Conferentie Nederland - 2 novemb...
Wikipedian in Residence KB & NA - Wikimedia Conferentie Nederland -  2 novemb...Wikipedian in Residence KB & NA - Wikimedia Conferentie Nederland -  2 novemb...
Wikipedian in Residence KB & NA - Wikimedia Conferentie Nederland - 2 novemb...
 
Ionic Bonds
Ionic BondsIonic Bonds
Ionic Bonds
 
SUSTAINABLE OFFERINGS
SUSTAINABLE OFFERINGSSUSTAINABLE OFFERINGS
SUSTAINABLE OFFERINGS
 
A tribute to simon gillespie by dr. jeffrey lant master marketer and also col...
A tribute to simon gillespie by dr. jeffrey lant master marketer and also col...A tribute to simon gillespie by dr. jeffrey lant master marketer and also col...
A tribute to simon gillespie by dr. jeffrey lant master marketer and also col...
 
2001 Pacifica Foundation Timeline
2001 Pacifica Foundation Timeline2001 Pacifica Foundation Timeline
2001 Pacifica Foundation Timeline
 
Google Instant Impact on SEO
Google Instant Impact on SEOGoogle Instant Impact on SEO
Google Instant Impact on SEO
 
Howard martell article 2012 A reflection of Service to the Great Republic
Howard martell article 2012 A reflection of Service to the Great RepublicHoward martell article 2012 A reflection of Service to the Great Republic
Howard martell article 2012 A reflection of Service to the Great Republic
 
The latest article on thanksgiving from a turkey's prospective let the revolu...
The latest article on thanksgiving from a turkey's prospective let the revolu...The latest article on thanksgiving from a turkey's prospective let the revolu...
The latest article on thanksgiving from a turkey's prospective let the revolu...
 
Convergence of social media and SEO
Convergence of social media and SEOConvergence of social media and SEO
Convergence of social media and SEO
 
Priorities for EU-Caribbean cooperation in Science and Technology
Priorities for EU-Caribbean cooperation in Science and TechnologyPriorities for EU-Caribbean cooperation in Science and Technology
Priorities for EU-Caribbean cooperation in Science and Technology
 
Multichannel B2B marketing in Europe
Multichannel B2B marketing in EuropeMultichannel B2B marketing in Europe
Multichannel B2B marketing in Europe
 
Optify's 2012 Marketing Athlete Report
Optify's 2012 Marketing Athlete ReportOptify's 2012 Marketing Athlete Report
Optify's 2012 Marketing Athlete Report
 
The impact of Open Education on internationalisation models of universities
The impact of Open Education on internationalisation models of universitiesThe impact of Open Education on internationalisation models of universities
The impact of Open Education on internationalisation models of universities
 
Presentation for class
Presentation for classPresentation for class
Presentation for class
 
Optify best practices: landing pages
Optify best practices: landing pagesOptify best practices: landing pages
Optify best practices: landing pages
 
Media Plan Of Dove
Media Plan Of DoveMedia Plan Of Dove
Media Plan Of Dove
 
Cooperacion academica y educacion abierta
Cooperacion academica y educacion abiertaCooperacion academica y educacion abierta
Cooperacion academica y educacion abierta
 
B2B marketing is dead. Long live marketing
B2B marketing is dead. Long live marketingB2B marketing is dead. Long live marketing
B2B marketing is dead. Long live marketing
 

Plus de Naveenkumar Muguda

Plus de Naveenkumar Muguda (12)

Ads quality
Ads qualityAds quality
Ads quality
 
Components: An overlooked abstraction
Components: An overlooked abstractionComponents: An overlooked abstraction
Components: An overlooked abstraction
 
Powerful software linkedin
Powerful software linkedinPowerful software linkedin
Powerful software linkedin
 
Yin Yangs of Software Development
Yin Yangs of Software DevelopmentYin Yangs of Software Development
Yin Yangs of Software Development
 
Programming in the large
Programming in the largeProgramming in the large
Programming in the large
 
Abstract Algebra and Category Theory
Abstract Algebra and Category Theory Abstract Algebra and Category Theory
Abstract Algebra and Category Theory
 
Fp
FpFp
Fp
 
Invariants & inversions
Invariants & inversionsInvariants & inversions
Invariants & inversions
 
Functional Programming, simplified
Functional Programming, simplifiedFunctional Programming, simplified
Functional Programming, simplified
 
Software Development: Beyond Training wheels
Software Development: Beyond Training wheelsSoftware Development: Beyond Training wheels
Software Development: Beyond Training wheels
 
Refactoring et al
Refactoring et alRefactoring et al
Refactoring et al
 
System design
System designSystem design
System design
 

Dernier

Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Dernier (20)

chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 

Log* with Cassandra