SlideShare a Scribd company logo
THE ROUTE TOWARDS 
CLOUD AUTOMATION
SIMPLY EVERY ENGINEER’S 
DESIRE TO USE THE FORCE 
THE ROUTE TOWARDS 
CLOUD AUTOMATION
SO LIKE ... 
... CLOUD ... ... AUTOMATION
And why you should care Who am I? 
Automate the Cloud at 
On the internet as.. 
@jcrugzz
and why this matters What is Nodejitsu? 
We execute 
untrusted user code 
in the cloud using a system of.. 
Microservices
Words that I like Vocabulary 
Determinism 
Computers act consistently 
Non-determinism 
Computers begin to be affected by 
Quantum properties and begin to act 
inconsistently.
C LOUD AUTOMATION FOR 
MICROSERVICES
From one we have many Microservices and SOA 
Monolithic Web Service Collection of 
Microservices
From one we have many Microservices and SOA 
MICROSERVICES 
AND SOA TURN 
HARD COUPLING 
INTO LOOSE(R) 
Monolithic Web Service Collection of 
Microservices 
COUPLING
O NE DOES NOT SIMPLY 
S C ALE ... ANYTHING
Patterns for scaling service architectures Microservices and SOA 
Monolithic Web Service 
Our only choice is to replicate the 
WHOLE SERVICE AGAIN ... ... AND AGAIN ... ... AND AGAIN
Patterns for scaling service architectures Microservices and SOA 
Microservices and SOA 
` When you have them separated.. You can 
scale ... EACH ... ... ONE ... ... INDIVIDUALLY
YO DAWG I HEARD YOU LIKE MICROSERVICES 
SO I PUT A GEOENCODING SERVICE IN A QUEUE SERVICE IN A 
FACEBOOK SERVICE IN A TWITTER SERVICE SO YOU CAN USE 
MICROSERVICES WHILE YOU USE MICROSERVICES
YO DAWG I HEARD YOU LIKE MICROSERVICES 
DON’T GET 
CARRIED AWAY 
SO I PUT A GEOENCODING SERVICE IN A QUEUE SERVICE IN A 
FACEBOOK SERVICE IN A TWITTER SERVICE SO YOU CAN USE 
MICROSERVICES WHILE YOU USE MICROSERVICES
Unix philosophy for software services Microservices and SOA 
Unix Philosophy 
Do one thing and one thing well Modularity and reusability Streams! SIMPLICTY! 
"We should have some ways of connecting programs like 
garden hose--screw in another segment when it becomes 
necessary to massage data in another way. This is the way of 
IO also.” 
! 
—Doug McIlroy. October 11, 1964
Unix philosophy for software services Microservices and SOA 
Unix Philosophy 
Do one thing and one thing well Modularity and reusability Streams! SIMPLICTY! 
"We should have some ways of connecting programs like 
garden hose--screw in another segment when it becomes 
necessary to massage data in another way. This is the way of 
IO also.” 
! 
—Doug McIlroy. October 11, 1964
It’s kind of like “small modules” Microservices and SOA 
Node and Microservices 
They go hand in hand Products not projects - Martin Fowler Think MODULE === Microservice API Simplicity
Problems and illusions Microservices and SOA 
Illusions? 
Silver Bullet Better Availability Easier Scaling Eliminates SPOF 
` 
Problems 
You now have N number of SPOF More moving parts Increased surface area for failure Overall increase in non-determinism
Problems and illusions Microservices and SOA 
Illusions? 
Silver Bullet Better Availability Easier Scaling Eliminates SPOF 
BUT ITS ALL OK! 
! 
Everything has ` 
tradeoffs 
Problems 
You now have ! 
N number of SPOF More moving parts Increased surface area for failure Overall increase in non-determinism 
Nothing is Perfect
SAY MICROSERVICES 
ONE MORE TIME!
SAY MICROSERVICES 
BUT 
SERIOUSLY... 
ONE MORE TIME!
Lets Make things Complicated 
Because I said so
How many services do we have?! DevOps Mania 
When things go wrong 
` What happens when services go down.. 
ONE ... ... BY ... ... ONE
The route towards cloud automation
YES. YES IT IS
CALM DOWN 
WE HAVE MONITORING
Get all the data Monitoring: Collect Metrics 
What do we collect? 
ALL THE METRICS! 
Logs 
Memory 
Requests 
Apps 
Metrics! 
Cluster
W h at if we were generating data 
and not using it at all?
What are we looking at Monitoring. Next steps 
Assess the data 
Metrics! 
Cluster 
Strategies 
Store the data 
Graphs are your friend 
Apps 
Find trends and bridge correlations 
Data Store
The route towards cloud automation
“As intelligence goes up, 
happiness goes down. See, I made 
a graph. I make lots of graphs.” 
- Lisa Simpson
“As intelligence goes up, 
happiness goes down. See, I made 
a graph. I make lots of graphs.” 
- Lisa Simpson
Act Now! 
“As intelligence goes up, 
happiness goes down. See, I made 
a graph. I make lots of graphs.” 
- Lisa Simpson
Do something! Monitoring: Now what? 
Metrics! 
Cluster 
Take Action 
Actions to take 
Fix something 
Scale up/down 
Apps 
Remove server from pool 
Data Store 
“Action” Services
BRACE YOURSELVES 
IT’S STORY TIME
Lets fix things SSH Micro-service 
Metrics! 
Cluster 
An action 
It is all in the simplicity 
Identified problem 
Crafted a solution 
Put together the pieces to fix it 
SSH Service 
Load Balancer 
Dead App 
Fix it
FIX IT! FIX IT! FIX IT!
Welcome to distributed systems What’s the problem? 
Metrics! 
Cluster 
Not distributed 
Simplicity can lack flexibility 
No built in fault tolerance to service 
Uses a local queue that doesn’t scale 
But this is still all fixable 
SSH Service 
Load Balancer 
Dead App 
Fix it
Distributed Systems 
How do they work?
Use a distributed approach How do we fix this? 
Metrics! 
Cluster 
Make distributed 
Scale with a particular approach 
SSH Service 
Load Balancer 
Dead App 
Fix it
Use a distributed approach How do we fix this? 
Metrics! 
Cluster 
Make distributed 
Scale with a particular approach 
Use a proven distributed protocol (raft) 
Use a working module or implement it 
Read the white paper and test 
SSH Service 
Load Balancer 
Dead App 
Fix it
Leader Election Raft: Distrubuted Consensus 
What is Raft? 
A consensus Algorithm 
Log replication 
Leaders, Followers, Candidates 
Leader election and failover
Reading white papers
Papers Distributed Systems 
Reading? 
Yes we should read them 
Yes they are hard 
Reading once is just the beginning 
Consider it like stretching
OMG 
B UT IM OVERWHELMED
Take a deep breath Distributed Systems 
RELAX 
SIMPLICITY 
Start small 
Importance of modules 
Everything in stages
Demo Architecture
github.com/jcrugzz/empirenode-demo 
DOGE FOR DEMO
THE END 
Jarrett Cruger - @jcrugzz

