SlideShare a Scribd company logo
1 of 27
Microservices on the SPOT!
Arif Amirani
CTO & Co-Founder at MetroGuild Inc
Agenda
◦ Basics of Spot instances & Microservices?
◦ Why use Spot instances?
◦ How MetroGuild uses microservices & Spot instances
to deliver high availability & cost savings
◦ Q&A
2
The bill comes due
◦ Are you running production workloads?
◦ Are you using Spot instances?
◦ Infrastructure needs to scale with the business…
frugally!
◦ Your job is not just to make it work
◦ Check your org/BU costs
3
SpotReserved
EC2 Purchase Options
On-demand
4
Spiky workloads Committed Flexible & stateless
Can I use Spot today?
◦ Is spot for everyone? – NO!
◦ Can everyone use Spot? – Maybe J
5
Microservices
6
• Scoped (Biz/Function)
• Decentralized
• Loosely coupled
• Autonomous
• Black box
• Shared nothing*
Spots are great!...Right?
◦ Interruptions are a reality!
◦ But… 95% of instances weren’t interrupted in 3
months
◦ We get a 2 minute warning before instance is killed
◦ Pricing was/is dynamic
7
HMMM… MICROSERVICES ON CONTAINERS
Is my workload ready for Spot?
8
STATELESS
FAULT
TOLERANT
FLEXIBLE
AZ + INSTANCE
LOOSELY
COUPLED
Spot Pricing/Bidding
◦ Remember Spot is spare capacity from the on-
demand pool
◦ If on-demand usage increases you may lose your spot
instances
◦ Bidding was the norm earlier
◦ Predictable pricing after Nov 2017
9
Spot Pools
10
INSTANCE FAMILY
c4
+
INSTANCE SIZE
xlarge
=
AVAILABILITY ZONE
1a
REGION
us-east
SPOT POOL
What does that mean?
11
Choose several availability zones
What does that mean?
12
Choose several instance types
Spot Integrations
13
We are a sales
accelerator for large
enterprises
14
What is MetroLeads?
Sourcing
Lead Management
Voice
CRM
Email and SMS
Sig management
Calendaring
Field Sales
Vertical centric
3rd party apps
Metroleads Cocktail for
Sales and Marketing
API
15
Analytics & Campaigns
Voice platform
Fast response times
Uptime
Quick updates
Experimentation
Security & Compliance
High throughput & scaled capacity
Low latency
Geo distribution
High availability
Fast control plane
A/B Testing & Environments
Isolation, certificate maintenance, etc
Business vs Engineering Goals
Metroleads
CRM
Insights
Reports
DATA CAPTURE
API EmailSMSCalls Web entries
Mobile App
IOS and Android
Web App
Expo App
USERS
◦ Microservices architecture
◦ Containers (Docker) & Orchestration (Puppet)
◦ Highly available data sources – Cassandra & Elasticsearch
Clusters
◦ Data (API) delivery - ReactJS/React Native
◦ Data Security – Isolated environments and secure access
◦ Open Source software is preferred (Self hosted)
16
Key Tenets
◦ Data Growth & Customer Growth
◦ Fluctuations of data (periodic spikes)
◦ Cost per customer was too high
17
Why did we even move to Spot?
18
No time to react – Auto Scaling
◦ We got outbid too often – Cost!
◦ No warnings – Data Loss!
◦ Code was not resilient to failure or load due to loss of
capacity – Broken windows!
◦ Lack of choices i.e. could not request classes of instances -
Locked on one type & spent time on deciding (we wrote a
prediction algorithm too)!
19
Initial Spot Hurdles – Circa ‘13
◦ Ease of deployment
◦ Auto registration with ALB/ELB – Target groups
◦ Moved to a real messaging queue (RabbitMQ) to
throttle load for non SLA services
◦ Gracefully handled failures (not too graceful though)
20
Advent of ECS/ECR a la mode Docker
21
Deployment
◦ Using init-data, instance registers with cluster
◦ Installs docker on boot
◦ ECS cluster in daemon/replica mode deploys app
◦ Target groups route ALB traffic to docker containers on Spot
instances
◦ Data is routed via message queue to non internet facing
services
22
Deployment Notes - Recap
ECS Clusters – Backbone of Spot
23
Slow deployments, manual scaling, over
provisioned system
Benefits so far…
24
◦ Spot fleet allows us to request a class of instances and
maintains capacity - Overprovisioning
◦ Stable pricing (max we pay is on-demand cost)
◦ Transparency in cost savings & no cost spikes –
Predictable bills
◦ Early warnings - We just use them to notify us
◦ 90% workloads on Spot
◦ Scale up/down capacity within minutes
Spot Savings - In Numbers (-3d)
25
Key Takeaways
26
◦ Spot Fleets should be part of your architecture
◦ Spot Fleets can save a lot of money only if you change
your architecture
◦ Spots can handle all types of workloads not just data
processing
◦ Trust AWS to innovate
27
Thanks!
We are hiring!
You can find us at:
◦ www.metroguild.com
◦ careers@metroguild.com
◦ https://www.linkedin.com/in/arifamirani/

