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
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
“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

Similar to The route towards cloud automation

Project Flogo: Serverless Integration, Powered by Flogo and Lambda
Project Flogo: Serverless Integration, Powered by Flogo and LambdaProject Flogo: Serverless Integration, Powered by Flogo and Lambda
Project Flogo: Serverless Integration, Powered by Flogo and Lambda
Leon Stigter
 
Teaching Elephants to Dance (Federal Audience): A Developer's Journey to Digi...
Teaching Elephants to Dance (Federal Audience): A Developer's Journey to Digi...Teaching Elephants to Dance (Federal Audience): A Developer's Journey to Digi...
Teaching Elephants to Dance (Federal Audience): A Developer's Journey to Digi...
Burr Sutter
 
Synchronous Reads Asynchronous Writes RubyConf 2009
Synchronous Reads Asynchronous Writes RubyConf 2009Synchronous Reads Asynchronous Writes RubyConf 2009
Synchronous Reads Asynchronous Writes RubyConf 2009pauldix
 
Introduction to cloud computing - za garage talks
Introduction to cloud computing -  za garage talksIntroduction to cloud computing -  za garage talks
Introduction to cloud computing - za garage talks
Vijay Rayapati
 
Beware the monolith
Beware the monolithBeware the monolith
Beware the monolith
Dee Wilcox
 
Surviving as a Monolith in a Microservices World - by Blair Olynyk, Hyperwallet
Surviving as a Monolith in a Microservices World - by Blair Olynyk, HyperwalletSurviving as a Monolith in a Microservices World - by Blair Olynyk, Hyperwallet
Surviving as a Monolith in a Microservices World - by Blair Olynyk, Hyperwallet
Hyperwallet
 
Are Microservices our future?
Are Microservices our future?Are Microservices our future?
Are Microservices our future?
Angelo Simone Scotto
 
Elastically scalable architectures with microservices. The end of the monolith?
Elastically scalable architectures with microservices. The end of the monolith?Elastically scalable architectures with microservices. The end of the monolith?
Elastically scalable architectures with microservices. The end of the monolith?
Javier Arias Losada
 
Security for AWS : Journey to Least Privilege (update)
Security for AWS : Journey to Least Privilege (update)Security for AWS : Journey to Least Privilege (update)
Security for AWS : Journey to Least Privilege (update)
dhubbard858
 
Security for AWS: Journey to Least Privilege
Security for AWS: Journey to Least PrivilegeSecurity for AWS: Journey to Least Privilege
Security for AWS: Journey to Least Privilege
Lacework
 
High Availability SOA APP with GlusterFS
High Availability SOA APP with GlusterFSHigh Availability SOA APP with GlusterFS
High Availability SOA APP with GlusterFS
zeridon
 
Cloud computing Basics
Cloud computing BasicsCloud computing Basics
Cloud computing Basics
jisa joy
 
Welcome to the world of micro-applications
Welcome to the world of micro-applicationsWelcome to the world of micro-applications
Welcome to the world of micro-applications
Sander Hoogendoorn
 
Developer connect - microservices
Developer connect - microservicesDeveloper connect - microservices
Developer connect - microservices
Anton McConville
 
A Digital Conversation: The Next Web
A Digital Conversation: The Next Web A Digital Conversation: The Next Web
A Digital Conversation: The Next Web
Reading Room
 
Building a full-stack app with Golang and Google Cloud Platform in one week
Building a full-stack app with Golang and Google Cloud Platform in one weekBuilding a full-stack app with Golang and Google Cloud Platform in one week
Building a full-stack app with Golang and Google Cloud Platform in one week
Dr. Felix Raab
 
Serverless is the future... or is it?
Serverless is the future... or is it?Serverless is the future... or is it?
Serverless is the future... or is it?
Paul Johnston
 
Let's talk about... Microservices
Let's talk about... MicroservicesLet's talk about... Microservices
Let's talk about... Microservices
Alessandro Giorgetti
 
Microservices Architecture
Microservices ArchitectureMicroservices Architecture
Microservices Architecture
Alessandro Giorgetti
 
AWS and Open Cloud, All Things Open, 10/25/2013, Raleigh NC
AWS and Open Cloud, All Things Open, 10/25/2013, Raleigh NCAWS and Open Cloud, All Things Open, 10/25/2013, Raleigh NC
AWS and Open Cloud, All Things Open, 10/25/2013, Raleigh NC
Greg DeKoenigsberg
 

