05 ° Service 05 / MuleSoft · Migration & Performance

MuleSoft migration.
Mule 3 to Mule 4.

We carry out a MuleSoft migration application by application and during live operation. We move from Mule 3 to Mule 4, to a current Mule runtime with Java 17, and from CloudHub 1.0 to CloudHub 2.0. Along the way, we measure memory, throughput, and response times and safeguard the result with load tests. At an energy utility, the MuleSoft layer keeps the interfaces stable while the core system migrates to S/4HANA Utilities.

Tagline Mule 3 → 4 · Java 17 · CloudHub 2.0 · Load tests
° dl / service-05
° From our projects
170+
operational processes through Anypoint
while the SAP core migrates
60 TB
image archive moved to AWS
while daily business continued
HA mode
Mule runtimes run redundantly,
patches instance by instance
JMeter
load tests ahead of the load peaks
of a lottery company
° Scope of services

Four initiatives around MuleSoft migration.

From the move to Mule 4 to performance analysis. Each initiative stands on its own and can be combined with the others.

01

From Mule 3 to Mule 4  · Migration

Mule 4 simplifies the message model, makes DataWeave the expression language, and runs applications on a non-blocking engine that tunes itself to the environment. Applications are generally not compatible between the two major versions and have to be migrated.

Our approach. We take stock of the existing applications, migrate them one by one, and run the old and the new version in parallel during a transition phase.

02

Mule runtime upgrade and Java 17  · Upgrade

MuleSoft releases the Mule runtime in two channels, Edge and LTS. The LTS version Mule 4.9 runs on Java 17. For Mule 4.6 LTS, Extended Support ends in February 2027.

Our approach. We check connectors, custom Java code, and DataWeave scripts for Java 17, bring the applications to the target version, and safeguard the step with regression tests.

03

From CloudHub 1.0 to CloudHub 2.0  · Platform

MuleSoft divides the move into five steps. These are planning, preparing the infrastructure, migrating the applications, switching over the traffic, and completion. The Anypoint VPC becomes a private space, and workers become replicas.

Our approach. We plan the network and the sequence, adapt the applications and the pipeline, and switch the traffic over step by step. The page DevOps & Deployment compares the deployment options.

04

Performance analysis and load tests  · Performance

According to the vendor, Mule 4 tunes itself to its environment. Whether an application reaches its targets also depends on its design and on the connected systems, and that can be measured.

Our approach. Together with you, we define target values for throughput and response time, measure under load, observe memory and CPU, and change one parameter per run.

° Context · Mule 4 vs. Mule 3

Mule 4 vs. Mule 3 and what changes in a MuleSoft migration.

MuleSoft describes Mule 4 as an evolution of Mule 3 in which applications, flows, connectors, and DataWeave remain as concepts and much has become simpler. For the move from Mule 3 to Mule 4, what counts is which parts of an application are affected.

Bringing an application from Mule 3 to Mule 4 means translating it into a model with fewer special cases. Four changes shape the work. They concern the message model, the expression language, the connectors, and the execution. On top of that comes DataWeave 2 with its adjusted syntax. The following sections put into context what this means for existing applications and which tool the vendor provides for the migration.

Mule 4 vs. Mule 3 in message model, connectors, and execution

In Mule 4, a message consists of a payload and attributes. The inbound properties from Mule 3 are absorbed into typed attributes, and custom values are held in variables. DataWeave replaces the Mule Expression Language (MEL) as the expression language, so data is read and routed without conversion into Java objects. Uniform connectors take the place of the transports. They are included per application and updated independently of the runtime. Error handling works with error types and the Try scope. Execution is handled by a non-blocking engine that adapts its threads to the environment on its own.

DataWeave 1.0 vs. 2.0, the differences

According to MuleSoft, DataWeave 2 is largely unchanged compared with DataWeave 1, and the syntax has been simplified. In the header of a script, the directives no longer carry the percent sign. %output becomes output, %var becomes var, and %function becomes fun. Conditions are written with if and else in place of when and otherwise, and types are written without a leading colon, so String replaces :string. New features include modules with imports, typed functions, and calls to Java code. Scripts from Mule 3 are therefore reworked and then tested.

Mule Migration Assistant, the tool for Mule 3 to Mule 4

The Mule Migration Assistant (MMA) is an open source project from MuleSoft on GitHub. It converts the project structure, generates descriptors such as pom.xml and mule-artifact.json, makes many adjustments to the code, and provides guidance on the parts that cannot be converted automatically. Complex MEL expressions and DataWeave transformations are migrated by hand, and every application is tested. We use the MMA as a starting point and decide per application whether migrating with the tool or by hand is the better path.

The migration proceeds application by application, with a phase in which the old and the new version run side by side. We are familiar with changes during live operation from our own projects. At an energy utility, the MuleSoft layer orchestrates more than 170 operational processes and keeps the external interfaces stable while the core system migrates from SAP IS-U to S/4HANA Utilities. The page Development & Connectors describes how we develop on Mule 4.


° Versions compared

Mule 3 vs. Mule 4, the runtime versions compared