More Related Content

What's hot

Go for Real Time Streaming Architectures - DotGo 2017
Go for Real Time Streaming Architectures - DotGo 2017Go for Real Time Streaming Architectures - DotGo 2017
Go for Real Time Streaming Architectures - DotGo 2017Mickaël Rémond
 
Grid calculations ELVIS event Antti Harjula
Grid calculations ELVIS event Antti HarjulaGrid calculations ELVIS event Antti Harjula
Grid calculations ELVIS event Antti HarjulaFingrid Oyj
 
APIdays Paris 2018 - Europ Assistance, the transformation through Public APIs...
APIdays Paris 2018 - Europ Assistance, the transformation through Public APIs...APIdays Paris 2018 - Europ Assistance, the transformation through Public APIs...
APIdays Paris 2018 - Europ Assistance, the transformation through Public APIs...apidays
 
How to Say Yes to Self-Service in the Cloud and Become an IT Hero (ENT217) | ...
How to Say Yes to Self-Service in the Cloud and Become an IT Hero (ENT217) | ...How to Say Yes to Self-Service in the Cloud and Become an IT Hero (ENT217) | ...
How to Say Yes to Self-Service in the Cloud and Become an IT Hero (ENT217) | ...Amazon Web Services
 
Patterns for building resilient and scalable microservices platform on AWS
Patterns for building resilient and scalable microservices platform on AWSPatterns for building resilient and scalable microservices platform on AWS
Patterns for building resilient and scalable microservices platform on AWSBoyan Dimitrov
 
Enabling a Real-Time, Agile, Event-Driven Enterprise
Enabling a Real-Time, Agile, Event-Driven EnterpriseEnabling a Real-Time, Agile, Event-Driven Enterprise
Enabling a Real-Time, Agile, Event-Driven EnterpriseSolace
 
How to Measure the the Quality of Service in Cloud Based Technology?
How to Measure the the Quality of Service in Cloud Based Technology?How to Measure the the Quality of Service in Cloud Based Technology?
How to Measure the the Quality of Service in Cloud Based Technology?Madushi Rathnayake
 
How to build & run a SaaS with a team of two
How to build & run a SaaS with a team of twoHow to build & run a SaaS with a team of two
How to build & run a SaaS with a team of twoEficode
 
ELVIS transmission line maintenance ELVIS event. Vesa Malinen
ELVIS transmission line maintenance ELVIS event. Vesa MalinenELVIS transmission line maintenance ELVIS event. Vesa Malinen
ELVIS transmission line maintenance ELVIS event. Vesa MalinenFingrid Oyj
 
