SlideShare a Scribd company logo
Microservices
A brief introduction to services and microservices
What is a service?
“a mechanism to enable access to one or more capabilities, where the
access is provided using a prescribed interface and is exercised
consistent with constraints and policies as specified by the service
description. “
OASIS Reference Model for Service Oriented Architecture
What is a service?
“enable access to one or more capabilities”
• Delegated functionality to specialists (no general specialist)
“access is provided using a prescribed interface ”
• Enforces a distributed architecture, communicating by:
• REST, SOAP, AMQP, MSQM, JMS, etc..
” is exercised consistent with constraints and policies as specified by
the service description. ”
• Abides by the Service Contract
Service contract
Agreement between a service and its consumer that
specifies inbound and outbound data as well as the
format.
Service contract
We have to consider:
• Service availability
• Service responsiveness
• Circuit breaker pattern (if service is not in-memory/remote)
• Versioning (heterogeneous or homogeneous)
• Security (e.g. authentication)
• Transactions (ACID compliance)
Example
• Sys AV Scanner
• Enables access to a virus scanning service
• Access is provided using REST
• Responds using JSON
• Sys understands the communication protocol “inbound data”
• Sys understands the response “outbound data”
Advantages
• Scalable
• Decoupled
• Better control over development, testing and deployment
• Easier maintenance
• and theoretically is costs less for the business [once it’s up and running]
Heterogeneous & Homogeneous Versioning
Homogeneous versioning uses version numbers across the same
contract.
Heterogeneous versioning uses different types of the same contract.
Disadvantages
• Increased complexity
• Increased cost
• Service contracts can be difficult
• What happens if a service I need to connect to is no longer available?
Microservices
Characteristics
&
Capabilities
Characteristics: Taxonomy
Two types of classification:
• Service Type
Type of role the service plays in the overall architecture
• Business Area
Type of role the service plays in the business application
Characteristics: Taxonomy
Many functional services and private-shared infrastructure services
Characteristics: Granularity
Microservices are small, fine-grained services. They do one thing, and
they do it well.
• Granularity affects performance!
• Service Contract overhead can add 100ms to the total response time
• Can impede ACID compliance if services are too granular
Characteristics: Choreography / Orchestration
Orchestration: coordination with a central mediator
Choreography: coordination without a central mediator
Microservices favour orchestration over choreography
Too much choreography can lead to higher efferent coupling
• The degree to which one component is dependent on other components to
complete a single business request
Characteristics: Choreography / Orchestration
Don’t be afraid to redefine services in a more coarsely-grained manner!
Characteristics: Topology
Microservices have an API layer
• Mediator in service orchestration
• Server-access façade
• Introduces abstraction
• Context awareness
• Each service can share or have its
own access to the infrastructure
layer.
Capabilities: Application scope
• Microservices are suited to well-partitioned systems
Capabilities: Heterogeneous Interoperability
The ability to integrate different programming languages and platforms
• Microservices support protocol-aware-heteronegeous-interopability
• Protocol between API layer and service MUST be the same
• SOA also supports protocol-agnostic-heterogeneous-interopability
• Hallelujah for that protocol-transforming middleware
What else can’t Microservices do?
Contract decoupling
Mediation / Routing
Protocol Transformation
Contract decoupling
• Allow services to consume a message that does not abide to the
service contract
• Message Transformation
• Convert XML to JSON
• Message Enhancement
• Normalise date/time format
Mediation / Routing
• Provides the ability to mediate (discover services) and route a request
• A service registry typically acts as the central service configuration
repository
Protocol Transformation
• Enables protocol agnostic heterogenous interopability
• Potentially allows service optimisation
• Service A can only communicate in SOAP, Service B is much faster at accepting
requests in REST

More Related Content

PPTX
Microservices
PPT
Soa Eai Ver1 0
PDF
Cloud Computing and Service oriented Architecture
PDF
Software Evolution: From Legacy Systems, Service Oriented Architecture to Clo...
PPTX
Concept of SOA
PPTX
SOA - Unit 3 - SOA and Web Services
DOCX
Web services
Microservices
Soa Eai Ver1 0
Cloud Computing and Service oriented Architecture
Software Evolution: From Legacy Systems, Service Oriented Architecture to Clo...
Concept of SOA
SOA - Unit 3 - SOA and Web Services
Web services

What's hot (20)