Similar to The route towards cloud automation (20)

Project Flogo: Serverless Integration, Powered by Flogo and Lambda
Project Flogo: Serverless Integration, Powered by Flogo and LambdaProject Flogo: Serverless Integration, Powered by Flogo and Lambda
Project Flogo: Serverless Integration, Powered by Flogo and Lambda
 
Teaching Elephants to Dance (Federal Audience): A Developer's Journey to Digi...
Teaching Elephants to Dance (Federal Audience): A Developer's Journey to Digi...Teaching Elephants to Dance (Federal Audience): A Developer's Journey to Digi...
Teaching Elephants to Dance (Federal Audience): A Developer's Journey to Digi...
 
Synchronous Reads Asynchronous Writes RubyConf 2009
Synchronous Reads Asynchronous Writes RubyConf 2009Synchronous Reads Asynchronous Writes RubyConf 2009
Synchronous Reads Asynchronous Writes RubyConf 2009
 
Introduction to cloud computing - za garage talks
Introduction to cloud computing -  za garage talksIntroduction to cloud computing -  za garage talks
Introduction to cloud computing - za garage talks
 
Beware the monolith
Beware the monolithBeware the monolith
Beware the monolith
 
Surviving as a Monolith in a Microservices World - by Blair Olynyk, Hyperwallet
Surviving as a Monolith in a Microservices World - by Blair Olynyk, HyperwalletSurviving as a Monolith in a Microservices World - by Blair Olynyk, Hyperwallet
Surviving as a Monolith in a Microservices World - by Blair Olynyk, Hyperwallet
 
Are Microservices our future?
Are Microservices our future?Are Microservices our future?
Are Microservices our future?
 
Elastically scalable architectures with microservices. The end of the monolith?
Elastically scalable architectures with microservices. The end of the monolith?Elastically scalable architectures with microservices. The end of the monolith?
Elastically scalable architectures with microservices. The end of the monolith?
 
Security for AWS : Journey to Least Privilege (update)
Security for AWS : Journey to Least Privilege (update)Security for AWS : Journey to Least Privilege (update)
Security for AWS : Journey to Least Privilege (update)
 
Security for AWS: Journey to Least Privilege
Security for AWS: Journey to Least PrivilegeSecurity for AWS: Journey to Least Privilege
Security for AWS: Journey to Least Privilege
 
High Availability SOA APP with GlusterFS
High Availability SOA APP with GlusterFSHigh Availability SOA APP with GlusterFS
High Availability SOA APP with GlusterFS
 
Cloud computing Basics
Cloud computing BasicsCloud computing Basics
Cloud computing Basics
 
Welcome to the world of micro-applications
Welcome to the world of micro-applicationsWelcome to the world of micro-applications
Welcome to the world of micro-applications
 
Developer connect - microservices
Developer connect - microservicesDeveloper connect - microservices
Developer connect - microservices
 
A Digital Conversation: The Next Web
A Digital Conversation: The Next Web A Digital Conversation: The Next Web
A Digital Conversation: The Next Web
 
Building a full-stack app with Golang and Google Cloud Platform in one week
Building a full-stack app with Golang and Google Cloud Platform in one weekBuilding a full-stack app with Golang and Google Cloud Platform in one week
Building a full-stack app with Golang and Google Cloud Platform in one week
 
Serverless is the future... or is it?
Serverless is the future... or is it?Serverless is the future... or is it?
Serverless is the future... or is it?
 
Let's talk about... Microservices
Let's talk about... MicroservicesLet's talk about... Microservices
Let's talk about... Microservices
 
Microservices Architecture
Microservices ArchitectureMicroservices Architecture
Microservices Architecture
 
AWS and Open Cloud, All Things Open, 10/25/2013, Raleigh NC
AWS and Open Cloud, All Things Open, 10/25/2013, Raleigh NCAWS and Open Cloud, All Things Open, 10/25/2013, Raleigh NC
AWS and Open Cloud, All Things Open, 10/25/2013, Raleigh NC
 

Recently uploaded

Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 

Recently uploaded (20)

Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 

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
  • 24.
  • 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
  • 30.
  • 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