Event-Driven Transformation in Banking and FSI
Event-Driven Transformation in Banking and FSIEvent-Driven Transformation in Banking and FSI
Event-Driven Transformation in Banking and FSISolace
 
Keynote : évolution et vision d'Elastic Observability
Keynote : évolution et vision d'Elastic ObservabilityKeynote : évolution et vision d'Elastic Observability
Keynote : évolution et vision d'Elastic ObservabilityElasticsearch
 
Stream events across your enterprise with the Solace Platform
Stream events across your enterprise with the Solace PlatformStream events across your enterprise with the Solace Platform
Stream events across your enterprise with the Solace PlatformSolace
 
High-Velocity, Real-Time Connected Industry – From Edge to Cloud
High-Velocity, Real-Time Connected Industry – From Edge to CloudHigh-Velocity, Real-Time Connected Industry – From Edge to Cloud
High-Velocity, Real-Time Connected Industry – From Edge to CloudSolace
 
ELVIS substation maintenance Hannu Hätönen
ELVIS substation maintenance Hannu HätönenELVIS substation maintenance Hannu Hätönen
ELVIS substation maintenance Hannu HätönenFingrid Oyj
 
Savings on scale - Spot Instances with Autospotter
Savings on scale - Spot Instances with AutospotterSavings on scale - Spot Instances with Autospotter
Savings on scale - Spot Instances with AutospotterAWS Germany
 
Combining logs, metrics, and traces for unified observability
Combining logs, metrics, and traces for unified observabilityCombining logs, metrics, and traces for unified observability
Combining logs, metrics, and traces for unified observabilityElasticsearch
 

What's hot (20)

IT Risk Management
IT Risk ManagementIT Risk Management
IT Risk Management
 
Go for Real Time Streaming Architectures - DotGo 2017
Go for Real Time Streaming Architectures - DotGo 2017Go for Real Time Streaming Architectures - DotGo 2017
Go for Real Time Streaming Architectures - DotGo 2017
 
Grid calculations ELVIS event Antti Harjula
Grid calculations ELVIS event Antti HarjulaGrid calculations ELVIS event Antti Harjula
Grid calculations ELVIS event Antti Harjula
 
APIdays Paris 2018 - Europ Assistance, the transformation through Public APIs...
APIdays Paris 2018 - Europ Assistance, the transformation through Public APIs...APIdays Paris 2018 - Europ Assistance, the transformation through Public APIs...
APIdays Paris 2018 - Europ Assistance, the transformation through Public APIs...
 
How to Say Yes to Self-Service in the Cloud and Become an IT Hero (ENT217) | ...
How to Say Yes to Self-Service in the Cloud and Become an IT Hero (ENT217) | ...How to Say Yes to Self-Service in the Cloud and Become an IT Hero (ENT217) | ...
How to Say Yes to Self-Service in the Cloud and Become an IT Hero (ENT217) | ...
 
Patterns for building resilient and scalable microservices platform on AWS
Patterns for building resilient and scalable microservices platform on AWSPatterns for building resilient and scalable microservices platform on AWS
Patterns for building resilient and scalable microservices platform on AWS
 
ADC-as-a-Service
ADC-as-a-ServiceADC-as-a-Service
ADC-as-a-Service
 
Enabling a Real-Time, Agile, Event-Driven Enterprise
Enabling a Real-Time, Agile, Event-Driven EnterpriseEnabling a Real-Time, Agile, Event-Driven Enterprise
Enabling a Real-Time, Agile, Event-Driven Enterprise
 
How to Measure the the Quality of Service in Cloud Based Technology?
How to Measure the the Quality of Service in Cloud Based Technology?How to Measure the the Quality of Service in Cloud Based Technology?
How to Measure the the Quality of Service in Cloud Based Technology?
 
How to build & run a SaaS with a team of two
How to build & run a SaaS with a team of twoHow to build & run a SaaS with a team of two
How to build & run a SaaS with a team of two
 
