SlideShare a Scribd company logo
Measuring Micro-services
Richard Rodger @rjrodger
nearform.com
Pulse. Temperature. Blood Pressure.
Micro-service systems have
emergent properties too.
nearForm & micro-services
50+ production systems.
The good, the bad, and the ugly.
What are micro-services?
Independent processes that
exchange messages.
Messages are fundamental.
Message behavior has emergent
properties.
Message flow rate.
Easy to measure. Tells you a lot.
Independent of services.
Deploy a new micro-service.
Does the new version
break anything?
To measure changes to services,
measure changes to message
flow rates.
Micro-service message patterns.
What to measure?
Here’s what we’ve found useful…
Actor.
A pool of services share message
load evenly (round-robin, say).
Subscriber.
Many services all listen for the
same set of message types.
Chain.
An initial message causes a chain
of serial message steps.
Tree.
An initial message causes a
flowering of child messages.
Why?
It's the risk, stupid!
Monoliths put everybody in danger.
Risk.
Reduction can be measured.
Leave elimination to Machiavelli.
Our "best practices" for risk.
Unit tests; code reviews; standards.
Do we have good measures?
We've just made things worse!
Microservices also have
emergent failure modes.
Let's attack both sides.
And we'll find a way to connect
both attacks.
Formal Methods
“Best Practices”
Measurement
Dynamic measurement.
Measure health of the system.
Exposes unknown unknowns.
Formal methods.
Correctness proofs are impractical.
Incomplete execution traces? FTW!
* http://research.microsoft.com/en-us/um/people/lamport/tla/tla.html
TLA+
Leslie Lamport *
Invariants.
Some things should never change.
Measure them to make sure!
Example.
E-commerce shopping cart.
add-item msgs == sales-tax msgs
Be practical!
Finding invariants is hard. Use the
microservice patterns to cheat.
Actor.
n actors means each actor sees
1⧸nof the messages.
Subscriber.
n subscribers means each sees
n messages.
Chain.
n inbound messages over k links
means nk chained messages.
Tree.
n inbound messages over k leaves
means nk leaf messages.
Look for cause/effect relationships.
These are by design! Validate your
message patterns in production.
“ask not what can go wrong,
ask what must go right…”
Chris Newcombe, AWS*
* http://research.microsoft.com/en-us/um/people/lamport/tla/amazon.html
When should you rollback?
Invariants should be the same
before and after deployment.
Is the system correct?
Business rules are invariants too!
Express as message relationships.
Are you about to be blindsided?
Combine individual indicators to
get a deeper measure of risk.
Measure what counts.
Find invariants. Measure them.
Follow: senecajs.org
Thank You!
Richard Rodger @rjrodger
nearform.com

More Related Content

PDF
Micro-services Battle Scars
PDF
Richardrodger nodeday-2014-final
PDF
How microservices fail, and what to do about it
PPTX
Serverless lessons learned #3 reserved concurrency
PPTX
Serverless lessons learned #5 retries
PDF
From a web application to a distributed system
PDF
Coolblue Behind the Scenes | Pat Hermens - On the shoulders of giants.
PPTX
Serverless lessons learned #4 circuit breaker
Micro-services Battle Scars
Richardrodger nodeday-2014-final
How microservices fail, and what to do about it
Serverless lessons learned #3 reserved concurrency
Serverless lessons learned #5 retries
From a web application to a distributed system
Coolblue Behind the Scenes | Pat Hermens - On the shoulders of giants.
Serverless lessons learned #4 circuit breaker

Similar to Richardrodger microxchgio-feb-2015-final (20)

