SlideShare a Scribd company logo
@berndruecker
The Role of Workflows
in Microservices
Microservices…
Service
B
Some
Service
Some
Service Some
Service
Service
C
Service
A
Service
D
Monolith
Functionality
A
Functionality
B
Functionality
C
Functionality
D
Some
Service
Some
Service
Some
Service
Some
Service
Some
Service
Some
Service
Some
Service
Microservices…
Data, data, data, …
Source: Microservices orchestration survey,
July 2018, 354 responses
92 %
Why?
Photo by born1945, available under Creative Commons BY 2.0 license.
How to get something out of it?
Photo by pxhere, available under Creative Commons CC0 1.0 License.
The role of workflows in microservices
Sample architecture: De-coupled services with event backbone
Checkout Inventory
Payment Shipment
e.g. Kafka, …
Sample
Checkout
Payment
Inventory
Shipment
Order
Placed
Payment
Received
Goods
Fetched
Peer-to-peer communication
Checkout
Payment
Inventory
Shipment
The danger is that it's very easy to make
nicely decoupled systems with event
notification, without realizing that you're
losing sight of that larger-scale flow, and
thus set yourself up for trouble in future
years.
https://martinfowler.com/articles/201701-event-driven.html
The danger is that it's very easy to make
nicely decoupled systems with event
notification, without realizing that you're
losing sight of that larger-scale flow, and
thus set yourself up for trouble in future
years.
https://martinfowler.com/articles/201701-event-driven.html
The danger is that it's very easy to make
nicely decoupled systems with event
notification, without realizing that you're
losing sight of that larger-scale flow, and
thus set yourself up for trouble in future
years.
https://martinfowler.com/articles/201701-event-driven.html
Challenges?
What we wanted
Photo by Lijian Zhang, available under Creative Commons SA 2.0 License and Pedobear19 / CC BY-SA 4.0
Microservice pioneers
have become aware
Workflow automation | orchestration
is an essential building block
in microservice architectures
Of course I am opinioated – but I truly believe this!
Workflow automation | orchestration
is an essential building block
in microservice architectures
Of course I am opinioated – but I truly believe this!
Orchestration is not a central thing!
„It is not BPEL“
Finding the right balance
22
Observe Microservice Paradigms
● Loose Coupling
● Autonomy
● Event Collaboration
Ensure Flow Manageability
• End-To-End Visibility
• Meet Business Process SLA
• Support Continuous Process
Improvement
Different levels of leveraging workflow automation
Manage
the flow
Track
the flow
Non-invasive to event-driven-architecture
Additionally to choreography
Limited in power
Needs to be incorporated
Mixture of choreography and orchestration
Leverage full potential
Tracking
Checkout Inventory
Payment Shipment
Kafka
Workflow
Engine
Tracking + BI
Checkout Inventory
Payment Shipment
Kafka
Workflow
Engine
Camunda
Optimize
Other reporting
/ BI solutions
Tracking + BI
Checkout Inventory
Payment Shipment
Kafka
Workflow
Engine
Camunda
Optimize
Other reporting
/ BIO solutions
Tracking + BI
Checkout Inventory
Payment Shipment
Kafka
Workflow
Engine
Camunda
Optimize
Other reporting
/ BI solutions
This is totally non-invasive
But also limited in power
Start acting upon certain events
Why so shy?
Photo by LuidmilaKot, available under Creative Commons CC0 1.0 License.
Changing the flow
Checkout
Payment
Inventory
Shipment
Fetch the goods
before the
payment
Changing the flow
Checkout
Payment
Inventory
Shipment
Fetch the goods
before the
payment
Photo by born1945, available under Creative Commons BY 2.0 license.
Order
Checkout
Payment
Inventory
Shipment
Important responsibilities need a home
Order
Checkout
Payment
Inventory
Shipment
Distributed systems
Distributed systems
Distributed systems
Order
Checkout
Payment
Inventory
Shipment
Stateful orchestration
This orchestration
requires state
BPMN supports integration use cases
Aggregator
Re-Sequencer
Combined with timeouts:
Zeebe supports Message TTL
BPMN supports integration use cases
Compensation
Order
Checkout
Payment
Inventory
Shipment
Every service owns its workflow!
Central workflow engine or …
Checkout Inventory
Payment Shipment
Workflow
Engine
Order
Owned heredeployed here
Owned here
…decentral workflow engine
Checkout Inventory
Payment Shipment
Workflow
Engine
OrderWorkflow
Engine
Same architecture with REST
Checkout Inventory
Payment Shipment
Workflow
Engine
Order
Workflow
Engine
Challenge Monitoring
Checkout Inventory
Payment Shipment
Workflow
Engine
Order
Workflow
Engine
Monitor
e.g.
Elastic
Links back
Optimize
Same architecture with REST
Checkout Inventory
Payment Shipment
Workflow
Engine
Order
Workflow
Engine
Work distribution via workflow engine
Checkout Inventory
Payment Shipment Order
Workflow Engine
Start Workflow
Owns workflow
definition
External Task Worker
Hybrid architectures
Order
Credit
Card
Customer
Credit
Payment
Pub/Sub
e.g. Message Bus
Pub/Sub
Work Distribution
e.g. External Task
Request/Response
e.g. REST
Recap
• Microservices have its merits
• You need to balance orchestration and chorography
• Distributed systems need stateful orchestration
• Visibility is essential to survive
• Track, monitor or manage the flow – depending on your scenario
• Workflow automation is an essential building block,
make sure to use BPMN
1
4
5
Continuous Process Improvement
Technical Workflow Implementation
Operating mission-critical Processes
Broad-scale Adoption of Automation
Automated Enterprise
Adoption Journey
Value
Time / Invest
1
2
3
4
5
2
3
Microservices
Certified
Microservices
Certified
Love to see code?
Thank you!
bernd.ruecker@camunda.com
@berndruecker
https://berndruecker.io
https://medium.com/berndruecker
https://github.com/berndruecker
https://www.infoq.com/articles/events-
workflow-automation
Contact:
Slides:
Blog:
Code:
https://www.infoworld.com/article/3254777/
application-development/
3-common-pitfalls-of-microservices-
integrationand-how-to-avoid-them.html
https://thenewstack.io/5-workflow-automation-
use-cases-you-might-not-have-considered/

