SlideShare a Scribd company logo
Containerizing MuleSoft
applications for Hybrid
deployment
Moscow MuleSoft Meetup Group
October 12 2021
2
Introductions
A SHOW OF HANDS:
Who is new to this Meetup?
Artem Fomenko
Leadex Systems Technical Lead
● Our personal experience of using Docker Swarm with
MuleSoft Standalone Runtime
● Technical demonstration of the deployment approach
● Summing-up our experience and further plans on the
proposed solution
● Q&A session
● Trivia game
Agenda
MuleSoft Customer-managed Deployment Options
Hybrid Deployments
https://docs.mulesoft.com/runtime-manager/deployment-strategies
Anypoint Runtime Fabric Deployments
● Isolation – each application is run independently from the others
and and doesn’t affect them in terms of shared platform resources.
● Immutability – applications are baked into Docker images along
with Mule Runtime.
● Self-healing – whenever a node gets crashed, all the deployed
applications within that node are automatically moved to healthy
nodes.
● Zero-downtime rolling updates – a Mule application can be
automatically updated without any service downtime.
● Secrets – secret values are securely stored and injected into
containers at runtime.
Virtues of MuleSoft containerization
MuleSoft Applications within Docker Swarm
● cAdvisor – collects
container-specific metrics directly
from Docker.
● node-exporter – Prometheus
exporter for hardware and OS
metrics exposed by *NIX kernels.
● dockerd-exporter – Docker
daemon metrics collector.
● Prometheus – metrics database.
● Alertmanager – alerts dispatcher
for Prometheus.
● Unsee – Alertmanager dashboard
tool.
● Grafana – web application for
metrics interactive visualization.
● Caddy – reverse proxy and basic
auth provider.
Docker Swarm Cluster Monitoring
All credits to Stefan Prodan’s swarmprom
Organizing CI/CD Pipeline
● All application logs must be redirected to STDOUT and sent
to a log aggregation tool
● OS signals, such as SIGINT and SIGTERM, must be properly
redirected to the Mule Runtime process.
● Memory footprint of Mule runtime must be optimized to
run one application in accordance with the container’s
resource limits.
● Exposing JMX beans can be helpful to monitor Mule
runtime and tune up logging levels.
● Image labels are important to keep useful information
about the Docker image of a container.
Baking a Proper MuleSoft container
● environment configuration is to be externalized into a separate
repository;
● logging events must contain a unique identifier to correlate
them across different services;
● only inter-process communication protocols are to be used
(VM queues are forbidden!);
● health check endpoint is to be provided.
Developing a Proper MuleSoft application
For distributed systems, such as microservices, it is important
not to just properly break down an application into decoupled
and cohesive services, but also put in place additional
mechanisms to handle cross-cutting concerns:
● We will be using an accelerator
provide by MuleSoft as an
application example
● We will be running a one-node
local Docker Swarm cluster to
show how Docker images and
built and Swarm services
deployed
● All applications are to be
registered in Runtime Manager
Technical Live Demonstration
https://anypoint.mulesoft.com/exchange/org.mule.examples/mule
soft-accelerator-for-financial-services/
● Anypoint Runtime Fabric seems like a better choice when it
comes to on-premises microservice-like deployments.
● Getting along Docker Swarm and Anypoint Platform requires
a lot of low-level plumbing.
● It needs to be extra careful about setting up resource limits to
prevent resource starvation for high-throughput services.
● It is always possible to switch to another orchestrator or even
RTF without major changes of applications.
● Docker Swarm is a decent choice when you need to quickly
adopt a microservice approach.
Summing-up
● GitHub repository with the demo application
● Official Mule Runtime in Docker FAQ
● Official Docker Swarm Documentation
● Mule Runtime containerization (article)
● Unofficial Mule Runtime images
● HAProxy on Docker Swarm (official article)
Useful Links and Articles
Thanks for your
attention!
Q&A
Trivia game

More Related Content

PPTX
Dot net platform and dotnet core fundamentals
PDF
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
PDF
Creando microservicios con Java MicroProfile y TomEE - OGBT
ODP
Openshift Container Platform
PPTX
223: Modernization and Migrating from the ESB to Containers
ODP
OpenShift Enterprise
PPTX
OpenStack Architecture and Use Cases
PPTX
What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain.
Dot net platform and dotnet core fundamentals
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Creando microservicios con Java MicroProfile y TomEE - OGBT
Openshift Container Platform
223: Modernization and Migrating from the ESB to Containers
OpenShift Enterprise
OpenStack Architecture and Use Cases
What’s Mule 4.3? How Does Anytime RTF Help? Our insights explain.