More Related Content

PDF
Chela js junio 2016
PPTX
Immutable infrastructure with Docker and EC2
PPTX
Docker introduction
PPTX
Docker Online Meetup: Announcing Docker CE + EE
PPTX
Cloud 2.0: Containers, Microservices and Cloud Hybridization
PDF
Microservices: moving parts around
PDF
Microservices for Mortals by Bert Ertman at Codemotion Dubai
PDF
SACon 2019 - Surviving in a Microservices Environment
Chela js junio 2016
Immutable infrastructure with Docker and EC2
Docker introduction
Docker Online Meetup: Announcing Docker CE + EE
Cloud 2.0: Containers, Microservices and Cloud Hybridization
Microservices: moving parts around
Microservices for Mortals by Bert Ertman at Codemotion Dubai
SACon 2019 - Surviving in a Microservices Environment

Similar to The route towards cloud automation (20)

PDF
L11 Service Design and REST
PPTX
Microservices pros and cons dark
PDF
Meetup: Platform-as-a-Service / Cloud Foundry
PPTX
Iot cloud service v2.0
PPTX
Webinar : Microservices and Containerization
PDF
Service Mesh Talk for CTO Forum
PDF
Microservices and serverless for MegaStartups - DLD TLV 2017
PPTX
Service Architectures at Scale
PDF
Monolithic to Microservices Architecture
PPTX
FLUX - Crash Course in Cloud 2.0
PDF
The Future of Cloud Innovation, featuring Adrian Cockcroft
PPTX
An introduction to Microservices
PDF
Designing Scalable and Secure Microservices by Embracing DevOps-as-a-Service ...
PDF
Microservices - Hitchhiker's guide to cloud native applications
PPTX
DevoxxUK 2016: "DevOps: Microservices, containers, platforms, tooling... Oh y...
PPTX
Accelerate DevOps/Microservices and Kubernetes
PPTX
building microservices
PDF
Building Microservices Software practics
PDF
The histories of microservices
PDF
What they don't tell you about micro-services
L11 Service Design and REST
Microservices pros and cons dark
Meetup: Platform-as-a-Service / Cloud Foundry
Iot cloud service v2.0
Webinar : Microservices and Containerization
Service Mesh Talk for CTO Forum
Microservices and serverless for MegaStartups - DLD TLV 2017
Service Architectures at Scale
Monolithic to Microservices Architecture
FLUX - Crash Course in Cloud 2.0
The Future of Cloud Innovation, featuring Adrian Cockcroft
An introduction to Microservices
Designing Scalable and Secure Microservices by Embracing DevOps-as-a-Service ...
Microservices - Hitchhiker's guide to cloud native applications
DevoxxUK 2016: "DevOps: Microservices, containers, platforms, tooling... Oh y...
Accelerate DevOps/Microservices and Kubernetes
building microservices
Building Microservices Software practics
The histories of microservices
What they don't tell you about micro-services
Ad