More Related Content

PDF
DDoS Threats Landscape : Countering Large-scale DDoS attacks
PPTX
cloud-migrations.pptx
PDF
The Service Mesh: It's about Traffic
PDF
OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niede...
PPTX
StreamSet ETL tool
PDF
Efficient platform engineering with Microk8s & gopaddle.pdf
PDF
Roles and Responsibilities of a DevOps Engineer
PDF
Kubernetes Security with Calico and Open Policy Agent
DDoS Threats Landscape : Countering Large-scale DDoS attacks
cloud-migrations.pptx
The Service Mesh: It's about Traffic
OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niede...
StreamSet ETL tool
Efficient platform engineering with Microk8s & gopaddle.pdf
Roles and Responsibilities of a DevOps Engineer
Kubernetes Security with Calico and Open Policy Agent

What's hot (20)

PDF
Docker 101
PPTX
2024 Ivanti October Patch Tuesday Webinar
PPTX
Building a geospatial processing pipeline using Hadoop and HBase and how Mons...
PPTX
Docker para integradores Asterisk
PDF
[July/2015] Android Wi-Fi Direct/Display Overview and Performance Measurement...
PDF
Domain Driven Data: Apache Kafka® and the Data Mesh
ODP
Devops Devops Devops
PPTX
Software Defined Networks
PDF
LoRa I/Oコントローラー LTシリーズ 日本語マニュアル
PPT
Cloud Migration: Moving to the Cloud
PDF
Jira & Ansible: Streamlining Jira Server Administration for the Enterprise
PDF
Understanding and Preventing Layer 2 Attacks
PPTX
Oracle ebs db platform migration
PDF
The Business Event Bus
PDF
GOTOpia 2020 - Balancing Choreography and Orchestration
PDF
Amazon API Gateway
PPTX
Terraform Basics
PDF
Neo4j: The path to success with Graph Database and Graph Data Science
PPTX
Microsoft azure
PDF
Deploy 22 microservices from scratch in 30 mins with GitOps
Docker 101
2024 Ivanti October Patch Tuesday Webinar
Building a geospatial processing pipeline using Hadoop and HBase and how Mons...
Docker para integradores Asterisk
[July/2015] Android Wi-Fi Direct/Display Overview and Performance Measurement...
Domain Driven Data: Apache Kafka® and the Data Mesh
Devops Devops Devops
Software Defined Networks
LoRa I/Oコントローラー LTシリーズ 日本語マニュアル
Cloud Migration: Moving to the Cloud
Jira & Ansible: Streamlining Jira Server Administration for the Enterprise
Understanding and Preventing Layer 2 Attacks
Oracle ebs db platform migration
The Business Event Bus
GOTOpia 2020 - Balancing Choreography and Orchestration
Amazon API Gateway
Terraform Basics
Neo4j: The path to success with Graph Database and Graph Data Science
Microsoft azure
Deploy 22 microservices from scratch in 30 mins with GitOps
Ad

