SlideShare uma empresa Scribd logo
1 de 13
Microservices vs. Monolithic Architectures
By Sergey Sverchkov,
Solutions Architect
www.altoros.com
@altoros
Pros, Cons, and How Cloud Foundry (PaaS) Can Help
@altoros@altoros
Table of Contents
2
• Monolithic Architectures: an Example
• Issues with Monoliths
• Microservices: an Alternative
• 4 Pros of Microservices
• 4 Cons of Microservices
• How a PaaS (such as Cloud Foundry) Can Help
@altoros@altoros
Monolithic Architectures: an Example
3
• Several components share a domain model with entities such as Device, Signal, and User
• Device Listener: Receives data from devices
• Data Processor: Processes and stores data in a database
• Authenticator module: Provides authentication of devices and users
• Load Balancer: Distributes workload between several instances of a monolithic app
@altoros
Issues with Monoliths
4
• Longer development cycles
• Quick deployments are hardly possible with frequent
changes.
• Long-term commitment to a particular technology stack
• May need to re-write the code of the entire application!
(For instance, if you want to change an underlying technology for one or
several components—e.g., from Java to JavaScript.)
• Scaling logic requires significant resources in terms of
budget and time.
@altoros@altoros
Microservices: an Alternative
5
• With the microservices approach, complex apps are divided into
smaller parts that are loosely coupled.
• System comprises relatively simple services that communicate with
each other through a message broker, a database, and a REST API.
• Built for the cloud!
@altoros
4 Pros of Microservices
6
• Independence of services
• Focus on business
capabilities of apps
• Simplicity of adding new
features
• Fault tolerance
Each service contains its own business logic
and is deployed separately, making it possible to
gradually add new features.
The development process becomes more
flexible. Each service is a separate app with its
own business logic, UI, persistent storage, and
functionality.
Implementing microservices, dev teams deal
with smaller apps and simpler architectures. So,
it is easy to introduce changes or add another
service.
Even if any of the units fail, these small units are
loosely coupled and can be automatically
restored. Developers can increase availability of
each unit, which results in a more stable system.
@altoros
4 Cons of Microservices
7
• Implicit interfaces
• Operational overhead
• Require DevOps skills
• Operational complexity
Components of the system communicate via
interfaces. All components are interrelated, so
modification of one interface means
adjustment of other interfaces.
More resources are needed, with increased
operational overhead.
E.g., various tools for different services of the
system may need different data stores. A DBA
may need to have DevOp skills with
experience in deploying and optimizing NoSQL
dbs.
Microservices comprise multiple instances and
services that must be managed in production.
Addressing this requires a high level of
automation.
@altoros
How a PaaS (such as Cloud Foundry) Can Help
8
• No need to create additional scripts to automate
operations monitoring and scaling
• Development, testing, and production release
processes are identical in terms of deployment.
• Enables adding new component instances without
affecting the rest of the system
• Scalable runtime environment support most
frameworks and languages that run on Linux.
• Simplifies deployment and release of microservices
apps
• Automates scaling, health monitoring, load
balancing, and many more
@altoros
Summary of the Microservices Model
• With microservices, complex apps are divided into smaller pieces
(services).
• These services can be scaled and deployed separately.
• Different languages can be used for different parts of the system to
implement the best solution/tool for a particular case.
• Dev teams can deliver updates independently and roll out new
releases more frequently—while keeping the rest of the system
available and stable.
• A platform-as-a-service (such as Cloud Foundry) can address the
issues that may arise.
9
@altoros
Want More? Download This Tech Study!
10
“Microservices vs. Monolithic Architectures:
The Pros, Cons, and Cloud Foundry Examples”
Get the Comparison
• 6 diagrams, 3 tables, 15 pages
• IaaS vs. PaaS for microservies: top 6 differences
• How a PaaS addresses the challenges of microservices
• How to run and scale microservices on Cloud Foundry
• Code samples for Cloud Foundry
http://paas.ly/11Ptshh
@altoros
Altoros, a Silver member of the CF Foundation,
deploys and integrates solutions offered by the Cloud Foundry ecosystem
Training Managed ServicesConsulting Integration
Delivered by Altoros Delivered by the Cloud Foundry ecosystem
With 250+ employees across 9 countries, Altoros is the company
behind some of the world's largest Cloud Foundry deployments.
In Case You Need Assistance
11
@altoros
Altoros Fact Sheet
2001
Established in
Buenos Aires
Oslo
London
Zürich
Sunnyvale, CA
Copenhagen
Minsk
Santa Fe
Boston
Stockholm
250+Employees
600+Implemented projects
98%of customers recommend Altoros
30%Female
70%Male
50+Workshops organized
12
@altoros
Thank You!
13
www.altoros.com/research-papers
Questions?.. engineering@altoros.com
Further Reading
(Benchmarks and Tech Studies):
Subscribe
to new research: blog.altoros.com
Daily tech insights: @altoros

