SlideShare a Scribd company logo
Automating Processes
in Modern Architectures
@berndruecker
https://www.theguardian.com/technology/2018/apr/
24/amazon-jeff-bezos-customer-data-industries
Change is the only constant
„ We don‘t know what we will need tomorrow.
But we do know that we will need something.
We have to be able to move quickly!
CIO of a German insurance company in 2019
And you?
Credit Card
Handling
Payment
REST
Order
Fulfillment
REST
DB
PaymentId Amount Status
1 100 $ Collected
2 125 $ Open
Reporting of
overdue payments
{script}
Fixing open
payments
Scheduler to
process open
payments
Damn it – we
need a date!
…to be continued…
8
Using a workflow engine instead
Workflow Engine
Scheduler
Durable State
Glue Code Credit Card
Service
REST
Workflow Definition
Scope of your
solution, application
or microservice
Workflow Engine:
Is stateful
Can wait
Can retry
Can escalate
Can compensate
Provides visibility
Warning:
Contains Opinion
@berndruecker
mail@berndruecker.io
@berndruecker
http://berndruecker.io/
Bernd Ruecker
Co-founder and
Chief Technologist of
Camunda
Camunda
• Source-Available & Developer Friendly
• Supports BPMN
• Mature tooling, widely adopted
• On-prem or cloud
• http://camunda.com/
Live hacking
https://github.com/berndruecker/flowing-retail/blob/master/rest/java/payment-
camunda/src/main/java/io/flowing/retail/payment/resthacks/PaymentRestHacksControllerV3.java
Automating Processes in Modern Architectures
Service
A
Microservices
@berndruecker
Monolith
Service
B
Service
C
C
B
A
D
Service
A
Autonomous Microservices
@berndruecker
Service
B
Service
C
The era of APIs
API
API
API
API
API
API
API
API
@berndruecker
The era of APIs
API
API
API
API
API
API
API
External Services
Standard Software
API
Functions
@berndruecker
Connecting the dots…
API
API
API
API
API
API
API
Microservices
External Services
Standard Software
API
Functions
@berndruecker
Going hipster!
https://www.reactivemanifesto.org/
Example
Checkout
Payment
Inventory
Shipment
@berndruecker
Order
Placed
Payment
Received
Goods
Shipped
Notification
Event-driven & Reactive
@berndruecker
Checkout
Payment
Inventory
Shipment
But there is also trouble in the event-driven land!
Event chains that
implement processes
Implementing
long running behavior
Peer-to-peer event chains
Checkout
Payment
Inventory
Shipment
Order
placed
Payment
received
Goods
shipped
Goods
fetched
@berndruecker
Peer-to-peer event chains
Checkout
Payment
Inventory
Shipment
Order
placed
Payment
received
Goods
shipped
Goods
fetched
@berndruecker
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
@berndruecker
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
@berndruecker
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
@berndruecker
Phil Calcado at QCon NYC 2019
Notification
Checkout
Payment
Inventory
Shipment
Pinball Machine Architecture
„What the hell
just
happened?“
@berndruecker
Peer-to-peer event chains
Checkout
Payment
Inventory
Shipment
Order
placed
Payment
received
Goods
shipped
Goods
fetched
Fetch the goods
before the
payment
@berndruecker
Peer-to-peer event chains
Checkout
Payment
Inventory
Shipment
Fetch the goods
before the
payment
Goods
fetched
Order
placed
Payment
received
Goods
shipped
@berndruecker
What we wanted
Photo by Lijian Zhang, under Creative Commons SA 2.0 License and Wikimedia Commons / CC BY-SA 4.0
@berndruecker
Choreography
Why is it so tempting?
Service
A
Event Bus
A
B
Service
B
C
Service
C
D
E
F
Service
D
G
Service
…
Service
…
Service …
Service
…
Service …
Service …
Service
…
@berndruecker
Why is it so tempting?
Service
A
Event Bus
A
B
Service
B
C
Service
C
D
E
F
Service
D
G
Service
…
Service
…
Service …
Service
…
Service …
Service …
Service
…
Adding is easy!
You can „buy“ a shorter
initial time-to-value
by choreography.
It yields in technical debt.
@berndruecker
Order
Decide about responsibility
Checkout
Payment
Inventory
Shipment
Payment
received
Order
placed
Retrieve
payment
@berndruecker
Order
Decide about responsibility
Checkout
Payment
Inventory
Shipment
Payment
received
Order
placed
Retrieve
payment
@berndruecker
This is
choreography
This is
orchestration
Order
Decide about responsibility
Checkout
Payment
Inventory
Shipment
Order
placed
Retrieve
payment
It can still be messaging!
@berndruecker
Order
Checkout
Payment
Inventory
Shipment
Stateful orchestration
This orchestration
requires state
@berndruecker
Order
Checkout
Payment
Inventory
Shipment
@berndruecker
Glue code (e.g. Java)
https://github.com/berndruecker/flowing-
retail/blob/master/kafka/java/order-
zeebe/src/main/java/io/flowing/retail/kafka/or
der/flow/FetchGoodsAdapter.java
Now it is easy to change the process flow
@berndruecker
No BPM(N) monoliths
https://blog.bernd-ruecker.com/avoiding-the-bpm-monolith-when-using-bounded-contexts-d86be6308d8
@berndruecker
Order
Checkout
Payment
Inventory
Shipment
@berndruecker
The workflow is domain logic as part of the service
@berndruecker
Summary
• Use a workflow engine to automate long running processes
• Visibility is vital for business agility
• Event-driven choreography is not a magic cure
• Orchestration
• Helps to avoid chaos
• Can be handled within one service (decentral)
• Does not mean synchronous communication
62
Recap: Workflow engines orchestrate anything
Straight through processing
Human Task Management
Orchestrate …
Microservices RPA bots
Functions,
Code, …
Decisions
(e.g. DMN Tables)
63
Recap: The challenge are long running tasks = waiting
64
Recap: A workflow engine persists state
23
79
51
65
Recap: A workflow engine can be operated decentralized
66
Many use cases (real-life examples)
Industry Pilot Lighthouse Broadscale Sample Clients
Cross-Industry
Approvals
Employee Onboarding
Credit Check
Microservices Orchestration
Centralized Workflow Platform
High Throughput
E2E Process Automation
Legacy BPM Replacement
Cloud Native Applications
IT Service Orchestration
Banking & Finance Asset Management
Customer Onboarding
Loan Origination & Decisioning
ATM Provisioning
Enterprise Platform Development
Trading
Risk Management / Fraud Detection
Insurance Audit
Customer Onboarding
Claim Service & Settlement
Policy Underwriting & Contracts
Integrated KYC
Core System Automation
Risk Management / Fraud Detection
Telecommunication Online Systems Integration
New Product Delivery
Cell Tower Provisioning
Order Management
Contracting, Upgrading, Termination
OSS & BSS
Open Network Automation Platform
(ONAP)
Media & Entertainment
Website Content Delivery
System Process Fallout
Subscription Management
Licensing
Content Distribution
Digital Supply Chain
New Product Development
Fraud Management
Manufacturing &
High Tech
Application prototype
Order Execution
Payments Servicing
Research & Development
Embedded Workflow Automation
Customer Service
Supply Chain
Code, code, code…
@berndruecker
Get Started
https://docs.camunda.org/get-started/
Thank you!
@berndruecker
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

