SlideShare a Scribd company logo
What is the difference between
using private flow versus VM
transport?
• In this post, I will show the differences between chaining flows with
VM transport versus chaining flows with flow reference. When I need
to divide my Mule flows into reusable units, I often break them into
smaller flows and then chain them together in a main flow.
• Flows can be chained together using flow-refs or using VM
connectors; most recent examples use the flow-refs. However, flow-
refs are a Mule 3 addition and in Mule 2 VM connectors were used to
chain flows.
• Given this background and with flow-refs being more of the
recommended approach, is there a scenario when we would want to
use VM connectors? Yes, there is! But the majority of the time flow-
refs are preferred over the VM transport and here is why.
• * VM connector creates a transport barrier in the flow: In a transport
barrier, your Mule message goes through an entire serialization and
deserialization process which results in a new Mule message with the
same payload. Read about the effect of transport barrier on a mule
message here.
When one would prefer to use a VM
transport over a flow reference
• One case would be that VM endpoints enable message redelivery
strategies to be configured in your exception handling blocks – this is
not possible with flow-refs. VMs can do this because they internally
use a queue to hold messages while flow-refs are similar to simple
method calls.
• Look at the sample flow below; here the message will be redelivered
five times and is enabled by the use of VM inbound
• Contrast that to a private flow and chaining with flow-refs, if an
exception occurs in the called flow even though we have a rollback
strategy configured it will NOT execute because there is no internal
queue involved.
What is the difference between using private flow
• To summarize, don’t hesitate to use VM transports if you need
redelivery of messages. There are also differences in the use of thread
pools between private flows and VMs, but I will leave that for another
post. The sample source code for this post is available on Github.
• If you want to learn more about Mule ESB, Mule ESB is a great
platform for developers to connect applications together quickly and
easily. Feel free to try Anypoint Platform for 30 days

More Related Content

What's hot (20)

PPTX
Mule servlet connector
Ankush Sharma
 
PPTX
Scatter gather flow in mule
Son Nguyen
 
PPTX
Mule advanced
D.Rajesh Kumar
 
PPTX
Mule soa
Son Nguyen
 
PPTX
Using seda in mule
Anirban Sen Chowdhary
 
PPTX
Mule requestor component
Sindhu VL
 
PPTX
Mule soa
D.Rajesh Kumar
 
PPTX
Mule rabbitmq
Praneethchampion
 
PPTX
Mule rabbit mq
D.Rajesh Kumar
 
PPT
Mule esb introduction
Praneethchampion
 
PPT
Mulesoft ppt
Achyuta Lakshmi
 
PPTX
Controlling Message Flow - Mule ESB
Mani Rathnam Gudi
 
PPTX
Webservice vm in mule
Praneethchampion
 
PPTX
Mule any point studio
Son Nguyen
 
PPTX
Mule esb
chetan singhal
 
PPTX
Mule esb mule message
sathyaraj Anand
 
PPTX
Mule Microsoft Service Bus
Ankush Sharma
 
PPTX
Rabbit Mq in Mule
Mohammed246
 
PPTX
Core concepts in mule
Sindhu VL
 
PPT
Mule ESB
niravn
 
Mule servlet connector
Ankush Sharma
 
Scatter gather flow in mule
Son Nguyen
 
Mule advanced
D.Rajesh Kumar
 
Mule soa
Son Nguyen
 
Using seda in mule
Anirban Sen Chowdhary
 
Mule requestor component
Sindhu VL
 
Mule soa
D.Rajesh Kumar
 
Mule rabbitmq
Praneethchampion
 
Mule rabbit mq
D.Rajesh Kumar
 
Mule esb introduction
Praneethchampion
 
Mulesoft ppt
Achyuta Lakshmi
 
Controlling Message Flow - Mule ESB
Mani Rathnam Gudi
 
Webservice vm in mule
Praneethchampion
 
Mule any point studio
Son Nguyen
 
Mule esb
chetan singhal
 
Mule esb mule message
sathyaraj Anand
 
Mule Microsoft Service Bus
Ankush Sharma
 
Rabbit Mq in Mule
Mohammed246
 
Core concepts in mule
Sindhu VL
 
Mule ESB
niravn
 

Viewers also liked (15)

PPSX
Avec qui avons-nous travaillé
Olivier DESGUIOZ
 
PDF
brochure_1.47mb
joseph joshy
 
PDF
E Com Security solutions hand book on Firewall security management in PCI Com...
Dolly Juhu
 
PDF
E Com Security solutions hand book on Web application security best practices
Dolly Juhu
 
PDF
Проект "Поиск потенциальных партнеров в Германии", 2015
Agency of Industrial Marketing
 