ELVIS transmission line maintenance ELVIS event. Vesa Malinen
ELVIS transmission line maintenance ELVIS event. Vesa MalinenELVIS transmission line maintenance ELVIS event. Vesa Malinen
ELVIS transmission line maintenance ELVIS event. Vesa Malinen
 
Event-Driven Transformation in Banking and FSI
Event-Driven Transformation in Banking and FSIEvent-Driven Transformation in Banking and FSI
Event-Driven Transformation in Banking and FSI
 
Real time serverless data pipelines on AWS
Real time serverless data pipelines on AWSReal time serverless data pipelines on AWS
Real time serverless data pipelines on AWS
 
Keynote : évolution et vision d'Elastic Observability
Keynote : évolution et vision d'Elastic ObservabilityKeynote : évolution et vision d'Elastic Observability
Keynote : évolution et vision d'Elastic Observability
 
Stream events across your enterprise with the Solace Platform
Stream events across your enterprise with the Solace PlatformStream events across your enterprise with the Solace Platform
Stream events across your enterprise with the Solace Platform
 
High-Velocity, Real-Time Connected Industry – From Edge to Cloud
High-Velocity, Real-Time Connected Industry – From Edge to CloudHigh-Velocity, Real-Time Connected Industry – From Edge to Cloud
High-Velocity, Real-Time Connected Industry – From Edge to Cloud
 
ELVIS substation maintenance Hannu Hätönen
ELVIS substation maintenance Hannu HätönenELVIS substation maintenance Hannu Hätönen
ELVIS substation maintenance Hannu Hätönen
 
Savings on scale - Spot Instances with Autospotter
Savings on scale - Spot Instances with AutospotterSavings on scale - Spot Instances with Autospotter
Savings on scale - Spot Instances with Autospotter
 
From AIX to Zero-ops by Pierre Baillet
From AIX to Zero-ops by Pierre BailletFrom AIX to Zero-ops by Pierre Baillet
From AIX to Zero-ops by Pierre Baillet
 
Combining logs, metrics, and traces for unified observability
Combining logs, metrics, and traces for unified observabilityCombining logs, metrics, and traces for unified observability
Combining logs, metrics, and traces for unified observability
 

Similar to AWS Pune Meetup - Microservices

Serverless Computing: Driving Innovation and Business Value
Serverless Computing: Driving Innovation and Business ValueServerless Computing: Driving Innovation and Business Value
Serverless Computing: Driving Innovation and Business ValueAlibaba Cloud
 
CA Spectrum® Just Keeps Getting Better and Better
CA Spectrum® Just Keeps Getting Better and BetterCA Spectrum® Just Keeps Getting Better and Better
CA Spectrum® Just Keeps Getting Better and BetterCA Technologies
 
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in London
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in LondonIoT and the Oil & Gas industry at M2M Oil & Gas 2014 in London
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in LondonEurotech
 
5 Years Of Building SaaS On AWS
5 Years Of Building SaaS On AWS5 Years Of Building SaaS On AWS
5 Years Of Building SaaS On AWSChristian Beedgen
 
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise StrategyAWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise StrategyAmazon Web Services
 
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...Eurotech
 
Breaking the Monolith Road to Containers
Breaking the Monolith Road to ContainersBreaking the Monolith Road to Containers
Breaking the Monolith Road to ContainersAmazon Web Services
 
Transformação Digital – Onde se encontra a Indústria.
Transformação Digital – Onde se encontra a Indústria.Transformação Digital – Onde se encontra a Indústria.
Transformação Digital – Onde se encontra a Indústria.Joao Galdino Mello de Souza
 
Unleashing Apache Kafka and TensorFlow in the Cloud

Unleashing Apache Kafka and TensorFlow in the Cloud
Unleashing Apache Kafka and TensorFlow in the Cloud

Unleashing Apache Kafka and TensorFlow in the Cloud
Kai Wähner
 