What's hot (20)

PDF
Cloud Native Applications on OpenShift
PPTX
Microservices on Anypoint Platform
PDF
A lifecycle for microservices
PDF
Containerising the Mule Runtime with Kubernetes & From Zero to Batch : MuleS...
PDF
Improve monitoring and observability for kubernetes with oss tools
PPTX
MuleSoft Deployment Strategies (RTF vs Hybrid vs CloudHub)
PDF
MuleSoft Surat Meetup#48 - Anypoint API Governance (RAML, OAS and Async API) ...
PDF
apidays Paris 2022 - Generating APIs from business models, Frederic Fontanet,...
PDF
Mule esb presentation
PPTX
Containers and Docker
PPTX
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
PDF
How to get started with Oracle Cloud Infrastructure
PDF
Introduction to Red Hat OpenShift 4
PPTX
Monoliths and Microservices
PDF
OpenShift-Technical-Overview.pdf
PDF
Monitoring Kubernetes with Prometheus
PDF
OpenShift Overview
PDF
CNCF Meetup - OpenShift Overview
PDF
OpenShift 4, the smarter Kubernetes platform
PDF
The Qa Testing Checklists for Successful Cloud Migration
Cloud Native Applications on OpenShift
Microservices on Anypoint Platform
A lifecycle for microservices
Containerising the Mule Runtime with Kubernetes & From Zero to Batch : MuleS...
Improve monitoring and observability for kubernetes with oss tools
MuleSoft Deployment Strategies (RTF vs Hybrid vs CloudHub)
MuleSoft Surat Meetup#48 - Anypoint API Governance (RAML, OAS and Async API) ...
apidays Paris 2022 - Generating APIs from business models, Frederic Fontanet,...
Mule esb presentation
Containers and Docker
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
How to get started with Oracle Cloud Infrastructure
Introduction to Red Hat OpenShift 4
Monoliths and Microservices
OpenShift-Technical-Overview.pdf
Monitoring Kubernetes with Prometheus
OpenShift Overview
CNCF Meetup - OpenShift Overview
OpenShift 4, the smarter Kubernetes platform
The Qa Testing Checklists for Successful Cloud Migration
Ad

Similar to Containerizing MuleSoft applications for hybrid deployment (20)

PDF
API Microservices with Node.js and Docker
PDF
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
PDF
[WSO2Con Asia 2018] Architecting for Container-native Environments
PPTX
MuleSoft Clustring, Okta, CI/CD Integration with Jenkins
PPTX
Introduction to CloudHub 2.0
PPTX
AUToSAR introduction
PPTX
VIRTUALIZATION SERVER.pptx
ODP
micro services architecture (FrosCon2014)
PPTX
Mule soft indore meetup 2
PPTX
MuleSoft Meetup Charlotte 2 - 2019
PPTX
São Paulo MuleSoft Meetup - Deployments Models
PPTX
Montreal MuleSoft_Meetup_16-Aug.pptx
PDF
Attack graph generation for micro services architecture
PPTX
Mulesoft Meetup Roma - CloudHub 2.0: a fully managed, containerized integrati...
PPTX
Microservices with Node and Docker
PPTX
MuleSoft Meetup Adelaide 7th April 2021
PPTX
Designing Apps for Runtime Fabric: Logging, Monitoring & Object Store Persist...
PPTX
Unit No. II Architecture.pptx Cloud Microservices & Application
PDF
Building Microservices Architecture with Spring Boot and Spring Cloud
PPTX
Indy-Meetup-Migration-From-CH1.0-To-CH2.0.pptx
API Microservices with Node.js and Docker
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
[WSO2Con Asia 2018] Architecting for Container-native Environments
MuleSoft Clustring, Okta, CI/CD Integration with Jenkins
Introduction to CloudHub 2.0
AUToSAR introduction
VIRTUALIZATION SERVER.pptx
micro services architecture (FrosCon2014)
Mule soft indore meetup 2
MuleSoft Meetup Charlotte 2 - 2019
São Paulo MuleSoft Meetup - Deployments Models
Montreal MuleSoft_Meetup_16-Aug.pptx
Attack graph generation for micro services architecture
Mulesoft Meetup Roma - CloudHub 2.0: a fully managed, containerized integrati...
Microservices with Node and Docker
MuleSoft Meetup Adelaide 7th April 2021
Designing Apps for Runtime Fabric: Logging, Monitoring & Object Store Persist...
Unit No. II Architecture.pptx Cloud Microservices & Application
Building Microservices Architecture with Spring Boot and Spring Cloud
Indy-Meetup-Migration-From-CH1.0-To-CH2.0.pptx
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
August Patch Tuesday
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
MIND Revenue Release Quarter 2 2025 Press Release
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Encapsulation_ Review paper, used for researhc scholars
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Assigned Numbers - 2025 - Bluetooth® Document
A novel scalable deep ensemble learning framework for big data classification...
Heart disease approach using modified random forest and particle swarm optimi...
Digital-Transformation-Roadmap-for-Companies.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
1 - Historical Antecedents, Social Consideration.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
OMC Textile Division Presentation 2021.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Building Integrated photovoltaic BIPV_UPV.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
cloud_computing_Infrastucture_as_cloud_p
August Patch Tuesday
A comparative analysis of optical character recognition models for extracting...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Group 1 Presentation -Planning and Decision Making .pptx

