SlideShare a Scribd company logo
@berndruecker
Workflow Automation in
Microservice Architectures
What? Why?
Microservices & Workflow Automation
How?
t
What? Why?
Microservices & Workflow Automation
How?
t
Microservices…
Service
B
Some
Service
Some
Service Some
Service
Service
C
Service
A
Service
D
Monolith
Functionality
A
Functionality
B
Functionality
C
Functionality
D
Photo by born1945, available under Creative Commons BY 2.0 license.
What we wanted
Photo by Lijian Zhang, available under Creative Commons SA 2.0 License and Pedobear19 / CC BY-SA 4.0
https://blog.bernd-ruecker.com/the-microservice-workflow-automation-cheat-sheet-fc0a80dc25aa
Example: http://github.com/berndruecker/flowing-retail
Checkout
Payment
Inventory
Shipment
?
Order
Checkout
Payment
Inventory
Shipment
An „orchestration process“?
Every workflow must be
owned by one microservice.
No exceptions!
Order
Checkout
Payment
Inventory
Shipment
Otherwise you end up with SOA again!
Checkout
Payment
Inventory
Shipment
Order
No BPM(N) monoliths
https://blog.bernd-ruecker.com/avoiding-the-bpm-monolith-when-using-bounded-contexts-d86be6308d8
Workflows live inside service boundaries
Order
Placed
Payment
Received
Goods
Fetched
Notification
Order
Checkout
Payment
Inventory
Shipment
Event-driven architecture
Peer-to-peer event chains
Checkout
Payment
Inventory
Shipment
Order
placed
Payment
received
Goods
shipped
Goods
fetched
Peer-to-peer event chains
Checkout
Payment
Inventory
Shipment
Order
placed
Payment
received
Goods
shipped
Goods
fetched
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
Finding the right balance
31
Observe Microservice Paradigms
● Loose Coupling
● Autonomy
● Event Collaboration
Ensure Flow Manageability
• End-To-End Visibility
• Meet Business Process SLA
• Support Continuous Process
Improvement
Tracking
Checkout Inventory
Payment Shipment
Event Bus
Workflow
Engine
https://www.confluent.io/kafka-summit-sf18/the_big_picture
Tracking + BI
Checkout Inventory
Payment Shipment
Event Bus
Workflow
Engine
Camunda
Optimize
Other reporting
/ BIO solutions
But you can start acting upon certain events
Order
Checkout
Payment
Inventory
Shipment
Orchestration
Orchestration makes it easy to change the flow
Peer-to-peer event chains
Checkout
Payment
Inventory
Shipment
Order
placed
Payment
received
Goods
shipped
Goods
fetched
Fetch the goods
before the
payment
Peer-to-peer event chains
Checkout
Payment
Inventory
Shipment
Fetch the goods
before the
payment
Goods
fetched
Order
placed
Payment
received
Goods
shipped
Order
Commands vs. Events
Checkout
Payment
Inventory
Shipment
Order
placed
Retrieve
payment
Order
It is about where to decide about the coupling!
Checkout
Payment
Inventory
Shipment
Order
placed
Retrieve
payment
Order decides
. to listen to the event
. to issue the command
Microservices =
Distributed systems
Order
Checkout
Payment
Inventory
Shipment
Stateful orchestration
This orchestration
requires state
Order
Checkout
Payment
Inventory
Shipment
Orchestration
Orchestration is independant of
communication channel!
This might be REST, Messaging,
Event-Bus, …
Workflow Engine
Typical ways of communication
Checkout
Payment
Order
Shipment Checkout
Payment
Order
Shipment
Checkout
PaymentOrder
Shipment
Message/Event Bus REST-ish
Workflow Engine
Typical ways of communication
Checkout
Payment
Order
Shipment Checkout
Payment
Order
Shipment
Checkout
PaymentOrder
Shipment
Message/Event Bus REST-ish
Pub/SubOwnership
Checkout
Payment
Order
Shipment
Workflow
Engine
Workflow
Engine
Monitoring
Checkout
Payment
Order
Shipment
Workflow
Engine
Monitoring
How many workflow engines?
Monitoring
Checkout Inventory
Payment Shipment
Workflow
Engine
Order
Workflow
Engine
Monitor
e.g.
Elastic
Links back
Optimize
Example
https://github.com/berndruecker/flowing-retail/tree/master/kafka/java/monitor
Recap
• Microservices have its merits
• You need to balance orchestration and chorography
• Track, monitor or manage the flow – depending on your scenario
• Distributed systems need stateful orchestration
• Visibility is essential to survive
• Workflow automation is an essential building block,
make sure to use BPMN
Microservices & Workflow Automation
http://berndruecker.io/
Thank you!
mail@berndruecker.io
@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
Workflow automation with BPMN. Lessons learned.
PDF
3 common pitfalls in microservice integration
PDF
The role of workflows in microservices
PPTX
Camunda Day Amsterdam 2019: Workflow Automation in Microservices Architecture...
PDF
JAX 2019 - Workflow automation reinvented
PDF
Camunda Con 2019 Keynote - I want my process back #microservices #serverless
PDF
CamundaCon 2018: The Role of Workflows in Microservices (Camunda)
PDF
Camunda Day New York 2019: Workflow Automation in Microservices Architectures...
Workflow automation with BPMN. Lessons learned.
3 common pitfalls in microservice integration
The role of workflows in microservices
Camunda Day Amsterdam 2019: Workflow Automation in Microservices Architecture...
JAX 2019 - Workflow automation reinvented
Camunda Con 2019 Keynote - I want my process back #microservices #serverless
CamundaCon 2018: The Role of Workflows in Microservices (Camunda)
Camunda Day New York 2019: Workflow Automation in Microservices Architectures...

