SlideShare a Scribd company logo
Orchestration of microservices
mail@bernd-ruecker.com
With thoughts from http://flowing.io
@berndruecker | @martinschimak
Software is
eating the
world.
Marc Andreessen,
Entrepreneur &
Investor
„
to pivot | pivoted, pivoted | [Tech]
If you are not
embarrassed
by the first
version of your
product, you’ve
launched too
late.
Reid Hoffman,
Co-Founder LinkedIn
(and others)
„
Photo by joi, available under
Creative Commons BY 2.0 license
Microservices: It is about speed and agility at scale
• Small components with
clear responsibilities
• Isolation
• Autonomy
• Replaceability
• Flexibility
• Experimentation
• Resilience
• Individual
scalability
Photo by born1945, available under Creative Commons BY 2.0 license
Example
Trip
Booking
Hotel Car Flight Payment
Distributed systems
Service A
Challenge: Synchronous collaboration
Call
service B
Service B
The network is unreliable
Circuit breaker & fail fast
Retry capability &
async behavior
Challenge: Distributed transactions
1. book
hotel
2. book
car
3. book
flight
6.
cancel
hotel
5.
cancel
car
4. In case of
failure trigger
compensations
book
trip
Service A
Car ServiceHotel Service Flight Service
ACID-Transactions
only local in the
service contexts
Distributed
transaction via Saga
pattern using
compensating
activities
The example in BPMN*
* ISO Standard for modeling and execution
The example in BPMN*
Routing
slip
Persistent thing
(Entity, Actor, …)
State machine
How to
implement?
Implement yourself? *
* How hard can it be?
Routing
slip
Persistent thing
(Entity, Actor, …)
State machine
BASTA! Orchestration of microservices
Living documentation
Executable with operational visibility
Historical data and analysis
Warum macht
eigentlich so ein
junges und
dynamisches
Unternehmen
wie ihr so ein alte
Männer Thema
wie BPM?
Ein nicht weiter genannter
Chefredakteur
„
BPM done right
Developer friendly Flexible & composable BizDevOps
Death by
properties panel
Live hacking
Using
http://camunda.org
as example
REST
Tomcat
Camunda
Application /
Service
DB
Datasource
Webapps REST
Sample architecture
Docker Image
REST
Tomcat
Application /
Service
DB
Datasource
Camunda
Webapps REST
Sample architecture
Docker Image
REST
Tomcat
Trip Booking
Service
(C#)
DB
Datasource
Camunda
Webapps REST
Sample architecture
External tasks and task worker
FetchAndLock
Complete
Handle BPMN Error
Handle Failure
Camunda
Your
application
Live hacking
Waiting requires state
More long running requirements
Payment example
Synchronous communication?
Asynchronous & reactive
Trip
Booking
Hotel Car Flight
Bus
Example
Trip
Booking
Hotel Car Flight
Bus
Trip
booked
Does not
know
recepient
Does not
know
sender
Decentral data
management
Smart endpoints
and dumb pipes
Event: Fact that
happened in the past,
Immutable fact,
0..n recepients
Trip
booked
Customer
status
changed
Misconceptions in the microservice community
*Picture randomly taken from http://wareflo.com/2016/11/from-apis-to-microservices-workflow-orchestration-and-choreography-across-healthcare-organizations/. Not connected to statements on slide.
Orchestration…
…introduces single point of
failure…
…leads to god services…
…leads to tight coupling…
„
End-to-end capabilities using event flows?
CarHotel FlightTrip
booking
Trip
booked
Hotel
booked
Car
booked
Flight
booked
End-to-end capabilities using event flows?
CarHotel FlightTrip
booking
Trip
booked
Hotel
booked
Car
booked
Flight
booked
Goods
shipped
Book the car
first as we just
negotiated
better
cancellation
policies
…
Commanding is equally important!
CarHotel FlightTrip
booking
Bus
Trip
booked
Event: Fact,
happened in the past,
immutable,
0..n recepients
Book
hotel
Command: Intend,
1 recipient.
Book
car
Book
flight
Event command transformation
CarHotel FlightTrip
booking
Bus
Book
hotel
Book
car
Book
flight
Trip
booked
Book
Hotel
Event command transformation
CarHotel FlightTrip
booking
Bus
Book
hotel
Book
car
Book
flight
Hotel
booked
Book
car
Event command transformation
CarHotel FlightTrip
booking
Bus
Book
hotel
Book
car
Book
flight
Car
booked
Book
flight
Event command transformation
Car
Book
car
Hotel
booked Trip booking
Command
Something has to happen
in the future
1 recipient
Event
Something has
happend
in the past
0..n recipients
Conciously
decide where to
do the coupling
Transformation
Customer
Status
Changed
The workflow implements event command transformations
Trip
booking
The workflow implements event command transformations
Trip
booking
send
command
receive
event
The workflow implements event command transformations
Trip
booking
send
command
receive
event
Thin integration layer (e.g.
Worker, Azure functions, …)
Distributed orchestration
Trip booking Payment
Engine Engine
New kid on the block
https://zeebe.io/
Zeebe
Broker
Your
application
Binary (MsgPack)
Support streaming & batching
Client
Horiziontally
scalable
Append only log / event sourcing
New kid on the block
https://zeebe.io/
Zeebe
Broker
Your
application
Client
BASTA! Orchestration of microservices
Thank you!
Code:
https://github.com/berndruecker
Slides:
https://bernd-ruecker.com
Blog:
https://blog.bernd-ruecker.com
Feedback:
https://bernd-ruecker.com/feedback
With thoughts from http://flowing.io
@berndruecker | @martinschimak
Images licensed from iStock
no attribution required
Images licensed under Creative Commons license
Photo by joi, available under
Creative Commons BY 2.0 license.
https://www.flickr.com/photos/joi/402948
7352/
Photo by techcrunch, available under
Creative Commons BY 2.0 license.
https://www.flickr.com/photos/techcrunc
h/29035377473
Photo by born1945, available under
Creative Commons BY 2.0 license.
https://www.flickr.com/photos/12567713@N0
0/310639290
All icons licensed from Noun Project
no attribution required

More Related Content

PDF
7 sins of workflow
PDF
JUG Amsterdam - Orchestration of microservices
PDF
KanDDDinsky: Let your domain events flow
PDF
DDD Belgium Meetup 2017: Events, flows and long running services
PDF
JUG Frankfurt - Orchestration of microservices
PDF
A new era calls for new IT paradigms. What does this mean for BPM?
PDF
JAX 2017 talk: Orchestration of microservices
PDF
Jfokus 2018: Lost in transaction - Strategies to deal with (in-)consistency ...
7 sins of workflow
JUG Amsterdam - Orchestration of microservices
KanDDDinsky: Let your domain events flow
DDD Belgium Meetup 2017: Events, flows and long running services
JUG Frankfurt - Orchestration of microservices
A new era calls for new IT paradigms. What does this mean for BPM?
JAX 2017 talk: Orchestration of microservices
Jfokus 2018: Lost in transaction - Strategies to deal with (in-)consistency ...

What's hot (20)

PDF
MuCon London 2017: Break your event chains
PDF
Java User Group Erfurt 2018: Zeebe.io - Event-driven Microservice Orchestration
PDF
O'Reilly SA NYC 2018: Complex event flows in distributed systems
PDF
JFS 2017 - Orchestration of microservices
PDF
November 2017: Collaboration of (micro-)services
PDF
Java User Group Maas-Rhine February 2018: 7 sins of workflow
PDF
QCon London 2018: 3 common pitfalls in microservice integration and how to av...
PDF
JavaBin Trondheim and Bergen: Let your microservices flow
PDF
Long running processes in DDD
PDF
Microservices with Camunda - Talk from Camunda Days 01/2018
PDF
QCon 2019 - Opportunities and Pitfalls of Event-Driven Utopia
PDF
Workflow automation with BPMN. Lessons learned.
PDF
JFS 2021 - The Process Automation Map
PDF
3 common pitfalls in microservice integration
PDF
Webinar: Monitoring & Orchestrating Your Microservices Landscape using Workfl...
PDF
Monitoring and Orchestration of your Microservices Landscape with Kafka and Z...
PDF
The role of workflows in microservices
PDF
2019 DACH Roadshow - Workflow Automation in Microservices Architectures
PDF
Webinar "Communication Between Loosely Coupled Microservices"
PDF
Serverless Days 2019 - Lost in transaction
MuCon London 2017: Break your event chains
Java User Group Erfurt 2018: Zeebe.io - Event-driven Microservice Orchestration
O'Reilly SA NYC 2018: Complex event flows in distributed systems
JFS 2017 - Orchestration of microservices
November 2017: Collaboration of (micro-)services
Java User Group Maas-Rhine February 2018: 7 sins of workflow
QCon London 2018: 3 common pitfalls in microservice integration and how to av...
JavaBin Trondheim and Bergen: Let your microservices flow
Long running processes in DDD
Microservices with Camunda - Talk from Camunda Days 01/2018
QCon 2019 - Opportunities and Pitfalls of Event-Driven Utopia
Workflow automation with BPMN. Lessons learned.
JFS 2021 - The Process Automation Map
3 common pitfalls in microservice integration
Webinar: Monitoring & Orchestrating Your Microservices Landscape using Workfl...
Monitoring and Orchestration of your Microservices Landscape with Kafka and Z...
The role of workflows in microservices
2019 DACH Roadshow - Workflow Automation in Microservices Architectures
Webinar "Communication Between Loosely Coupled Microservices"
Serverless Days 2019 - Lost in transaction
Ad

Similar to BASTA! Orchestration of microservices (20)

PPTX
Orchestration of Microservices - Google dev fest 2017 Berlin
PPTX
Service Mesh CTO Forum (Draft 3)
PDF
Service Mesh Talk for CTO Forum
PDF
Think2018 2314-Microservices and BPM-can they coexist?
PPTX
Microservices and Best Practices
PDF
Master the flow of microservices - because your business is more complex than...
PPTX
A Cloud- and Container-Based Approach to Microservices-Powered Workflows (Cod...
PDF
Overcoming Ongoing Digital Transformational Challenges with a Microservices A...
PPTX
Camunda Day Amsterdam 2019: Workflow Automation in Microservices Architecture...
PDF
"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk
PDF
Migrating from a monolith to microservices – is it worth it?
PDF
Event-Driven Workflow: Monitoring and Orchestrating Your Microservices Landsc...
PPTX
Webinar : Microservices and Containerization
PDF
Microservices Architecture for e-Commerce
PDF
The Big Picture: Monitoring and Orchestration of Your Microservices Landscape...
PDF
Kafka Summit 2018: Monitoring and Orchestration of Your Microservices Landsca...
PDF
Microservices for java architects it-symposium-2015-09-15
PDF
Camunda Con Live 2020 Keynote - Microservice Orchestration and Integration
PDF
Microservices integration
PPTX
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
Orchestration of Microservices - Google dev fest 2017 Berlin
Service Mesh CTO Forum (Draft 3)
Service Mesh Talk for CTO Forum
Think2018 2314-Microservices and BPM-can they coexist?
Microservices and Best Practices
Master the flow of microservices - because your business is more complex than...
A Cloud- and Container-Based Approach to Microservices-Powered Workflows (Cod...
Overcoming Ongoing Digital Transformational Challenges with a Microservices A...
Camunda Day Amsterdam 2019: Workflow Automation in Microservices Architecture...
"Fintech inside of a SaaS powered by 2000+ Microservices", Volodymyr Malyk
Migrating from a monolith to microservices – is it worth it?
Event-Driven Workflow: Monitoring and Orchestrating Your Microservices Landsc...
Webinar : Microservices and Containerization
Microservices Architecture for e-Commerce
The Big Picture: Monitoring and Orchestration of Your Microservices Landscape...
Kafka Summit 2018: Monitoring and Orchestration of Your Microservices Landsca...
Microservices for java architects it-symposium-2015-09-15
Camunda Con Live 2020 Keynote - Microservice Orchestration and Integration
Microservices integration
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
Ad

More from Bernd Ruecker (20)

PDF
QCon London: Mastering long-running processes in modern architectures
PDF
WeAreDevelopers Live 2024 - Mastering long-running processes in modern archit...
PDF
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
PDF
JCon Live 2023 - Lice coding some integration problems
PDF
JFall - Process Oriented Integration
PDF
CamundaCon NYC 2023 Keynote - Shifting into overdrive with process orchestration
PDF
JavaLand 2023 - Process Oriented Integration
PDF
CraftConf: Surviving the hyperautomation low code bubbl
PDF
Mastering Data for Higher Business Impact - at Commerzbank Innovation Summit
PDF
Camunda Chapter Hamburg - Surviving the hyperautomation low code bubble
PDF
Loosely or lousily coupled - Understanding communication patterns in microser...
PDF
CamundaCon 2022 Keynote: The Process Orchestration Journey
PDF
JAX 2022 - Loosely or lousily coupled
PDF
JCon 2021 - Loosely or lousily coupled
PDF
CamundaCon 2021 Keynote :From Human Workflow to High-Throughput Process Autom...
PDF
Kafka Summit 2021 - Apache Kafka meets workflow engines
PDF
Process Automation Forum April 2021 - Practical Process Automation
PDF
Micronaut Webinar 2021 - Process Automation Introduction
PDF
Automating Processes in Modern Architectures
PDF
OOP 2021 - Leverage the full potential of your hipster architecture
QCon London: Mastering long-running processes in modern architectures
WeAreDevelopers Live 2024 - Mastering long-running processes in modern archit...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
JCon Live 2023 - Lice coding some integration problems
JFall - Process Oriented Integration
CamundaCon NYC 2023 Keynote - Shifting into overdrive with process orchestration
JavaLand 2023 - Process Oriented Integration
CraftConf: Surviving the hyperautomation low code bubbl
Mastering Data for Higher Business Impact - at Commerzbank Innovation Summit
Camunda Chapter Hamburg - Surviving the hyperautomation low code bubble
Loosely or lousily coupled - Understanding communication patterns in microser...
CamundaCon 2022 Keynote: The Process Orchestration Journey
JAX 2022 - Loosely or lousily coupled
JCon 2021 - Loosely or lousily coupled
CamundaCon 2021 Keynote :From Human Workflow to High-Throughput Process Autom...
Kafka Summit 2021 - Apache Kafka meets workflow engines
Process Automation Forum April 2021 - Practical Process Automation
Micronaut Webinar 2021 - Process Automation Introduction
Automating Processes in Modern Architectures
OOP 2021 - Leverage the full potential of your hipster architecture

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
August Patch Tuesday
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
A Presentation on Touch Screen Technology
PDF
Hybrid model detection and classification of lung cancer
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
Programs and apps: productivity, graphics, security and other tools
NewMind AI Weekly Chronicles - August'25-Week II
Heart disease approach using modified random forest and particle swarm optimi...
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
A comparative analysis of optical character recognition models for extracting...
Digital-Transformation-Roadmap-for-Companies.pptx
Assigned Numbers - 2025 - Bluetooth® Document
August Patch Tuesday
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
1 - Historical Antecedents, Social Consideration.pdf
Encapsulation theory and applications.pdf
A Presentation on Artificial Intelligence
Enhancing emotion recognition model for a student engagement use case through...
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Chapter 5: Probability Theory and Statistics
A Presentation on Touch Screen Technology
Hybrid model detection and classification of lung cancer
Web App vs Mobile App What Should You Build First.pdf
A comparative study of natural language inference in Swahili using monolingua...
Programs and apps: productivity, graphics, security and other tools

BASTA! Orchestration of microservices