SlideShare a Scribd company logo
Microservices
PU Tech Talks
What is a microservice?
" (...) an approach to developing a single application as
a suite of small services, each running in its own
process and communicating with lightweight
mechanisms, often an HTTP resource API."
Microservices Architecture Definition
Martin Fowler
Source: http://martinfowler.com/articles/microservices.html
What problems microservices
can solve ?
Microservices help us to componentize our application
avoiding the problems created by monolith architectures.
Microservices Architecture Definition
But what is a component ?
A component is:
Something independently replaceable. Something independently upgradeable.
How to identify a monolith design?
In a monolith architecture, our components
are defined as libraries.
deployed into a
single
application.
All pieces of
your code
organized as
libraries ...
Componentization via Libraries
Classic Monolithic Architecture
And what are the problems with a
monolith design?
What happens when we need to scale this?
Node 1 Node 2
Node 3 Node N
We got this!
x N =
...
Scaling costs
All resources need to be deployed into each new node.
Code complexity
You need to work on a large code base.
Application availability
You need to shut down all resources every deploy.
Coupling code
Easy to violate code boundaries.
Long QA cycles
Each change in the code needs to be tested throughout the application.
Monolithic Architecture Problems
How to identify a microservice
design?
In a microservices architecture, our
components are defined as services.
All pieces of your
code organized
as services.
Componentization via Services
Microservices Architecture
Are microservices just about a
clean code?
NO.
Microservices are about teams organization.
Microservices rethink data organization.
Microservices allow technology plurality.
Teams organized around functions turn into ...
Microservices are about teams organization
… teams organized around business capabilities.
Microservices rethink teams organization
Source: http://martinfowler.com/articles/microservices.html
Microservices rethink data organization
Source: Yow Conference Dec 2013 Netflix Workshop
http://pt.slideshare.net/adrianco/yowworkshop-131203193626phpapp01-1
Microservices allow technology plurality
But be careful:
Just because you can use a complex stack of
technologies, doesn't mean you should.
Why not?
Matt Ranney, Chief Systems Architect at Uber - souce:
https://www.infoq.com/articles/podcast-matt-ranney
Multiple techs come at a price
"A lot of things in engineering is a trade of. A lot of trade
of were not obvious. (...) I hadn't expected the cost of
using multiple languages for microservices to be so high"
How to manage multiple
microservices at the same time ?
First: Infrastructure Automation
Allows automated deployment into:
Instances Virtual Machines Containers
Infrastructure Automation
Tests
Continuous
Integration
Continuous
Delivery
Simple to launch
Hard to isolate from
other resources
Consumes all
available resources
Easy to scale - just
add more VMs
VMs have slow
startups
Easy CPU and
memory control
Easy to scale - just
add more containers
Insanely fast to build
and start.
Easy CPU and
memory control
Second: Sophisticated monitoring
Services can fail anytime.
With problems that were not anticipated.
Your monitoring must be:
Realtime Instance level Service level
on:
Architectural elements Business elements
Requests per second
Disc I/O
CPU usage
Sales per minute received
Number of sessions alive
Users navigation stats
What if I need to process something
through multiple services?
Monoliths usually solve this problem
with orchestration
Order Service
new
order
Orchestration design
Payment
Service
Stock Service
Delivery
Service
One service orchestrates a
process flow throughout
the application.
But microservices usually prefer
choreography over orchestration
Workflow service
Choreography design
new
order
Order Service
Payment
Service
Stock Service
Delivery
Service
Publishes Subscribes Subscribes Subscribes
With multiple services we need to be
prepared to fail.
What happens if we
have a network
failure here ?
Or a timeout
here ?
Or an internal
error here ?
Design for failure
Workflow service
Order Service
Payment
Service
Stock Service
Delivery
Service
Ok, let's be honest: What problems
could a microservice design bring?
Microservices general criticism
it's complex to manage due to its distributed nature.
It's hard to keep transactional control over your data.
Inter-service calls over a network have a higher cost in terms
of latency and message processing time than in-process
calls.
Multiple message formats.
Moving responsibilities between services is more
difficult.
QA?
Thanks.

More Related Content

PDF
Microservices: an introduction
PPTX
Mobile app-and-microservices-with-ibm-cloud
PDF
Microservice architecture
PPTX
Think Small To Go Big - Introduction To Microservices
PPTX
Microservices: A Gentle Introduction
PPTX
About Microservices, Containers and their Underestimated Impact on Network Pe...
PPT
Discussion About Microservices Architecture
PPTX
Introduction To Microservices
Microservices: an introduction
Mobile app-and-microservices-with-ibm-cloud
Microservice architecture
Think Small To Go Big - Introduction To Microservices
Microservices: A Gentle Introduction
About Microservices, Containers and their Underestimated Impact on Network Pe...
Discussion About Microservices Architecture
Introduction To Microservices