What's hot (20)

PDF
Serverless Days 2019 - Lost in transaction
PDF
Destination Automation: Automating Processes in Modern Hipster Architectures
PDF
Webinar "Communication Between Loosely Coupled Microservices"
PDF
Camunda Con Live 2020 Keynote - Microservice Orchestration and Integration
PDF
2019 - Lost in transaction
PDF
QCon NYC 2019 - Workflow automation reinvented
PDF
Webinar: Monitoring & Orchestrating Your Microservices Landscape using Workfl...
PDF
Process Automation Forum April 2021 - Practical Process Automation
PDF
Microservices with Camunda - Talk from Camunda Days 01/2018
PDF
Kafka Summit 2018: Monitoring and Orchestration of Your Microservices Landsca...
PDF
JFS 2021 - The Process Automation Map
PDF
QCon 2019 - Opportunities and Pitfalls of Event-Driven Utopia
PDF
Long running processes in DDD
PDF
Camunda Meetup: Rethink Business Processes and User Experience to Leverage Th...
PPTX
Process Monitoring Beta Program
PDF
DDD Europe 2019: Lost in transaction
PDF
JFS 2017 - Orchestration of microservices
PDF
Monitoring and Orchestration of your Microservices Landscape with Kafka and Z...
PDF
JAX 2017 talk: Orchestration of microservices
PDF
Jfokus 2018: Lost in transaction - Strategies to deal with (in-)consistency ...
Serverless Days 2019 - Lost in transaction
Destination Automation: Automating Processes in Modern Hipster Architectures
Webinar "Communication Between Loosely Coupled Microservices"
Camunda Con Live 2020 Keynote - Microservice Orchestration and Integration
2019 - Lost in transaction
QCon NYC 2019 - Workflow automation reinvented
Webinar: Monitoring & Orchestrating Your Microservices Landscape using Workfl...
Process Automation Forum April 2021 - Practical Process Automation
Microservices with Camunda - Talk from Camunda Days 01/2018
Kafka Summit 2018: Monitoring and Orchestration of Your Microservices Landsca...
JFS 2021 - The Process Automation Map
QCon 2019 - Opportunities and Pitfalls of Event-Driven Utopia
Long running processes in DDD
Camunda Meetup: Rethink Business Processes and User Experience to Leverage Th...
Process Monitoring Beta Program
DDD Europe 2019: Lost in transaction
JFS 2017 - Orchestration of microservices
Monitoring and Orchestration of your Microservices Landscape with Kafka and Z...
JAX 2017 talk: Orchestration of microservices
Jfokus 2018: Lost in transaction - Strategies to deal with (in-)consistency ...
Ad