PPTX
SOA - Unit 2 - Service Oriented Architecture
PDF
Road to Microservices
PDF
Service-Oriented Architecture (SOA)
PPTX
Service Oriented Architecture
PPT
Web services and SOA
PPTX
Cloud computing explained
PDF
Service Oriented Architecture & Beyond
PPTX
Service oriented architecture
PDF
Microservice architecture-api-gateway-considerations
PDF
Building REST Web Services With Spring Boot | Microservices Architecture Trai...
PDF
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
PPTX
Service mesh in action with onap
PDF
Microservices
PPTX
Microservices
PPTX
BizTalk on App Services
PPTX
Microservices architecture
PPTX
I'm a developer; should I care about a service mesh?
PPTX
Soa 6 service architecture components
PDF
The use case of a scalable architecture
PDF
About Microservices
SOA - Unit 2 - Service Oriented Architecture
Road to Microservices
Service-Oriented Architecture (SOA)
Service Oriented Architecture
Web services and SOA
Cloud computing explained
Service Oriented Architecture & Beyond
Service oriented architecture
Microservice architecture-api-gateway-considerations
Building REST Web Services With Spring Boot | Microservices Architecture Trai...
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
Service mesh in action with onap
Microservices
Microservices
BizTalk on App Services
Microservices architecture
I'm a developer; should I care about a service mesh?
Soa 6 service architecture components
The use case of a scalable architecture
About Microservices
Ad

Viewers also liked (11)

PDF
Untitled-3
PDF
Incentive Systems
PPTX
Presentación2
PDF
Komal Dhawale Resume
PPTX
Propiedad civil y propiedad agraria
PDF
Ingredients of a Transition_2017_02_06
PPTX
Tandem Carers
ODP
Inter-service communication
PDF
2.2 Properties of union, intersection and complement
PDF
İnşaat sektoru üçün təklif etdiyimiz həllər
PDF
CVs Honey Lou Dela Cerna Conag
Untitled-3
Incentive Systems
Presentación2
Komal Dhawale Resume
Propiedad civil y propiedad agraria
Ingredients of a Transition_2017_02_06
Tandem Carers
Inter-service communication
2.2 Properties of union, intersection and complement
İnşaat sektoru üçün təklif etdiyimiz həllər
CVs Honey Lou Dela Cerna Conag
Ad

Similar to Microservices (eDR PSD) (20)

PPTX
SOA Princples : 7. service autonomy
PPTX
DevOps-training-in-chandigarh-Join-now--
PPTX
E-Services course Chapter II ISI by Ettaieb Abdessattar
PDF
Fallsem2021 22 ita2012-eth_vl2021220101938_reference_material_i_06-aug-2021_m...
PDF
MuCon 2015 - Microservices in Integration Architecture
PPTX
Microservice Architecture Software Architecture Microservice Design Pattern
PPTX
Microservice's in detailed
ODP
Service oriented architecture 27 May 2014
PPTX
Micro service session 1
PPTX
SOA and Monolith Architecture - Micro Services.pptx
PPTX
cloud-computing presentation using various methods
PPTX
Chapter 1 & 2 - Introduction-to-Cloud-Computing.pptx
PDF
Lecture2-IntroductiontoCloudComputing.pdf
PPTX
UNIT2_Cloud Computing - Cloud Enabling Technologies
PPT
Service-oriented Architecture with Respect to Reusability
PPTX
Building Cloud Network.pptx
PPTX
Introduction to Enterprise Service Bus
PPTX
Service oriented architecture characteristics of soa
PPTX
Lecture 1 - Introduction to Cloud Computing.pptx
PPTX
introduction-to-cloud-computing
SOA Princples : 7. service autonomy
DevOps-training-in-chandigarh-Join-now--
E-Services course Chapter II ISI by Ettaieb Abdessattar
Fallsem2021 22 ita2012-eth_vl2021220101938_reference_material_i_06-aug-2021_m...
MuCon 2015 - Microservices in Integration Architecture
Microservice Architecture Software Architecture Microservice Design Pattern
Microservice's in detailed
Service oriented architecture 27 May 2014
Micro service session 1
SOA and Monolith Architecture - Micro Services.pptx
cloud-computing presentation using various methods
Chapter 1 & 2 - Introduction-to-Cloud-Computing.pptx
Lecture2-IntroductiontoCloudComputing.pdf
UNIT2_Cloud Computing - Cloud Enabling Technologies
Service-oriented Architecture with Respect to Reusability
Building Cloud Network.pptx
Introduction to Enterprise Service Bus
Service oriented architecture characteristics of soa
Lecture 1 - Introduction to Cloud Computing.pptx
introduction-to-cloud-computing

Recently uploaded (20)