Right scale enterprise solution
Right scale enterprise solution Right scale enterprise solution
Right scale enterprise solution Brad , Yun Lee
 
Right scale enterprise solution
Right scale enterprise solution Right scale enterprise solution
Right scale enterprise solution Brad , Yun Lee
 
Oracle Open World 2018 - Cloud Lift Accelerator Suite
Oracle Open World 2018 - Cloud Lift Accelerator SuiteOracle Open World 2018 - Cloud Lift Accelerator Suite
Oracle Open World 2018 - Cloud Lift Accelerator SuiteIke Aniagoh
 
“Machine Learning for the Real World: What is Acceptable Accuracy, and How Ca...
“Machine Learning for the Real World: What is Acceptable Accuracy, and How Ca...“Machine Learning for the Real World: What is Acceptable Accuracy, and How Ca...
“Machine Learning for the Real World: What is Acceptable Accuracy, and How Ca...Edge AI and Vision Alliance
 
The Impact of Messaging Standards on Event-Driven Architecture and IoT
The Impact of Messaging Standards on Event-Driven Architecture and IoTThe Impact of Messaging Standards on Event-Driven Architecture and IoT
The Impact of Messaging Standards on Event-Driven Architecture and IoTSolace
 
Should healthcare abandon the cloud final
Should healthcare abandon the cloud finalShould healthcare abandon the cloud final
Should healthcare abandon the cloud finalsapenov
 
RightScale Roadtrip Boston: Accelerate to Cloud
RightScale Roadtrip Boston: Accelerate to CloudRightScale Roadtrip Boston: Accelerate to Cloud
RightScale Roadtrip Boston: Accelerate to CloudRightScale
 
Transforming Consumer Banking with a 100% Cloud-Based Bank (FSV204) - AWS re:...
Transforming Consumer Banking with a 100% Cloud-Based Bank (FSV204) - AWS re:...Transforming Consumer Banking with a 100% Cloud-Based Bank (FSV204) - AWS re:...
Transforming Consumer Banking with a 100% Cloud-Based Bank (FSV204) - AWS re:...Amazon Web Services
 
Defining a Cloud Adoption Journey to Deliver Cloud Native Services
Defining a Cloud Adoption Journey to Deliver Cloud Native ServicesDefining a Cloud Adoption Journey to Deliver Cloud Native Services
Defining a Cloud Adoption Journey to Deliver Cloud Native ServicesAmazon Web Services
 

Similar to AWS Pune Meetup - Microservices (20)

Serverless Computing: Driving Innovation and Business Value
Serverless Computing: Driving Innovation and Business ValueServerless Computing: Driving Innovation and Business Value
Serverless Computing: Driving Innovation and Business Value
 
CA Spectrum® Just Keeps Getting Better and Better
CA Spectrum® Just Keeps Getting Better and BetterCA Spectrum® Just Keeps Getting Better and Better
CA Spectrum® Just Keeps Getting Better and Better
 
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in London
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in LondonIoT and the Oil & Gas industry at M2M Oil & Gas 2014 in London
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in London
 
5 Years Of Building SaaS On AWS
5 Years Of Building SaaS On AWS5 Years Of Building SaaS On AWS
5 Years Of Building SaaS On AWS
 
Attinad Software IoT offerings
Attinad Software IoT offeringsAttinad Software IoT offerings
Attinad Software IoT offerings
 
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise StrategyAWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
 
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...
 
Breaking the Monolith Road to Containers
Breaking the Monolith Road to ContainersBreaking the Monolith Road to Containers
Breaking the Monolith Road to Containers
 
Transformação Digital – Onde se encontra a Indústria.
Transformação Digital – Onde se encontra a Indústria.Transformação Digital – Onde se encontra a Indústria.
Transformação Digital – Onde se encontra a Indústria.
 
QueueMetrics Live
QueueMetrics LiveQueueMetrics Live
QueueMetrics Live
 