Similar to The role of workflows in microservices (20)

PDF
Kafka Summit 2018: Monitoring and Orchestration of Your Microservices Landsca...
PDF
The Big Picture: Monitoring and Orchestration of Your Microservices Landscape...
PDF
2019 DACH Roadshow - Workflow Automation in Microservices Architectures
PDF
Automating Processes in Modern Architectures
PPTX
Camunda Day Amsterdam 2019: Workflow Automation in Microservices Architecture...
PDF
Camunda Con Live 2020 Keynote - Microservice Orchestration and Integration
PDF
Event-Driven Workflow: Monitoring and Orchestrating Your Microservices Landsc...
PDF
Camunda Day New York 2019: Workflow Automation in Microservices Architectures...
PDF
Master the flow of microservices - because your business is more complex than...
PDF
Webinar: Monitoring & Orchestrating Your Microservices Landscape using Workfl...
PDF
JFS 2017 - Orchestration of microservices
PDF
Communication between (micro-)services - Bernd Rücker - Codemotion Amsterdam ...
PDF
MuCon London 2017: Break your event chains
PDF
Complex event flows in distributed systems
PDF
Complex event flows in distributed systems (QCon London 2019)
PDF
Goto meetup Stockholm - Let your microservices flow
PDF
Complex Event Flows in Distributed Systems (Bernd Ruecker, Camunda) Kafka Sum...
PDF
O'Reilly SA NYC 2018: Complex event flows in distributed systems
PPTX
A Cloud- and Container-Based Approach to Microservices-Powered Workflows (Cod...
PDF
JUG Frankfurt - Orchestration of microservices
Kafka Summit 2018: Monitoring and Orchestration of Your Microservices Landsca...
The Big Picture: Monitoring and Orchestration of Your Microservices Landscape...
2019 DACH Roadshow - Workflow Automation in Microservices Architectures
Automating Processes in Modern Architectures
Camunda Day Amsterdam 2019: Workflow Automation in Microservices Architecture...
Camunda Con Live 2020 Keynote - Microservice Orchestration and Integration
Event-Driven Workflow: Monitoring and Orchestrating Your Microservices Landsc...
Camunda Day New York 2019: Workflow Automation in Microservices Architectures...
Master the flow of microservices - because your business is more complex than...
Webinar: Monitoring & Orchestrating Your Microservices Landscape using Workfl...
JFS 2017 - Orchestration of microservices
Communication between (micro-)services - Bernd Rücker - Codemotion Amsterdam ...
MuCon London 2017: Break your event chains
Complex event flows in distributed systems
Complex event flows in distributed systems (QCon London 2019)
Goto meetup Stockholm - Let your microservices flow
Complex Event Flows in Distributed Systems (Bernd Ruecker, Camunda) Kafka Sum...
O'Reilly SA NYC 2018: Complex event flows in distributed systems
A Cloud- and Container-Based Approach to Microservices-Powered Workflows (Cod...
JUG Frankfurt - Orchestration of microservices
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
JFS 2021 - The Process Automation Map
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
Webinar "Communication Between Loosely Coupled Microservices"
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
JFS 2021 - The Process Automation Map
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
Webinar "Communication Between Loosely Coupled Microservices"

Recently uploaded (20)

PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation theory and applications.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
A Presentation on Artificial Intelligence
PDF
Approach and Philosophy of On baking technology
PDF
KodekX | Application Modernization Development
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation_ Review paper, used for researhc scholars
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
Cloud computing and distributed systems.
Chapter 3 Spatial Domain Image Processing.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Understanding_Digital_Forensics_Presentation.pptx
Modernizing your data center with Dell and AMD
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation theory and applications.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25 Week I
A Presentation on Artificial Intelligence
Approach and Philosophy of On baking technology
KodekX | Application Modernization Development
20250228 LYD VKU AI Blended-Learning.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation_ Review paper, used for researhc scholars

The role of workflows in microservices