PPTX
Tartificialntelligence_presentation.pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
observCloud-Native Containerability and monitoring.pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
STKI Israel Market Study 2025 version august
PPT
What is a Computer? Input Devices /output devices
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
August Patch Tuesday
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
1. Introduction to Computer Programming.pptx
Tartificialntelligence_presentation.pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
Zenith AI: Advanced Artificial Intelligence
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
NewMind AI Weekly Chronicles - August'25-Week II
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Hindi spoken digit analysis for native and non-native speakers
Getting started with AI Agents and Multi-Agent Systems
observCloud-Native Containerability and monitoring.pptx
cloud_computing_Infrastucture_as_cloud_p
STKI Israel Market Study 2025 version august
What is a Computer? Input Devices /output devices
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
NewMind AI Weekly Chronicles – August ’25 Week III
O2C Customer Invoices to Receipt V15A.pptx
Module 1.ppt Iot fundamentals and Architecture
Enhancing emotion recognition model for a student engagement use case through...
August Patch Tuesday
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
1. Introduction to Computer Programming.pptx

Microservices (eDR PSD)

  • 1. Microservices A brief introduction to services and microservices
  • 2. What is a service? “a mechanism to enable access to one or more capabilities, where the access is provided using a prescribed interface and is exercised consistent with constraints and policies as specified by the service description. “ OASIS Reference Model for Service Oriented Architecture
  • 3. What is a service? “enable access to one or more capabilities” • Delegated functionality to specialists (no general specialist) “access is provided using a prescribed interface ” • Enforces a distributed architecture, communicating by: • REST, SOAP, AMQP, MSQM, JMS, etc.. ” is exercised consistent with constraints and policies as specified by the service description. ” • Abides by the Service Contract
  • 4. Service contract Agreement between a service and its consumer that specifies inbound and outbound data as well as the format.
  • 5. Service contract We have to consider: • Service availability • Service responsiveness • Circuit breaker pattern (if service is not in-memory/remote) • Versioning (heterogeneous or homogeneous) • Security (e.g. authentication) • Transactions (ACID compliance)
  • 6. Example • Sys AV Scanner • Enables access to a virus scanning service • Access is provided using REST • Responds using JSON • Sys understands the communication protocol “inbound data” • Sys understands the response “outbound data”
  • 7. Advantages • Scalable • Decoupled • Better control over development, testing and deployment • Easier maintenance • and theoretically is costs less for the business [once it’s up and running]
  • 8. Heterogeneous & Homogeneous Versioning Homogeneous versioning uses version numbers across the same contract. Heterogeneous versioning uses different types of the same contract.
  • 9. Disadvantages • Increased complexity • Increased cost • Service contracts can be difficult • What happens if a service I need to connect to is no longer available?
  • 11. Characteristics: Taxonomy Two types of classification: • Service Type Type of role the service plays in the overall architecture • Business Area Type of role the service plays in the business application
  • 12. Characteristics: Taxonomy Many functional services and private-shared infrastructure services
  • 13. Characteristics: Granularity Microservices are small, fine-grained services. They do one thing, and they do it well. • Granularity affects performance! • Service Contract overhead can add 100ms to the total response time • Can impede ACID compliance if services are too granular
  • 14. Characteristics: Choreography / Orchestration Orchestration: coordination with a central mediator Choreography: coordination without a central mediator Microservices favour orchestration over choreography Too much choreography can lead to higher efferent coupling • The degree to which one component is dependent on other components to complete a single business request
  • 15. Characteristics: Choreography / Orchestration Don’t be afraid to redefine services in a more coarsely-grained manner!
  • 16. Characteristics: Topology Microservices have an API layer • Mediator in service orchestration • Server-access façade • Introduces abstraction • Context awareness • Each service can share or have its own access to the infrastructure layer.
  • 17. Capabilities: Application scope • Microservices are suited to well-partitioned systems
  • 18. Capabilities: Heterogeneous Interoperability The ability to integrate different programming languages and platforms • Microservices support protocol-aware-heteronegeous-interopability • Protocol between API layer and service MUST be the same • SOA also supports protocol-agnostic-heterogeneous-interopability • Hallelujah for that protocol-transforming middleware
  • 19. What else can’t Microservices do? Contract decoupling Mediation / Routing Protocol Transformation
  • 20. Contract decoupling • Allow services to consume a message that does not abide to the service contract • Message Transformation • Convert XML to JSON • Message Enhancement • Normalise date/time format
  • 21. Mediation / Routing • Provides the ability to mediate (discover services) and route a request • A service registry typically acts as the central service configuration repository
  • 22. Protocol Transformation • Enables protocol agnostic heterogenous interopability • Potentially allows service optimisation • Service A can only communicate in SOAP, Service B is much faster at accepting requests in REST