What's hot (20)

PDF
Introduction to Microservices
PDF
Microservices: A Security Nightmare?
PPTX
Develop in ludicrous mode with azure serverless
PPTX
Microservices and the future on Infrastructure
PDF
Microservice Architecture 101
PPTX
building microservices
PPTX
Introduction to microservices
PDF
Introduction to Microservices
PDF
Introduction to Microservices
PDF
Monoliths, Myths, and Microservices
PDF
Survey of Container Build Tools
PDF
Introducing the Open Container Project
PPTX
Introduction to Microservices
PPTX
Cloud computing
PDF
The Case Against Microservices
PDF
Monoliths, Myths, and Microservices - CfgMgmtCamp
PDF
APIdays Paris 2019 - Cloud native API Management for Microservices on a Servi...
PPTX
Containers jumpstart from a DevOps perspective
PDF
Integration Patterns and Anti-Patterns for Microservices Architectures
PDF
Introduction to microservices (from rails monolith)
Introduction to Microservices
Microservices: A Security Nightmare?
Develop in ludicrous mode with azure serverless
Microservices and the future on Infrastructure
Microservice Architecture 101
building microservices
Introduction to microservices
Introduction to Microservices
Introduction to Microservices
Monoliths, Myths, and Microservices
Survey of Container Build Tools
Introducing the Open Container Project
Introduction to Microservices
Cloud computing
The Case Against Microservices
Monoliths, Myths, and Microservices - CfgMgmtCamp
APIdays Paris 2019 - Cloud native API Management for Microservices on a Servi...
Containers jumpstart from a DevOps perspective
Integration Patterns and Anti-Patterns for Microservices Architectures
Introduction to microservices (from rails monolith)
Ad

Similar to Microservices - Peixe Urbano Tech Talks (20)

PPSX
Microservices Architecture, Monolith Migration Patterns
PDF
Microservices - How Microservices Have Changed and Why They Matter
PDF
Unlocking the Future of Software Development with Microservices Architecture.pdf
PPTX
Microservices architecture
PPTX
agile microservices @scaibo
PDF
Building Microservices Software practics
PDF
[APIdays Paris 2019] API Management in Service Mesh Using Istio and WSO2 API ...
PPTX
Enabling application portability with the greatest of ease!
ODP
Microservice Architecture JavaCro 2015
PPTX
Do You Need A Service Mesh?
PDF
A Guide on What Are Microservices: Pros, Cons, Use Cases, and More
PDF
Microservices architecture with Python_ Building scalable and maintainable sy...
PDF
Microservice architecture
PPTX
Micro Front-End & Microservices - Plansoft
PPTX
Elastically scalable architectures with microservices. The end of the monolith?
PDF
Microservices (en)
PPTX
Do you need microservices architecture?
PDF
Advantages And Disadvantages Of Virtualization
PPTX
Microservices Corporate Style
PDF
Essay On Workplace Telecommunications
Microservices Architecture, Monolith Migration Patterns
Microservices - How Microservices Have Changed and Why They Matter
Unlocking the Future of Software Development with Microservices Architecture.pdf
Microservices architecture
agile microservices @scaibo
Building Microservices Software practics
[APIdays Paris 2019] API Management in Service Mesh Using Istio and WSO2 API ...
Enabling application portability with the greatest of ease!
Microservice Architecture JavaCro 2015
Do You Need A Service Mesh?
A Guide on What Are Microservices: Pros, Cons, Use Cases, and More
Microservices architecture with Python_ Building scalable and maintainable sy...
Microservice architecture
Micro Front-End & Microservices - Plansoft
Elastically scalable architectures with microservices. The end of the monolith?
Microservices (en)
Do you need microservices architecture?
Advantages And Disadvantages Of Virtualization
Microservices Corporate Style
Essay On Workplace Telecommunications
Ad

Recently uploaded (20)

PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Digital Strategies for Manufacturing Companies
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
L1 - Introduction to python Backend.pptx
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
top salesforce developer skills in 2025.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Introduction to Artificial Intelligence
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Nekopoi APK 2025 free lastest update
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
System and Network Administration Chapter 2
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Digital Strategies for Manufacturing Companies
ISO 45001 Occupational Health and Safety Management System
VVF-Customer-Presentation2025-Ver1.9.pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Understanding Forklifts - TECH EHS Solution
L1 - Introduction to python Backend.pptx
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Design an Analysis of Algorithms I-SECS-1021-03
top salesforce developer skills in 2025.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Introduction to Artificial Intelligence
Operating system designcfffgfgggggggvggggggggg
Upgrade and Innovation Strategies for SAP ERP Customers
Wondershare Filmora 15 Crack With Activation Key [2025
Nekopoi APK 2025 free lastest update
PTS Company Brochure 2025 (1).pdf.......
System and Network Administration Chapter 2

Microservices - Peixe Urbano Tech Talks