Recently uploaded (20)

PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
AI in Product Development-omnex systems
PPT
Introduction Database Management System for Course Database
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
System and Network Administration Chapter 2
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Introduction to Artificial Intelligence
PDF
System and Network Administraation Chapter 3
PDF
Digital Strategies for Manufacturing Companies
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
L1 - Introduction to python Backend.pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Transform Your Business with a Software ERP System
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
VVF-Customer-Presentation2025-Ver1.9.pptx
AI in Product Development-omnex systems
Introduction Database Management System for Course Database
Wondershare Filmora 15 Crack With Activation Key [2025
Operating system designcfffgfgggggggvggggggggg
CHAPTER 2 - PM Management and IT Context
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
System and Network Administration Chapter 2
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Introduction to Artificial Intelligence
System and Network Administraation Chapter 3
Digital Strategies for Manufacturing Companies
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
L1 - Introduction to python Backend.pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Transform Your Business with a Software ERP System
Ad

The route towards cloud automation

  • 1. THE ROUTE TOWARDS CLOUD AUTOMATION
  • 2. SIMPLY EVERY ENGINEER’S DESIRE TO USE THE FORCE THE ROUTE TOWARDS CLOUD AUTOMATION
  • 3. SO LIKE ... ... CLOUD ... ... AUTOMATION
  • 4. And why you should care Who am I? Automate the Cloud at On the internet as.. @jcrugzz
  • 5. and why this matters What is Nodejitsu? We execute untrusted user code in the cloud using a system of.. Microservices
  • 6. Words that I like Vocabulary Determinism Computers act consistently Non-determinism Computers begin to be affected by Quantum properties and begin to act inconsistently.
  • 7. C LOUD AUTOMATION FOR MICROSERVICES
  • 8. From one we have many Microservices and SOA Monolithic Web Service Collection of Microservices
  • 9. From one we have many Microservices and SOA MICROSERVICES AND SOA TURN HARD COUPLING INTO LOOSE(R) Monolithic Web Service Collection of Microservices COUPLING
  • 10. O NE DOES NOT SIMPLY S C ALE ... ANYTHING
  • 11. Patterns for scaling service architectures Microservices and SOA Monolithic Web Service Our only choice is to replicate the WHOLE SERVICE AGAIN ... ... AND AGAIN ... ... AND AGAIN
  • 12. Patterns for scaling service architectures Microservices and SOA Microservices and SOA ` When you have them separated.. You can scale ... EACH ... ... ONE ... ... INDIVIDUALLY
  • 13. YO DAWG I HEARD YOU LIKE MICROSERVICES SO I PUT A GEOENCODING SERVICE IN A QUEUE SERVICE IN A FACEBOOK SERVICE IN A TWITTER SERVICE SO YOU CAN USE MICROSERVICES WHILE YOU USE MICROSERVICES
  • 14. YO DAWG I HEARD YOU LIKE MICROSERVICES DON’T GET CARRIED AWAY SO I PUT A GEOENCODING SERVICE IN A QUEUE SERVICE IN A FACEBOOK SERVICE IN A TWITTER SERVICE SO YOU CAN USE MICROSERVICES WHILE YOU USE MICROSERVICES
  • 15. Unix philosophy for software services Microservices and SOA Unix Philosophy Do one thing and one thing well Modularity and reusability Streams! SIMPLICTY! "We should have some ways of connecting programs like garden hose--screw in another segment when it becomes necessary to massage data in another way. This is the way of IO also.” ! —Doug McIlroy. October 11, 1964
  • 16. Unix philosophy for software services Microservices and SOA Unix Philosophy Do one thing and one thing well Modularity and reusability Streams! SIMPLICTY! "We should have some ways of connecting programs like garden hose--screw in another segment when it becomes necessary to massage data in another way. This is the way of IO also.” ! —Doug McIlroy. October 11, 1964
  • 17. It’s kind of like “small modules” Microservices and SOA Node and Microservices They go hand in hand Products not projects - Martin Fowler Think MODULE === Microservice API Simplicity
  • 18. Problems and illusions Microservices and SOA Illusions? Silver Bullet Better Availability Easier Scaling Eliminates SPOF ` Problems You now have N number of SPOF More moving parts Increased surface area for failure Overall increase in non-determinism
  • 19. Problems and illusions Microservices and SOA Illusions? Silver Bullet Better Availability Easier Scaling Eliminates SPOF BUT ITS ALL OK! ! Everything has ` tradeoffs Problems You now have ! N number of SPOF More moving parts Increased surface area for failure Overall increase in non-determinism Nothing is Perfect
  • 20. SAY MICROSERVICES ONE MORE TIME!
  • 21. SAY MICROSERVICES BUT SERIOUSLY... ONE MORE TIME!
  • 22. Lets Make things Complicated Because I said so
  • 23. How many services do we have?! DevOps Mania When things go wrong ` What happens when services go down.. ONE ... ... BY ... ... ONE
  • 26. CALM DOWN WE HAVE MONITORING
  • 27. Get all the data Monitoring: Collect Metrics What do we collect? ALL THE METRICS! Logs Memory Requests Apps Metrics! Cluster
  • 28. W h at if we were generating data and not using it at all?
  • 29. What are we looking at Monitoring. Next steps Assess the data Metrics! Cluster Strategies Store the data Graphs are your friend Apps Find trends and bridge correlations Data Store
  • 31. “As intelligence goes up, happiness goes down. See, I made a graph. I make lots of graphs.” - Lisa Simpson
  • 32. “As intelligence goes up, happiness goes down. See, I made a graph. I make lots of graphs.” - Lisa Simpson
  • 33. Act Now! “As intelligence goes up, happiness goes down. See, I made a graph. I make lots of graphs.” - Lisa Simpson
  • 34. Do something! Monitoring: Now what? Metrics! Cluster Take Action Actions to take Fix something Scale up/down Apps Remove server from pool Data Store “Action” Services
  • 36. Lets fix things SSH Micro-service Metrics! Cluster An action It is all in the simplicity Identified problem Crafted a solution Put together the pieces to fix it SSH Service Load Balancer Dead App Fix it
  • 37. FIX IT! FIX IT! FIX IT!
  • 38. Welcome to distributed systems What’s the problem? Metrics! Cluster Not distributed Simplicity can lack flexibility No built in fault tolerance to service Uses a local queue that doesn’t scale But this is still all fixable SSH Service Load Balancer Dead App Fix it
  • 39. Distributed Systems How do they work?
  • 40. Use a distributed approach How do we fix this? Metrics! Cluster Make distributed Scale with a particular approach SSH Service Load Balancer Dead App Fix it
  • 41. Use a distributed approach How do we fix this? Metrics! Cluster Make distributed Scale with a particular approach Use a proven distributed protocol (raft) Use a working module or implement it Read the white paper and test SSH Service Load Balancer Dead App Fix it
  • 42. Leader Election Raft: Distrubuted Consensus What is Raft? A consensus Algorithm Log replication Leaders, Followers, Candidates Leader election and failover
  • 44. Papers Distributed Systems Reading? Yes we should read them Yes they are hard Reading once is just the beginning Consider it like stretching
  • 45. OMG B UT IM OVERWHELMED
  • 46. Take a deep breath Distributed Systems RELAX SIMPLICITY Start small Importance of modules Everything in stages
  • 49. THE END Jarrett Cruger - @jcrugzz