Containerizing MuleSoft applications for hybrid deployment

  • 1. Containerizing MuleSoft applications for Hybrid deployment Moscow MuleSoft Meetup Group October 12 2021
  • 2. 2 Introductions A SHOW OF HANDS: Who is new to this Meetup? Artem Fomenko Leadex Systems Technical Lead
  • 3. ● Our personal experience of using Docker Swarm with MuleSoft Standalone Runtime ● Technical demonstration of the deployment approach ● Summing-up our experience and further plans on the proposed solution ● Q&A session ● Trivia game Agenda
  • 4. MuleSoft Customer-managed Deployment Options Hybrid Deployments https://docs.mulesoft.com/runtime-manager/deployment-strategies Anypoint Runtime Fabric Deployments
  • 5. ● Isolation – each application is run independently from the others and and doesn’t affect them in terms of shared platform resources. ● Immutability – applications are baked into Docker images along with Mule Runtime. ● Self-healing – whenever a node gets crashed, all the deployed applications within that node are automatically moved to healthy nodes. ● Zero-downtime rolling updates – a Mule application can be automatically updated without any service downtime. ● Secrets – secret values are securely stored and injected into containers at runtime. Virtues of MuleSoft containerization
  • 7. ● cAdvisor – collects container-specific metrics directly from Docker. ● node-exporter – Prometheus exporter for hardware and OS metrics exposed by *NIX kernels. ● dockerd-exporter – Docker daemon metrics collector. ● Prometheus – metrics database. ● Alertmanager – alerts dispatcher for Prometheus. ● Unsee – Alertmanager dashboard tool. ● Grafana – web application for metrics interactive visualization. ● Caddy – reverse proxy and basic auth provider. Docker Swarm Cluster Monitoring All credits to Stefan Prodan’s swarmprom
  • 9. ● All application logs must be redirected to STDOUT and sent to a log aggregation tool ● OS signals, such as SIGINT and SIGTERM, must be properly redirected to the Mule Runtime process. ● Memory footprint of Mule runtime must be optimized to run one application in accordance with the container’s resource limits. ● Exposing JMX beans can be helpful to monitor Mule runtime and tune up logging levels. ● Image labels are important to keep useful information about the Docker image of a container. Baking a Proper MuleSoft container
  • 10. ● environment configuration is to be externalized into a separate repository; ● logging events must contain a unique identifier to correlate them across different services; ● only inter-process communication protocols are to be used (VM queues are forbidden!); ● health check endpoint is to be provided. Developing a Proper MuleSoft application For distributed systems, such as microservices, it is important not to just properly break down an application into decoupled and cohesive services, but also put in place additional mechanisms to handle cross-cutting concerns:
  • 11. ● We will be using an accelerator provide by MuleSoft as an application example ● We will be running a one-node local Docker Swarm cluster to show how Docker images and built and Swarm services deployed ● All applications are to be registered in Runtime Manager Technical Live Demonstration https://anypoint.mulesoft.com/exchange/org.mule.examples/mule soft-accelerator-for-financial-services/
  • 12. ● Anypoint Runtime Fabric seems like a better choice when it comes to on-premises microservice-like deployments. ● Getting along Docker Swarm and Anypoint Platform requires a lot of low-level plumbing. ● It needs to be extra careful about setting up resource limits to prevent resource starvation for high-throughput services. ● It is always possible to switch to another orchestrator or even RTF without major changes of applications. ● Docker Swarm is a decent choice when you need to quickly adopt a microservice approach. Summing-up
  • 13. ● GitHub repository with the demo application ● Official Mule Runtime in Docker FAQ ● Official Docker Swarm Documentation ● Mule Runtime containerization (article) ● Unofficial Mule Runtime images ● HAProxy on Docker Swarm (official article) Useful Links and Articles
  • 15. Q&A