PDF
Measuring Micro-services. Richard Rodger
PDF
DeepSec 2014 - The Measured CSO
PDF
Spam Detection in Social Networks Using Correlation Based Feature Subset Sele...
PDF
Spam Detection in Social Networks Using Correlation Based Feature Subset Sele...
PDF
Spam Detection in Social Networks Using Correlation Based Feature Subset Sele...
PDF
Spam Detection in Social Networks Using Correlation Based Feature Subset Sele...
PDF
richardrodger-microservice-risk-dublin-mar.pdf
DOCX
Spam Mail Prediction Report.docx
PDF
The math behind big systems analysis.
PDF
DevSecCon Singapore 2018 - Measuring and maximizing vuln discovery efforts by...
PDF
Documentary Essay Definition
PDF
DevSecCon London 2017: The flaws in hordes, the security in crowds by Mike Shema
PDF
IBM impact-final-reviewed1
PDF
Analytics Driven SIEM Workshop
PDF
Moving to Microservices with the Help of Distributed Traces
PDF
Essays Mission Vision Values
PDF
Are you ready for the next attack? reviewing the sp security checklist (apnic...
PDF
Are you ready for the next attack? Reviewing the SP Security Checklist
PDF
Mla Format For Essays Telegraph. Online assignment writing service.
PDF
Zen and the art of Security Testing
Measuring Micro-services. Richard Rodger
DeepSec 2014 - The Measured CSO
Spam Detection in Social Networks Using Correlation Based Feature Subset Sele...
Spam Detection in Social Networks Using Correlation Based Feature Subset Sele...
Spam Detection in Social Networks Using Correlation Based Feature Subset Sele...
Spam Detection in Social Networks Using Correlation Based Feature Subset Sele...
richardrodger-microservice-risk-dublin-mar.pdf
Spam Mail Prediction Report.docx
The math behind big systems analysis.
DevSecCon Singapore 2018 - Measuring and maximizing vuln discovery efforts by...
Documentary Essay Definition
DevSecCon London 2017: The flaws in hordes, the security in crowds by Mike Shema
IBM impact-final-reviewed1
Analytics Driven SIEM Workshop
Moving to Microservices with the Help of Distributed Traces
Essays Mission Vision Values
Are you ready for the next attack? reviewing the sp security checklist (apnic...
Are you ready for the next attack? Reviewing the SP Security Checklist
Mla Format For Essays Telegraph. Online assignment writing service.
Zen and the art of Security Testing
Ad

More from Richard Rodger (20)

PDF
Using RAG to create your own Podcast conversations.pdf
PDF
Richard_TheDev2023_pattern.pptx.pdf
PDF
richard-rodger-awssofia-microservices-2019.pdf
PDF
richardrodger-microservice-algebra-cluj-apr.pdf
PDF
richardrodger-designing-microservices-london-may.pdf
PDF
richardrodger-designing-microservices-london-may.pdf
PDF
richardrodger-service-discovery-waterford-feb.pdf
PDF
richardrodger-vespa-waterford-oct.pdf
PDF
Richardrodger designing-microservices-uxdx-dublin-oct
PDF
Rapid Digital Innovation: How Node.js Delivers
PDF
Richardrodger nodeconfeu-2014-final
PDF
Richardrodger nodeday-2014-final
PDF
Richard rodger technical debt - web summit 2013
PDF
The Seneca Pattern at EngineYard Distill 2013 Conference
PDF
Building businesspost.ie using Node.js
PDF
How to Write Big Apps (Richard Rodger NodeDublin 2012)
KEY
Richard rodger-appgen-2012-lxjs-lisbon
KEY
20120802 timisoara
KEY
20120816 nodejsdublin
KEY
20120306 dublin js
Using RAG to create your own Podcast conversations.pdf
Richard_TheDev2023_pattern.pptx.pdf
richard-rodger-awssofia-microservices-2019.pdf
richardrodger-microservice-algebra-cluj-apr.pdf
richardrodger-designing-microservices-london-may.pdf
richardrodger-designing-microservices-london-may.pdf
richardrodger-service-discovery-waterford-feb.pdf
richardrodger-vespa-waterford-oct.pdf
Richardrodger designing-microservices-uxdx-dublin-oct
Rapid Digital Innovation: How Node.js Delivers
Richardrodger nodeconfeu-2014-final
Richardrodger nodeday-2014-final
Richard rodger technical debt - web summit 2013
The Seneca Pattern at EngineYard Distill 2013 Conference
Building businesspost.ie using Node.js
How to Write Big Apps (Richard Rodger NodeDublin 2012)
Richard rodger-appgen-2012-lxjs-lisbon
20120802 timisoara
20120816 nodejsdublin
20120306 dublin js
Ad

Recently uploaded (20)

PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
innovation process that make everything different.pptx
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
Triggering QUIC, presented by Geoff Huston at IETF 123
PPTX
Digital Literacy And Online Safety on internet
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
DOCX
Unit-3 cyber security network security of internet system
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PPTX
Internet___Basics___Styled_ presentation
PPTX
Funds Management Learning Material for Beg
PPT
tcp ip networks nd ip layering assotred slides
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
presentation_pfe-universite-molay-seltan.pptx
Decoding a Decade: 10 Years of Applied CTI Discipline
innovation process that make everything different.pptx
Slides PDF The World Game (s) Eco Economic Epochs.pdf
522797556-Unit-2-Temperature-measurement-1-1.pptx
international classification of diseases ICD-10 review PPT.pptx
WebRTC in SignalWire - troubleshooting media negotiation
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
Triggering QUIC, presented by Geoff Huston at IETF 123
Digital Literacy And Online Safety on internet
Job_Card_System_Styled_lorem_ipsum_.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Unit-3 cyber security network security of internet system
introduction about ICD -10 & ICD-11 ppt.pptx
Internet___Basics___Styled_ presentation
Funds Management Learning Material for Beg
tcp ip networks nd ip layering assotred slides
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Module 1 - Cyber Law and Ethics 101.pptx
Introuction about ICD -10 and ICD-11 PPT.pptx
presentation_pfe-universite-molay-seltan.pptx

Richardrodger microxchgio-feb-2015-final