DOCX
Los ilícitos-tributarios. saia
Jessica Delgado
 
PPTX
Demandas contra la republica y el estado_YENNIFERCAMACHO
deysi uft
 
DOCX
Tema 03-derecho-tributario (1)
Jessica Delgado
 
PPTX
презентация моу сш №140
helenabond1969
 
PDF
Acompanhamento processual da justiça eleitoral
Akibas De Freitas Souza
 
PPTX
Mocking with salesforce using Munit
Son Nguyen
 
PPTX
Derecho Concursal
Emperatriz Poveda
 
PDF
american english-1-file-test-3
Noelia Gonzales Arenas
 
PPTX
Formas de adquirir la nacionalidad
Carlos Daniel Perez Rivera
 
PPT
Pérdida de visión manejo en Atención Primaria
Centro de Salud Medina urbano
 
Avec qui avons-nous travaillé
Olivier DESGUIOZ
 
brochure_1.47mb
joseph joshy
 
E Com Security solutions hand book on Firewall security management in PCI Com...
Dolly Juhu
 
E Com Security solutions hand book on Web application security best practices
Dolly Juhu
 
Проект "Поиск потенциальных партнеров в Германии", 2015
Agency of Industrial Marketing
 
Los ilícitos-tributarios. saia
Jessica Delgado
 
Demandas contra la republica y el estado_YENNIFERCAMACHO
deysi uft
 
Tema 03-derecho-tributario (1)
Jessica Delgado
 
презентация моу сш №140
helenabond1969
 
Acompanhamento processual da justiça eleitoral
Akibas De Freitas Souza
 
Mocking with salesforce using Munit
Son Nguyen
 
Derecho Concursal
Emperatriz Poveda
 
american english-1-file-test-3
Noelia Gonzales Arenas
 
Formas de adquirir la nacionalidad
Carlos Daniel Perez Rivera
 
Pérdida de visión manejo en Atención Primaria
Centro de Salud Medina urbano
 
Ad

Similar to What is the difference between using private flow (20)

PPTX
Vm component
F K
 
PPTX
Vm component
Sunil Komarapu
 
PPTX
How to use vm component
maheshtheapex
 
PPTX
Vm Component
Durga Prasad Kakarla
 
PPTX
Mule high availability (ha) cluster
Achyuta Lakshmi
 
PPTX
ESB Online Training Part 2
Vince Soliza
 
PDF
MuleSoft Surat Virtual Meetup#26 - Implementing Hybrid MuleSoft Runtime - Any...
Jitendra Bafna
 
PPTX
Mulesoft vm transport reference
kumar gaurav
 
PPTX
VIRTUAL CLUSTERS AND RESOURCE MANAGEMENT
drksrinivasareddyece
 
PPTX
Webservice with vm in mule
javeed_mhd
 
PPTX
Webservice with vm in mule
Mohammed625
 
PPTX
Webservice with vm in mule
AbdulImrankhan7
 
PPTX
Webservice with vm in mule
Khan625
 
PPTX
Webservice with vm in mule
Rajkattamuri
 
PPTX
Webservice with vm in mule
mdfkhan625
 
PPTX
Vm component in mule demo
Sudha Ch
 
PPT
Clustering concepts
bapiraju
 
PDF
MuleSoft Surat Live Demonstration Virtual Meetup#2 - Customer Hosted Mule Run...
Jitendra Bafna
 
PPT
Clustering concepts
harika thamishetti
 
PPT
Clustering concepts
Harish43
 
Vm component
F K
 
Vm component
Sunil Komarapu
 
How to use vm component
maheshtheapex
 
Vm Component
Durga Prasad Kakarla
 
Mule high availability (ha) cluster
Achyuta Lakshmi
 
ESB Online Training Part 2
Vince Soliza
 
MuleSoft Surat Virtual Meetup#26 - Implementing Hybrid MuleSoft Runtime - Any...
Jitendra Bafna
 
Mulesoft vm transport reference
kumar gaurav
 
VIRTUAL CLUSTERS AND RESOURCE MANAGEMENT
drksrinivasareddyece
 
Webservice with vm in mule
javeed_mhd
 
Webservice with vm in mule
Mohammed625
 
Webservice with vm in mule
AbdulImrankhan7
 
Webservice with vm in mule
Khan625
 
Webservice with vm in mule
Rajkattamuri
 
Webservice with vm in mule
mdfkhan625
 
Vm component in mule demo
Sudha Ch
 
Clustering concepts
bapiraju
 
MuleSoft Surat Live Demonstration Virtual Meetup#2 - Customer Hosted Mule Run...
Jitendra Bafna
 