Similar to 2019 DACH Roadshow - Workflow Automation in Microservices Architectures (20)

PDF
The Big Picture: Monitoring and Orchestration of Your Microservices Landscape...
PDF
Master the flow of microservices - because your business is more complex than...
PDF
JUG Frankfurt - Orchestration of microservices
PDF
Event-Driven Workflow: Monitoring and Orchestrating Your Microservices Landsc...
PDF
Automating Processes in Modern Architectures
PDF
JCon 2017: Let your microservices flow
PDF
JUG Amsterdam - Orchestration of microservices
PDF
Goto meetup Stockholm - Let your microservices flow
PDF
MuCon London 2017: Break your event chains
PDF
Communication between (micro-)services - Bernd Rücker - Codemotion Amsterdam ...
PDF
Monitoring and Orchestration of your Microservices Landscape with Kafka and Z...
PDF
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
PDF
Complex Event Flows in Distributed Systems (Bernd Ruecker, Camunda) Kafka Sum...
PPTX
A Cloud- and Container-Based Approach to Microservices-Powered Workflows (Cod...
PDF
Complex event flows in distributed systems (QCon London 2019)
PDF
Complex event flows in distributed systems
PPTX
Roadshow 2018 - Microservices mit Camunda
PPTX
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
PDF
JavaBin Trondheim and Bergen: Let your microservices flow
PDF
Service Mesh Talk for CTO Forum
The Big Picture: Monitoring and Orchestration of Your Microservices Landscape...
Master the flow of microservices - because your business is more complex than...
JUG Frankfurt - Orchestration of microservices
Event-Driven Workflow: Monitoring and Orchestrating Your Microservices Landsc...
Automating Processes in Modern Architectures
JCon 2017: Let your microservices flow
JUG Amsterdam - Orchestration of microservices
Goto meetup Stockholm - Let your microservices flow
MuCon London 2017: Break your event chains
Communication between (micro-)services - Bernd Rücker - Codemotion Amsterdam ...
Monitoring and Orchestration of your Microservices Landscape with Kafka and Z...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Complex Event Flows in Distributed Systems (Bernd Ruecker, Camunda) Kafka Sum...
A Cloud- and Container-Based Approach to Microservices-Powered Workflows (Cod...
Complex event flows in distributed systems (QCon London 2019)
Complex event flows in distributed systems
Roadshow 2018 - Microservices mit Camunda
Event Bus as Backbone for Decoupled Microservice Choreography (JFall 2017)
JavaBin Trondheim and Bergen: Let your microservices flow
Service Mesh Talk for CTO Forum
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
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
Micronaut Webinar 2021 - Process Automation Introduction
PDF
OOP 2021 - Leverage the full potential of your hipster architecture
PDF
GOTOpia 2020 - Balancing Choreography and Orchestration
PDF
Reactive Summit 2020 - How state helps you to stay reactive
PDF
CamundaCon 2020 Keynote - The Return of Process Automation
QCon London: Mastering long-running processes in modern architectures
WeAreDevelopers Live 2024 - Mastering long-running processes in modern archit...
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
Micronaut Webinar 2021 - Process Automation Introduction
OOP 2021 - Leverage the full potential of your hipster architecture
GOTOpia 2020 - Balancing Choreography and Orchestration
Reactive Summit 2020 - How state helps you to stay reactive
CamundaCon 2020 Keynote - The Return of Process Automation

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Cloud computing and distributed systems.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation theory and applications.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
Electronic commerce courselecture one. Pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction
Cloud computing and distributed systems.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation theory and applications.pdf
sap open course for s4hana steps from ECC to s4
Dropbox Q2 2025 Financial Results & Investor Presentation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Empathic Computing: Creating Shared Understanding
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation_ Review paper, used for researhc scholars
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Programs and apps: productivity, graphics, security and other tools

2019 DACH Roadshow - Workflow Automation in Microservices Architectures