Eight criteria and how well four versions of the Mule runtime meet them today. Support information follows MuleSoft's support policy as of November 2026. For Mule 4.6 LTS, Extended Support runs until February 2027.

CriterionMule 3.9Mule 4.4Mule 4.6 LTSMule 4.9 LTS
Vendor support, as of 11/2026~
Runs on Java 17
DataWeave 2 as the expression language
Connectors with their own release cycle~
Self-tuning execution
Repeatable streams by default
Error types and Try scope
Runs on CloudHub 2.0~
Strong fit With limitations Not recommended
° Approach

MuleSoft migration in six steps.

This is how we carry out a migration from Mule 3 to Mule 4 or to a new platform. The steps build on one another, and operations continue in the meantime.

01

Take inventory

Which applications run on which Mule runtime, and which connectors, MEL expressions, DataWeave scripts, and custom Java code do they contain? The result is a set of findings per application.

AssessmentMule runtimeConnectors
02

Define the sequence

We order the applications by their dependencies and by their importance to the business. Independent applications and non-production environments come first.

DependenciesPlanning
03

Migrate the applications

Per application, the migration covers project structure and descriptors, expressions from MEL to DataWeave 2, connectors in their current version, and error handling with error types. The Mule Migration Assistant provides the starting point.

Mule 4DataWeave 2MMA
04

Test and verify under load

MUnit tests safeguard the functional behavior. Load tests show whether throughput and response time of the new version reach the agreed target values.

MUnitLoad test
05

Run in parallel

The old and the new version run side by side. When moving to CloudHub 2.0, a share of the traffic can be routed to the new application in Runtime Manager, and the way back remains open.

Parallel operationRuntime ManagerWay back
06

Switch over and complete

After the switchover, we observe the application in monitoring, decommission the old environment, and hand the documentation over to your team.

SwitchoverMonitoring
° Deep dive · Performance and load tests
As of 2026  ·  2 min read

MuleSoft performance, measured, tested, and improved in a targeted way.

Performance tuning starts with a measurement. A change is worthwhile once it is clear which load a Mule application is supposed to carry and where it consumes time or memory today. This is how we proceed with load tests, with the analysis, and after a runtime upgrade.

01

Load tests for Mule applications and APIs

The criteria come before the first test. They define the expected average and peak load, the lowest acceptable throughput, and the longest acceptable response time. For this, MuleSoft recommends a controlled environment in which the load generator, the Mule application, and the backend run on separate systems, along with load profiles that reproduce actual usage behavior. The vendor's performance team works with Apache JMeter.

We also use JMeter and Gatling in our projects. For a lottery company, we reproduced the load peaks around the announcement of the results with both tools before they occurred in operation. For a booking portal, MUnit, Karate, and JMeter ran in the CI/CD pipeline.

  • °
    Target values   Throughput, response time, and number of concurrent users, defined before the test.
  • °
    Tools   Apache JMeter and Gatling for the load, MUnit and Karate for the functional behavior.
02

Performance tuning and the parameters of a Mule application

According to MuleSoft, Mule 4 is already tuned for the common use cases. The parameters lie in the application itself. One of them is the streaming strategy. Mule 4 works with repeatable streams by default, and an application that reads a payload only once can do without them. Without a pooling profile, the Database Connector opens a new connection for every query unless a transaction is running. Further parameters are caching, asynchronous logging, the block size of batch jobs, and the response time of the connected systems.

The vendor recommends making one change per run and then testing again. That is how we handle it as well. In the archive migration of a photo agency, we measured the throughput per process step, adjusted Mule components in a targeted way, and tested with real data volumes until the processing chain reached the required performance.

  • °
    Parameters   Streaming, pooling profiles, caching, logging, maxConcurrency, and the block size of batch jobs.
  • °
    Approach   One change per run, then the same test once more.
03

After the runtime upgrade, Java 17 and memory behavior

Java 17 changes the runtime behavior. MuleSoft cites a new JIT compiler that executes code faster and a different memory management. As a result, the heap in use can sit at a higher baseline or drop more slowly after a load phase than under Java 8. The vendor classifies this pattern as expected behavior and requires performance tests for large batch applications and for applications that operate at the limit of their CPU and memory allocation.

We therefore compare the same metrics under the same load before and after the upgrade. Memory and CPU are shown by the dashboard in Runtime Manager and by Anypoint Monitoring, and on your own servers additionally by the garbage collection logs. The page Platform Enablement & Services describes how a platform is monitored on an ongoing basis.

  • °
    Comparison   The same load tests before and after the upgrade, with the same target values.
  • °
    Observation   Runtime Manager, Anypoint Monitoring, and GC logs on your own servers.
° Stack & tools

What we migrate and measure with.

The vendor's tools for migration and upgrade, the load testing tools from our projects, and the target platforms.

01

Migration & upgrade

Mule Migration AssistantMule Upgrade ToolAnypoint StudioMule Maven PluginMUnit
02

Load testing & analysis

Apache JMeterGatlingAnypoint MonitoringRuntime Manager
03

Target platform

Mule 4.9 LTSJava 17CloudHub 2.0Runtime FabricAnypoint MQ
° Frequently asked questions about MuleSoft migration

