What is MuleSoft?

MuleSoft is a software company that provides tools to build, manage and deploy a network of applications, data, and devices connected via APIs that run both on-premises and in the cloud with an API-led connectivity approach.

MuleSoft is an integration platform for connecting enterprise and SaaS applications in the cloud and on-premises.

Getting Started MuleSoft

Advantage

Scalability

The main reason why MuleSoft is so popular is because of its integration capabilities. Even if you have a legacy system, you can connect it to SaaS products and system APIs using Mule integration. This allows you to scale your system without having to overhaul it completely.

API-driven connectivity also allows you to expand into new markets by unlocking your data and infrastructure to integrate the systems you need.

Performance

MuleSoft boosts the performance of individual developers as well as your entire organization. Development time is reduced because your teams can keep reusability in mind and use a unified platform for the entire API creation process.

As for your business, you'll be able to increase the pace of innovation because you'll be able to connect data in new ways rather than wasting time creating custom code to connect each system.

What is Mule ESB?

Mule ESB is an architecture developed for programmers. They can integrate a range of applications using the bus-like infrastructure. Mule ESB can be integrated with HTTP, web service, JMS, etc.

Mention the features of Mule ESB

The features of Mule ESB are:

The basic principles of ESB integration are,

Getting Started,

Once logged in, you can have access to Any point Platform:

Getting Started MuleSoft

In this article, we will work with Anypoint Studio only. First, you need to download Anypoint Studio,

Getting Started MuleSoft

To install Anypoint studio, you can install 30 days trial if you don't have a license.

What is Anypoint Studio

Why Anypoint Studio?

Steps to install Anypoint Studio

Getting Started MuleSoft

Let's discuss the Anypoint Studio workplace in detail.

HelloWorld API

Right-click on File and click on New and select Mule Project.

Getting Started MuleSoft

Provide the project name "helloworld" and click Finish.

Getting Started MuleSoft

Here is what the package explorer looks like.

Getting Started MuleSoft

Now go to Mule Palette and drag and drop Listener (HTTP), Logger (Core), and Set Payload(Core) on the design area.

Getting Started MuleSoft

Click on Listener. As you can see Connection configuration and Path is required fields, provide both field's value,

Keep the default connector configuration and click Test connection. Click OK. Also, provide the Path based.

Getting Started MuleSoft

Getting Started MuleSoft

Click on the Logger and set the log message.

Getting Started MuleSoft

Now click on Set Payload and set the data to display.

Getting Started MuleSoft

All good. Let's deploy the application now.

Right-click on the helloworld.xml file and click Run as Mule Application.

Getting Started MuleSoft

This will take some time to deploy. Once deployed, you will see a message like this in Console.

Getting Started MuleSoft

Let's open Postman to test the API.

Getting Started MuleSoft

As you can see, API is working as expected, and data comes from Set Payload.

Conclusion

In this article, we have learned how to get started with MuleSoft, go through with some information, set up Anypoint Studio, build a sample API, and deploy and run that API in postman.