What's hot (20)

PDF
Kafka Summit 2021 - Apache Kafka meets workflow engines
Bernd Ruecker
 
PDF
Moving beyond request reply - designing smarter APIs
Bernd Ruecker
 
PDF
JCon 2021 - Loosely or lousily coupled
Bernd Ruecker
 
PDF
Apache Kafka Meets Workflow Engines | Bernd Ruecker, Camunda
HostedbyConfluent
 
PDF
QCon 2019 - Opportunities and Pitfalls of Event-Driven Utopia
Bernd Ruecker
 
PDF
Process Automation Forum April 2021 - Practical Process Automation
Bernd Ruecker
 
PDF
2019 - Lost in transaction
Bernd Ruecker
 
PDF
Kafka Summit 2020: If an event is published to a topic and no one is around t...
Bernd Ruecker
 
PDF
The role of workflows in microservices
Bernd Ruecker
 
PDF
OOP 2021 - Leverage the full potential of your hipster architecture
Bernd Ruecker
 
PDF
Complex event flows in distributed systems
Bernd Ruecker
 
PDF
Microservices with Camunda - Talk from Camunda Days 01/2018
Bernd Ruecker
 
PDF
Destination Automation: Automating Processes in Modern Hipster Architectures
Bernd Ruecker
 
PDF
Lost in transaction - Strategies to deal with (in)consistency in distributed ...
Bernd Ruecker
 
PDF
Digitalization and Workflow Automation - Camunda Process Automation Forum
Bernd Ruecker
 
PDF
Monitoring and Orchestration of your Microservices Landscape with Kafka and Z...
Bernd Ruecker
 
PDF
DDD Europe 2019: Lost in transaction
Bernd Ruecker
 
PDF
Camunda Meetup: Rethink Business Processes and User Experience to Leverage Th...
Bernd Ruecker
 