Unleashing Apache Kafka and TensorFlow in the Cloud

Unleashing Apache Kafka and TensorFlow in the Cloud
Unleashing Apache Kafka and TensorFlow in the Cloud

Unleashing Apache Kafka and TensorFlow in the Cloud

 
Right scale enterprise solution
Right scale enterprise solution Right scale enterprise solution
Right scale enterprise solution
 
Right scale enterprise solution
Right scale enterprise solution Right scale enterprise solution
Right scale enterprise solution
 
Oracle Open World 2018 - Cloud Lift Accelerator Suite
Oracle Open World 2018 - Cloud Lift Accelerator SuiteOracle Open World 2018 - Cloud Lift Accelerator Suite
Oracle Open World 2018 - Cloud Lift Accelerator Suite
 
“Machine Learning for the Real World: What is Acceptable Accuracy, and How Ca...
“Machine Learning for the Real World: What is Acceptable Accuracy, and How Ca...“Machine Learning for the Real World: What is Acceptable Accuracy, and How Ca...
“Machine Learning for the Real World: What is Acceptable Accuracy, and How Ca...
 
The Impact of Messaging Standards on Event-Driven Architecture and IoT
The Impact of Messaging Standards on Event-Driven Architecture and IoTThe Impact of Messaging Standards on Event-Driven Architecture and IoT
The Impact of Messaging Standards on Event-Driven Architecture and IoT
 
Should healthcare abandon the cloud final
Should healthcare abandon the cloud finalShould healthcare abandon the cloud final
Should healthcare abandon the cloud final
 
RightScale Roadtrip Boston: Accelerate to Cloud
RightScale Roadtrip Boston: Accelerate to CloudRightScale Roadtrip Boston: Accelerate to Cloud
RightScale Roadtrip Boston: Accelerate to Cloud
 
Transforming Consumer Banking with a 100% Cloud-Based Bank (FSV204) - AWS re:...
Transforming Consumer Banking with a 100% Cloud-Based Bank (FSV204) - AWS re:...Transforming Consumer Banking with a 100% Cloud-Based Bank (FSV204) - AWS re:...
Transforming Consumer Banking with a 100% Cloud-Based Bank (FSV204) - AWS re:...
 
Defining a Cloud Adoption Journey to Deliver Cloud Native Services
Defining a Cloud Adoption Journey to Deliver Cloud Native ServicesDefining a Cloud Adoption Journey to Deliver Cloud Native Services
Defining a Cloud Adoption Journey to Deliver Cloud Native Services
 

Recently uploaded

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 

Recently uploaded (20)

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 