Mais conteúdo relacionado

Mais de Altoros

Mais de Altoros (20)

Containers and Kubernetes
Containers and KubernetesContainers and Kubernetes
Containers and Kubernetes
 
Distributed Ledger Technology for Over-the-Counter Trading
Distributed Ledger Technology for Over-the-Counter TradingDistributed Ledger Technology for Over-the-Counter Trading
Distributed Ledger Technology for Over-the-Counter Trading
 
5-Step Deployment of Hyperledger Fabric on Multiple Nodes
5-Step Deployment of Hyperledger Fabric on Multiple Nodes5-Step Deployment of Hyperledger Fabric on Multiple Nodes
5-Step Deployment of Hyperledger Fabric on Multiple Nodes
 
Deploying Kubernetes on GCP with Kubespray
Deploying Kubernetes on GCP with KubesprayDeploying Kubernetes on GCP with Kubespray
Deploying Kubernetes on GCP with Kubespray
 
UAA for Kubernetes
UAA for KubernetesUAA for Kubernetes
UAA for Kubernetes
 
Troubleshooting .NET Applications on Cloud Foundry
Troubleshooting .NET Applications on Cloud FoundryTroubleshooting .NET Applications on Cloud Foundry
Troubleshooting .NET Applications on Cloud Foundry
 
Continuous Integration and Deployment with Jenkins for PCF
Continuous Integration and Deployment with Jenkins for PCFContinuous Integration and Deployment with Jenkins for PCF
Continuous Integration and Deployment with Jenkins for PCF
 
How to Never Leave Your Deployment Unattended
How to Never Leave Your Deployment UnattendedHow to Never Leave Your Deployment Unattended
How to Never Leave Your Deployment Unattended
 
Cloud Foundry Monitoring How-To: Collecting Metrics and Logs
Cloud Foundry Monitoring How-To: Collecting Metrics and LogsCloud Foundry Monitoring How-To: Collecting Metrics and Logs
Cloud Foundry Monitoring How-To: Collecting Metrics and Logs
 
Smart Baggage Tracking: End-to-End Sensor-Based Solution
Smart Baggage Tracking: End-to-End Sensor-Based SolutionSmart Baggage Tracking: End-to-End Sensor-Based Solution
Smart Baggage Tracking: End-to-End Sensor-Based Solution
 
Navigating the Ecosystem of Pivotal Cloud Foundry Tiles
Navigating the Ecosystem of Pivotal Cloud Foundry TilesNavigating the Ecosystem of Pivotal Cloud Foundry Tiles
Navigating the Ecosystem of Pivotal Cloud Foundry Tiles
 
AI as a Catalyst for IoT
AI as a Catalyst for IoTAI as a Catalyst for IoT
AI as a Catalyst for IoT
 
Over-Engineering: Causes, Symptoms, and Treatment
Over-Engineering: Causes, Symptoms, and TreatmentOver-Engineering: Causes, Symptoms, and Treatment
Over-Engineering: Causes, Symptoms, and Treatment
 
What's New in the Cloud Foundry Ecosystem?
What's New in the Cloud Foundry Ecosystem?What's New in the Cloud Foundry Ecosystem?
What's New in the Cloud Foundry Ecosystem?
 
Bluemix Live Sync: Speed Up Maintenance and Delivery for Node.js
Bluemix Live Sync: Speed Up Maintenance and Delivery for Node.jsBluemix Live Sync: Speed Up Maintenance and Delivery for Node.js
Bluemix Live Sync: Speed Up Maintenance and Delivery for Node.js
 
Deep Learning in Finance
Deep Learning in FinanceDeep Learning in Finance
Deep Learning in Finance
 
How to Run TensorFlow Cheaper in the Cloud Using Elastic GPUs
How to Run TensorFlow Cheaper in the Cloud Using Elastic GPUsHow to Run TensorFlow Cheaper in the Cloud Using Elastic GPUs
How to Run TensorFlow Cheaper in the Cloud Using Elastic GPUs
 
Toward ML-Assisted Tumor Boards Using Cross-Modal Learning
Toward ML-Assisted Tumor Boards Using Cross-Modal LearningToward ML-Assisted Tumor Boards Using Cross-Modal Learning
Toward ML-Assisted Tumor Boards Using Cross-Modal Learning
 
Future of IoT: Key Challenges to Face
Future of IoT: Key Challenges to FaceFuture of IoT: Key Challenges to Face
Future of IoT: Key Challenges to Face
 