PDF
Serverless Days 2019 - Lost in transaction
Bernd Ruecker
 
PDF
Jfokus 2018: Lost in transaction - Strategies to deal with (in-)consistency ...
Bernd Ruecker
 
Kafka Summit 2021 - Apache Kafka meets workflow engines
Bernd Ruecker
 
Moving beyond request reply - designing smarter APIs
Bernd Ruecker
 
JCon 2021 - Loosely or lousily coupled
Bernd Ruecker
 
Apache Kafka Meets Workflow Engines | Bernd Ruecker, Camunda
HostedbyConfluent
 
QCon 2019 - Opportunities and Pitfalls of Event-Driven Utopia
Bernd Ruecker
 
Process Automation Forum April 2021 - Practical Process Automation
Bernd Ruecker
 
2019 - Lost in transaction
Bernd Ruecker
 
Kafka Summit 2020: If an event is published to a topic and no one is around t...
Bernd Ruecker
 
The role of workflows in microservices
Bernd Ruecker
 
OOP 2021 - Leverage the full potential of your hipster architecture
Bernd Ruecker
 
Complex event flows in distributed systems
Bernd Ruecker
 
Microservices with Camunda - Talk from Camunda Days 01/2018
Bernd Ruecker
 
Destination Automation: Automating Processes in Modern Hipster Architectures
Bernd Ruecker
 
Lost in transaction - Strategies to deal with (in)consistency in distributed ...
Bernd Ruecker
 
Digitalization and Workflow Automation - Camunda Process Automation Forum
Bernd Ruecker
 
Monitoring and Orchestration of your Microservices Landscape with Kafka and Z...
Bernd Ruecker
 
DDD Europe 2019: Lost in transaction
Bernd Ruecker
 
Camunda Meetup: Rethink Business Processes and User Experience to Leverage Th...
Bernd Ruecker
 
Serverless Days 2019 - Lost in transaction
Bernd Ruecker
 
Jfokus 2018: Lost in transaction - Strategies to deal with (in-)consistency ...
Bernd Ruecker
 

Similar to Automating Processes in Modern Architectures (20)

PDF
CamundaCon 2018: The Role of Workflows in Microservices (Camunda)
camunda services GmbH
 
PDF
Webinar: Monitoring & Orchestrating Your Microservices Landscape using Workfl...
camunda services GmbH
 
PDF
The Big Picture: Monitoring and Orchestration of Your Microservices Landscape...
confluent
 
PDF
Kafka Summit 2018: Monitoring and Orchestration of Your Microservices Landsca...
Bernd Ruecker
 
PDF
MuCon London 2017: Break your event chains
Bernd Ruecker
 
PDF
Communication between (micro-)services - Bernd Rücker - Codemotion Amsterdam ...
Codemotion
 
PDF
Camunda Day New York 2019: Workflow Automation in Microservices Architectures...
camunda services GmbH
 
PDF
Camunda Con Live 2020 Keynote - Microservice Orchestration and Integration
Bernd Ruecker
 
PDF
Master the flow of microservices - because your business is more complex than...
Bernd Ruecker
 
PDF
O'Reilly SA NYC 2018: Complex event flows in distributed systems
Bernd Ruecker
 
PDF
CamundaCon 2020 Keynote - The Return of Process Automation
Bernd Ruecker
 
PDF
Complex Event Flows in Distributed Systems (Bernd Ruecker, Camunda) Kafka Sum...
confluent
 
PDF
2019 DACH Roadshow - Workflow Automation in Microservices Architectures
Bernd Ruecker
 
PDF
CraftConf: Surviving the hyperautomation low code bubbl
Bernd Ruecker
 
PDF
Event-Driven Workflow: Monitoring and Orchestrating Your Microservices Landsc...
confluent
 
PDF
Goto meetup Stockholm - Let your microservices flow
Bernd Ruecker
 
PDF
JavaLand 2023 - Process Oriented Integration
Bernd Ruecker
 
PDF
DDD Belgium Meetup 2017: Events, flows and long running services
Bernd Ruecker
 
PDF
QCon NYC 2019 - Workflow automation reinvented
Bernd Ruecker
 
PDF
JCon Live 2023 - Lice coding some integration problems
Bernd Ruecker
 
CamundaCon 2018: The Role of Workflows in Microservices (Camunda)
camunda services GmbH
 
Webinar: Monitoring & Orchestrating Your Microservices Landscape using Workfl...
camunda services GmbH
 
The Big Picture: Monitoring and Orchestration of Your Microservices Landscape...
confluent
 
Kafka Summit 2018: Monitoring and Orchestration of Your Microservices Landsca...
Bernd Ruecker
 