AWS Pune Meetup - Microservices

  • 1. Microservices on the SPOT! Arif Amirani CTO & Co-Founder at MetroGuild Inc
  • 2. Agenda ◦ Basics of Spot instances & Microservices? ◦ Why use Spot instances? ◦ How MetroGuild uses microservices & Spot instances to deliver high availability & cost savings ◦ Q&A 2
  • 3. The bill comes due ◦ Are you running production workloads? ◦ Are you using Spot instances? ◦ Infrastructure needs to scale with the business… frugally! ◦ Your job is not just to make it work ◦ Check your org/BU costs 3
  • 4. SpotReserved EC2 Purchase Options On-demand 4 Spiky workloads Committed Flexible & stateless
  • 5. Can I use Spot today? ◦ Is spot for everyone? – NO! ◦ Can everyone use Spot? – Maybe J 5
  • 6. Microservices 6 • Scoped (Biz/Function) • Decentralized • Loosely coupled • Autonomous • Black box • Shared nothing*
  • 7. Spots are great!...Right? ◦ Interruptions are a reality! ◦ But… 95% of instances weren’t interrupted in 3 months ◦ We get a 2 minute warning before instance is killed ◦ Pricing was/is dynamic 7
  • 8. HMMM… MICROSERVICES ON CONTAINERS Is my workload ready for Spot? 8 STATELESS FAULT TOLERANT FLEXIBLE AZ + INSTANCE LOOSELY COUPLED
  • 9. Spot Pricing/Bidding ◦ Remember Spot is spare capacity from the on- demand pool ◦ If on-demand usage increases you may lose your spot instances ◦ Bidding was the norm earlier ◦ Predictable pricing after Nov 2017 9
  • 10. Spot Pools 10 INSTANCE FAMILY c4 + INSTANCE SIZE xlarge = AVAILABILITY ZONE 1a REGION us-east SPOT POOL
  • 11. What does that mean? 11 Choose several availability zones
  • 12. What does that mean? 12 Choose several instance types
  • 14. We are a sales accelerator for large enterprises 14 What is MetroLeads? Sourcing Lead Management Voice CRM Email and SMS Sig management Calendaring Field Sales Vertical centric 3rd party apps Metroleads Cocktail for Sales and Marketing API
  • 15. 15 Analytics & Campaigns Voice platform Fast response times Uptime Quick updates Experimentation Security & Compliance High throughput & scaled capacity Low latency Geo distribution High availability Fast control plane A/B Testing & Environments Isolation, certificate maintenance, etc Business vs Engineering Goals Metroleads CRM Insights Reports DATA CAPTURE API EmailSMSCalls Web entries Mobile App IOS and Android Web App Expo App USERS
  • 16. ◦ Microservices architecture ◦ Containers (Docker) & Orchestration (Puppet) ◦ Highly available data sources – Cassandra & Elasticsearch Clusters ◦ Data (API) delivery - ReactJS/React Native ◦ Data Security – Isolated environments and secure access ◦ Open Source software is preferred (Self hosted) 16 Key Tenets
  • 17. ◦ Data Growth & Customer Growth ◦ Fluctuations of data (periodic spikes) ◦ Cost per customer was too high 17 Why did we even move to Spot?
  • 18. 18 No time to react – Auto Scaling
  • 19. ◦ We got outbid too often – Cost! ◦ No warnings – Data Loss! ◦ Code was not resilient to failure or load due to loss of capacity – Broken windows! ◦ Lack of choices i.e. could not request classes of instances - Locked on one type & spent time on deciding (we wrote a prediction algorithm too)! 19 Initial Spot Hurdles – Circa ‘13
  • 20. ◦ Ease of deployment ◦ Auto registration with ALB/ELB – Target groups ◦ Moved to a real messaging queue (RabbitMQ) to throttle load for non SLA services ◦ Gracefully handled failures (not too graceful though) 20 Advent of ECS/ECR a la mode Docker
  • 22. ◦ Using init-data, instance registers with cluster ◦ Installs docker on boot ◦ ECS cluster in daemon/replica mode deploys app ◦ Target groups route ALB traffic to docker containers on Spot instances ◦ Data is routed via message queue to non internet facing services 22 Deployment Notes - Recap
  • 23. ECS Clusters – Backbone of Spot 23 Slow deployments, manual scaling, over provisioned system
  • 24. Benefits so far… 24 ◦ Spot fleet allows us to request a class of instances and maintains capacity - Overprovisioning ◦ Stable pricing (max we pay is on-demand cost) ◦ Transparency in cost savings & no cost spikes – Predictable bills ◦ Early warnings - We just use them to notify us ◦ 90% workloads on Spot ◦ Scale up/down capacity within minutes
  • 25. Spot Savings - In Numbers (-3d) 25
  • 26. Key Takeaways 26 ◦ Spot Fleets should be part of your architecture ◦ Spot Fleets can save a lot of money only if you change your architecture ◦ Spots can handle all types of workloads not just data processing ◦ Trust AWS to innovate
  • 27. 27 Thanks! We are hiring! You can find us at: ◦ www.metroguild.com ◦ careers@metroguild.com ◦ https://www.linkedin.com/in/arifamirani/