Using Hyperledger Fabric to Manage Compliance with Fund Managers and Regulators
Using Hyperledger Fabric to Manage Compliance with Fund Managers and RegulatorsUsing Hyperledger Fabric to Manage Compliance with Fund Managers and Regulators
Using Hyperledger Fabric to Manage Compliance with Fund Managers and Regulators
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Microservices vs. Monolithic Architectures: Pros, Cons, and How Cloud Foundry (PaaS) Can Help

  • 1. Microservices vs. Monolithic Architectures By Sergey Sverchkov, Solutions Architect www.altoros.com @altoros Pros, Cons, and How Cloud Foundry (PaaS) Can Help
  • 2. @altoros@altoros Table of Contents 2 • Monolithic Architectures: an Example • Issues with Monoliths • Microservices: an Alternative • 4 Pros of Microservices • 4 Cons of Microservices • How a PaaS (such as Cloud Foundry) Can Help
  • 3. @altoros@altoros Monolithic Architectures: an Example 3 • Several components share a domain model with entities such as Device, Signal, and User • Device Listener: Receives data from devices • Data Processor: Processes and stores data in a database • Authenticator module: Provides authentication of devices and users • Load Balancer: Distributes workload between several instances of a monolithic app
  • 4. @altoros Issues with Monoliths 4 • Longer development cycles • Quick deployments are hardly possible with frequent changes. • Long-term commitment to a particular technology stack • May need to re-write the code of the entire application! (For instance, if you want to change an underlying technology for one or several components—e.g., from Java to JavaScript.) • Scaling logic requires significant resources in terms of budget and time.
  • 5. @altoros@altoros Microservices: an Alternative 5 • With the microservices approach, complex apps are divided into smaller parts that are loosely coupled. • System comprises relatively simple services that communicate with each other through a message broker, a database, and a REST API. • Built for the cloud!
  • 6. @altoros 4 Pros of Microservices 6 • Independence of services • Focus on business capabilities of apps • Simplicity of adding new features • Fault tolerance Each service contains its own business logic and is deployed separately, making it possible to gradually add new features. The development process becomes more flexible. Each service is a separate app with its own business logic, UI, persistent storage, and functionality. Implementing microservices, dev teams deal with smaller apps and simpler architectures. So, it is easy to introduce changes or add another service. Even if any of the units fail, these small units are loosely coupled and can be automatically restored. Developers can increase availability of each unit, which results in a more stable system.
  • 7. @altoros 4 Cons of Microservices 7 • Implicit interfaces • Operational overhead • Require DevOps skills • Operational complexity Components of the system communicate via interfaces. All components are interrelated, so modification of one interface means adjustment of other interfaces. More resources are needed, with increased operational overhead. E.g., various tools for different services of the system may need different data stores. A DBA may need to have DevOp skills with experience in deploying and optimizing NoSQL dbs. Microservices comprise multiple instances and services that must be managed in production. Addressing this requires a high level of automation.
  • 8. @altoros How a PaaS (such as Cloud Foundry) Can Help 8 • No need to create additional scripts to automate operations monitoring and scaling • Development, testing, and production release processes are identical in terms of deployment. • Enables adding new component instances without affecting the rest of the system • Scalable runtime environment support most frameworks and languages that run on Linux. • Simplifies deployment and release of microservices apps • Automates scaling, health monitoring, load balancing, and many more
  • 9. @altoros Summary of the Microservices Model • With microservices, complex apps are divided into smaller pieces (services). • These services can be scaled and deployed separately. • Different languages can be used for different parts of the system to implement the best solution/tool for a particular case. • Dev teams can deliver updates independently and roll out new releases more frequently—while keeping the rest of the system available and stable. • A platform-as-a-service (such as Cloud Foundry) can address the issues that may arise. 9
  • 10. @altoros Want More? Download This Tech Study! 10 “Microservices vs. Monolithic Architectures: The Pros, Cons, and Cloud Foundry Examples” Get the Comparison • 6 diagrams, 3 tables, 15 pages • IaaS vs. PaaS for microservies: top 6 differences • How a PaaS addresses the challenges of microservices • How to run and scale microservices on Cloud Foundry • Code samples for Cloud Foundry http://paas.ly/11Ptshh
  • 11. @altoros Altoros, a Silver member of the CF Foundation, deploys and integrates solutions offered by the Cloud Foundry ecosystem Training Managed ServicesConsulting Integration Delivered by Altoros Delivered by the Cloud Foundry ecosystem With 250+ employees across 9 countries, Altoros is the company behind some of the world's largest Cloud Foundry deployments. In Case You Need Assistance 11
  • 12. @altoros Altoros Fact Sheet 2001 Established in Buenos Aires Oslo London Zürich Sunnyvale, CA Copenhagen Minsk Santa Fe Boston Stockholm 250+Employees 600+Implemented projects 98%of customers recommend Altoros 30%Female 70%Male 50+Workshops organized 12
  • 13. @altoros Thank You! 13 www.altoros.com/research-papers Questions?.. engineering@altoros.com Further Reading (Benchmarks and Tech Studies): Subscribe to new research: blog.altoros.com Daily tech insights: @altoros