MuCon London 2017: Break your event chains
Bernd Ruecker
 
Communication between (micro-)services - Bernd Rücker - Codemotion Amsterdam ...
Codemotion
 
Camunda Day New York 2019: Workflow Automation in Microservices Architectures...
camunda services GmbH
 
Camunda Con Live 2020 Keynote - Microservice Orchestration and Integration
Bernd Ruecker
 
Master the flow of microservices - because your business is more complex than...
Bernd Ruecker
 
O'Reilly SA NYC 2018: Complex event flows in distributed systems
Bernd Ruecker
 
CamundaCon 2020 Keynote - The Return of Process Automation
Bernd Ruecker
 
Complex Event Flows in Distributed Systems (Bernd Ruecker, Camunda) Kafka Sum...
confluent
 
2019 DACH Roadshow - Workflow Automation in Microservices Architectures
Bernd Ruecker
 
CraftConf: Surviving the hyperautomation low code bubbl
Bernd Ruecker
 
Event-Driven Workflow: Monitoring and Orchestrating Your Microservices Landsc...
confluent
 
Goto meetup Stockholm - Let your microservices flow
Bernd Ruecker
 
JavaLand 2023 - Process Oriented Integration
Bernd Ruecker
 
DDD Belgium Meetup 2017: Events, flows and long running services
Bernd Ruecker
 
QCon NYC 2019 - Workflow automation reinvented
Bernd Ruecker
 
JCon Live 2023 - Lice coding some integration problems
Bernd Ruecker
 
Ad

More from Bernd Ruecker (14)

PDF
QCon London: Mastering long-running processes in modern architectures
Bernd Ruecker
 
PDF
WeAreDevelopers Live 2024 - Mastering long-running processes in modern archit...
Bernd Ruecker
 
PDF
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker
 
PDF
JFall - Process Oriented Integration
Bernd Ruecker
 
PDF
CamundaCon NYC 2023 Keynote - Shifting into overdrive with process orchestration
Bernd Ruecker
 
PDF
Mastering Data for Higher Business Impact - at Commerzbank Innovation Summit
Bernd Ruecker
 
PDF
Camunda Chapter Hamburg - Surviving the hyperautomation low code bubble
Bernd Ruecker
 
PDF
Loosely or lousily coupled - Understanding communication patterns in microser...
Bernd Ruecker
 
PDF
CamundaCon 2022 Keynote: The Process Orchestration Journey
Bernd Ruecker
 
PDF
JAX 2022 - Loosely or lousily coupled
Bernd Ruecker
 
PDF
JFS 2021 - The Process Automation Map
Bernd Ruecker
 
PDF
CamundaCon 2021 Keynote :From Human Workflow to High-Throughput Process Autom...
Bernd Ruecker
 
PDF
Micronaut Webinar 2021 - Process Automation Introduction
Bernd Ruecker
 
PDF
Webinar "Communication Between Loosely Coupled Microservices"
Bernd Ruecker
 
QCon London: Mastering long-running processes in modern architectures
Bernd Ruecker
 
WeAreDevelopers Live 2024 - Mastering long-running processes in modern archit...
Bernd Ruecker
 
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker
 
JFall - Process Oriented Integration
Bernd Ruecker
 
CamundaCon NYC 2023 Keynote - Shifting into overdrive with process orchestration
Bernd Ruecker
 
Mastering Data for Higher Business Impact - at Commerzbank Innovation Summit
Bernd Ruecker
 
Camunda Chapter Hamburg - Surviving the hyperautomation low code bubble
Bernd Ruecker
 
Loosely or lousily coupled - Understanding communication patterns in microser...
Bernd Ruecker
 
CamundaCon 2022 Keynote: The Process Orchestration Journey
Bernd Ruecker
 
JAX 2022 - Loosely or lousily coupled
Bernd Ruecker
 
JFS 2021 - The Process Automation Map
Bernd Ruecker
 
CamundaCon 2021 Keynote :From Human Workflow to High-Throughput Process Autom...
Bernd Ruecker
 
Micronaut Webinar 2021 - Process Automation Introduction
Bernd Ruecker
 
Webinar "Communication Between Loosely Coupled Microservices"
Bernd Ruecker
 
Ad

Recently uploaded (20)

PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Upgrading to z_OS V2R4 Part 01 of 02.pdf
Flavio787771
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PPTX
Top Managed Service Providers in Los Angeles
Captain IT
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Upgrading to z_OS V2R4 Part 01 of 02.pdf
Flavio787771
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Français Patch Tuesday - Juillet
Ivanti
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Top Managed Service Providers in Los Angeles
Captain IT
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 

Automating Processes in Modern Architectures