Clustering concepts
harika thamishetti
 
Clustering concepts
Harish43
 
Ad

More from Son Nguyen (20)

PPTX
Your new maven friend – the mule maven
Son Nguyen
 
PPTX
Soa governance for the modern business
Son Nguyen
 
PPTX
Quality sdk for your apis in minutes!
Son Nguyen
 
PPTX
Maven tools & archetypes
Son Nguyen
 
PPTX
Let api change your relationship with your doctor
Son Nguyen
 
PPTX
Increase revenue and reinvigorate your business with api
Son Nguyen
 
PPTX
How to – wrap soap web service around a database
Son Nguyen
 
PPTX
How to – rest api proxy to soap webservice
Son Nguyen
 
PPTX
Anypoint runtime manager v1
Son Nguyen
 
PPTX
A good api strategy can help turn your
Son Nguyen
 
PPTX
10 steps to design and build the perfect
Son Nguyen
 
PPTX
Troubleshooting mule
Son Nguyen
 
PPTX
Running mule as worker role on azure
Son Nguyen
 
PPTX
Real time data processing with anypoint connector for kafka
Son Nguyen
 
PPTX
Performance tuning in mule
Son Nguyen
 
PPTX
Mule intelli j tips
Son Nguyen
 
PPTX
Introducing the anypoint connector for redis
Son Nguyen
 
PPTX
How to – data integrity checks in batch processing
Son Nguyen
 
PPTX
How soa paved the way for cloud
Son Nguyen
 
PPTX
Mq user and role access
Son Nguyen
 
Your new maven friend – the mule maven
Son Nguyen
 
Soa governance for the modern business
Son Nguyen
 
Quality sdk for your apis in minutes!
Son Nguyen
 
Maven tools & archetypes
Son Nguyen
 
Let api change your relationship with your doctor
Son Nguyen
 
Increase revenue and reinvigorate your business with api
Son Nguyen
 
How to – wrap soap web service around a database
Son Nguyen
 
How to – rest api proxy to soap webservice
Son Nguyen
 
Anypoint runtime manager v1
Son Nguyen
 
A good api strategy can help turn your
Son Nguyen
 
10 steps to design and build the perfect
Son Nguyen
 
Troubleshooting mule
Son Nguyen
 
Running mule as worker role on azure
Son Nguyen
 
Real time data processing with anypoint connector for kafka
Son Nguyen
 
Performance tuning in mule
Son Nguyen
 
Mule intelli j tips
Son Nguyen
 
Introducing the anypoint connector for redis
Son Nguyen
 
How to – data integrity checks in batch processing
Son Nguyen
 
How soa paved the way for cloud
Son Nguyen
 
Mq user and role access
Son Nguyen
 

Recently uploaded (20)

PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
Learn Computer Forensics, Second Edition
AnuraShantha7
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Learn Computer Forensics, Second Edition
AnuraShantha7
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 

What is the difference between using private flow

  • 1. What is the difference between using private flow versus VM transport?
  • 2. • In this post, I will show the differences between chaining flows with VM transport versus chaining flows with flow reference. When I need to divide my Mule flows into reusable units, I often break them into smaller flows and then chain them together in a main flow. • Flows can be chained together using flow-refs or using VM connectors; most recent examples use the flow-refs. However, flow- refs are a Mule 3 addition and in Mule 2 VM connectors were used to chain flows.
  • 3. • Given this background and with flow-refs being more of the recommended approach, is there a scenario when we would want to use VM connectors? Yes, there is! But the majority of the time flow- refs are preferred over the VM transport and here is why. • * VM connector creates a transport barrier in the flow: In a transport barrier, your Mule message goes through an entire serialization and deserialization process which results in a new Mule message with the same payload. Read about the effect of transport barrier on a mule message here.
  • 4. When one would prefer to use a VM transport over a flow reference • One case would be that VM endpoints enable message redelivery strategies to be configured in your exception handling blocks – this is not possible with flow-refs. VMs can do this because they internally use a queue to hold messages while flow-refs are similar to simple method calls.
  • 5. • Look at the sample flow below; here the message will be redelivered five times and is enabled by the use of VM inbound
  • 6. • Contrast that to a private flow and chaining with flow-refs, if an exception occurs in the called flow even though we have a rollback strategy configured it will NOT execute because there is no internal queue involved.
  • 8. • To summarize, don’t hesitate to use VM transports if you need redelivery of messages. There are also differences in the use of thread pools between private flows and VMs, but I will leave that for another post. The sample source code for this post is available on Github. • If you want to learn more about Mule ESB, Mule ESB is a great platform for developers to connect applications together quickly and easily. Feel free to try Anypoint Platform for 30 days