Questions about Mule 3, Mule 4, runtime upgrades, and load tests.

01 How does a MuleSoft migration from Mule 3 to Mule 4 work?

Application by application. It starts with an inventory. It shows which applications exist, which connectors, MEL expressions, and DataWeave scripts they contain, and how they depend on one another. The sequence follows from that. Every application is migrated, tested with MUnit and under load, and runs in parallel with the old version for a while before the switchover.

02 What is the difference between Mule 3 and Mule 4?

Mule 4 works with a simpler message model made up of payload, attributes, and variables. DataWeave replaces the Mule Expression Language as the expression language, connectors have their own release cycle, and error handling uses error types and the Try scope. Execution is handled by a non-blocking engine that tunes itself to the environment. MuleSoft describes Mule 4 as an evolution in which the basic concepts remain.

03 What does the Mule Migration Assistant do?

The Mule Migration Assistant (MMA) is an open source tool from MuleSoft that automates part of the Mule 3 to Mule 4 migration. This includes the project structure, descriptors such as pom.xml, and many adjustments to the code. For parts it cannot convert, it provides guidance. Complex MEL expressions and DataWeave transformations are migrated by hand, and every application is tested afterward.

04 DataWeave 1.0 vs. 2.0, what has changed?

Above all, the syntax. Directives in the script header no longer carry the percent sign (output replaces %output, and fun replaces %function), conditions use if and else in place of when and otherwise, and types are written as String in place of :string. Modules with imports and calls to Java code have been added. In Mule 4, DataWeave is also the expression language of the runtime. Our article Mule DataWeave Basics covers the fundamentals.

05 How long is a Mule runtime supported?

Since Mule 4.5, MuleSoft has released the Mule runtime in two channels. Edge versions appear up to three times a year and have shorter support periods. Under the support policy, LTS versions receive at least 18 months of Standard Support followed by at least 6 months of Extended Support. For Mule 4.9 LTS, MuleSoft names August 2027 as the end of Standard Support and February 2028 as the end of Extended Support (as of November 2026).

06 When does support end for Mule 3.9, Mule 4.4, and Mule 4.6?

Under MuleSoft's support policy, Extended Support ended on March 20, 2024, for Mule 3.9 and in October 2025 for Mule 4.4. For Mule 4.6 LTS, Standard Support expired in August 2026, and Extended Support runs until February 2027. The current version of the policy is authoritative. In the inventory, we check it against your applications.

07 What does the MuleSoft migration to Java 17 involve?

Java 17 is supported as of Mule 4.6, and Mule 4.9 runs exclusively on Java 17. Before the move, connectors and modules must be available in a version compatible with Java 17. Custom Java code and custom connectors are reviewed and adapted where necessary. MuleSoft recommends migrating the policies first and then API proxies and applications, and testing in a controlled environment before going to production.

08 How does a Mule runtime upgrade to Mule 4.9 work?

According to MuleSoft, Mule applications are potentially compatible between minor versions, and the vendor recommends a regression test. We raise the runtime version, the Java version, and the connectors in the project, run the MUnit tests, and deliver through the pipeline. On CloudHub, the version is selected per application. For your own servers, there is the Mule Upgrade Tool, which also supports the way back to the previous version.

09 How do you move from CloudHub 1.0 to CloudHub 2.0?

MuleSoft divides the move into five steps. Planning is followed by preparing the infrastructure, migrating the applications, switching over the traffic, and completion. Under certain conditions, an existing VPC can be upgraded to a private space, and Runtime Manager then provides a tool for migrating the applications. Persistent VM queues are replaced by Anypoint MQ. The page DevOps & Deployment describes the differences between the deployment options.

10 MuleSoft Hyperforce migration, what should you consider?

Hyperforce is the Salesforce infrastructure on which MuleSoft provides the Anypoint Platform in several regions, in Europe as the EU Cloud, among others. According to the documentation, Hyperforce is compatible with supported versions of the Mule runtime from 4.4.0 onward, and the LTS channel is recommended. MuleSoft lists in an overview which features are available per control plane. Before a move, we check it against the features your platform uses.

11 How do you test the performance of MuleSoft APIs?

In performance testing, load tests run against defined target values. First, the expected load, the lowest acceptable throughput, and the longest acceptable response time are determined. Then a tool such as Apache JMeter generates load with realistic requests while the memory and CPU of the application are observed. Bottlenecks are resolved one at a time, and then the same test runs again. For a lottery company, this is how we reproduced the load peaks around the announcement of the results in advance.

12 Does dataliquid support a MuleSoft migration during live operation?

Yes. We have delivered MuleSoft migrations in client projects. We migrate step by step, with parallel operation and a defined way back per application. We are familiar with changes to a running system from our projects. For a photo agency, we used a MuleSoft platform to migrate 60 terabytes of image data to AWS while daily business continued. For a booking portal, we applied security patches instance by instance during live operation. The page MuleSoft Consulting shows the full offering.

Migration & Performance

Let's talk about your MuleSoft migration.

The initial call with an engineer covers your existing applications, the target version, the sequence, and a sensible next step.

01 Submit a request
* Required field
Topic
Encrypted transmission · TLS 1.3