Using Travis CI for Deploying Mulesoft Applications to Cloudhub

What Is Travis CI?

  • Travis CI is a hosted continuous integration service used to build and test software projects hosted at GitHub and Bitbucket. Travis CI provides various paid plans for private projects and a free plan for open source. 
  • Travis CI is available at  https://travis-ci.org/.
  • https://travis-ci.org/ supports only public repositories. To support GitHub private repositories, you can use https://travis-ci.com/.

Prerequisites

To start using Travis CI, make sure you have:

To get started with Travis CI using GitHub, follow these steps:

Configuring Amazon S3 Using Mulesoft

Introduction

Amazon S3 or Amazon Simple Storage Service is a service offered by Amazon Web Services to store objects, download, and use the data kept in the S3, and help to build an application that requires internet storage.

Mulesoft provides the Amazon S3 connector to help you easily connect to your S3 and get on with your integration.

Anypoint Platform Connected Apps

What Is a Connected App?

The connected App feature provides you the option to integrate an external application with the Anypoint platform without sharing your user credentials with the help of OAuth 2.0 or OpenID Connect.

Authentication Protocol Supported by Connected Apps 

1. OAuth 2.0: OAuth (Open Authorization) is an open protocol that enables secure API authorization from applications in a standardized way. It can authorize resource access without revealing user credentials to apps.

Best Practices to Follow While Testing Banking Applications

Today, it is very rare that a bank does not have an online presence; all the banks have various mobile and web applications to help their customers view account balance online, do transactions, pay utility bills, and access many other services.

To stay competitive in the market and also to gain customer satisfaction, designing, and then providing error-free, user-friendly application is very crucial. To achieve this, the testing team plays a vital role during the development process; they need to test the system with the utmost caution.

QAOps — A Rising Trend of Software Testing

DevOps — nowadays, this is a buzzword that we can hear all the time in the software development world. DevOps is a combination of development (which represents ‘Dev’ in DevOps) and IT operations (which represents ‘Ops’ in DevOps) teams. DevOps focuses on the involvement of both the development team and the operations team in the development of a product.

By using the DevOps approach, organizations are moving towards the continuous and rapid delivery of high-quality products. Quality is the main and crucial aspect of any development cycle, as the developed product should be able to provide the utmost user experience to the customer. Good quality products follow customer satisfaction; and at the end of the day, customer satisfaction is the paramount goal of any organization.   

Overview of Anypoint Platform

Overview of Anypoint Platform

What Is Anypoint Platform?

Anypoint Platform is a unified, hybrid, highly productive integration platform that allows developers to create a seamless application network of applications, data, and devices.

You might also enjoy:  Major Release of Anypoint Platform

Anypoint Platform provides us the runtime, tool, framework and library (central repository) for our APIs and applications.

API Autodiscovery in Mule3

What Is API Autodiscovery?

We use API Autodiscovery to pair an API in API Manager to its deployed Mule application.

When autodiscovery is correctly configured in your Mule application, you can say that your application’s API is tracked by or paired to API Manager. Through the Autodiscovery scheme, the API Manager keeps track of the API throughout its lifecycle.

Securing Configuration Properties in MuleSoft

Anypoint Enterprise Security is a collection of security features that enforce secure access to information in Mule applications.

Anypoint Enterprise Security suite helps application developers develop security solutions as per security requirements, prevent security breaches, and facilitate authorized access to data.

Variables in Mule 3

Variables are used to store values for use within a Mule flow in a Mule application. Variables can store a current message, current message payload, or current message attributes.

In Mule 3, there are 3 types of variables:

MUnit Testing With Mule 4

MUnit is a Mule Application Testing Framework that allows you to easily build automated tests for your Integration and APIs. It provides a full suite of integration and unit test capabilities, and it is fully integrated with Maven.

MUnit is fully integrated with Anypoint Studio and allows you to create, design, and test your MUnit tests just like you would Mule Applications.

Filtering Data Using DataWeave in Mule 4 Batch

DataWeave is a MuleSoft expression language for accessing, querying, and transforming data that flows through the Mule application. It is tightly integrated with the Mule runtime engine, which reads the script and expression in our application. It is a powerful template engine that transforms data to and from any kind of format like CSV, JSON, XML, MAP, POJO's, etc.

Dataweave now() function is used to return the current date and time when used inside our application. 

Applying Automated Policies to APIs

Sometimes, developers are needed to apply a policy or, say, the same set of policies to a number of APIs. It makes it tiring and boring for the developers to perform the same activity again and again. This is where the new feature of Anypoint Platform comes in handy, called Automated Policies.

What Are Automated Polices?

Automated Policies make it easier for developers or Anypoint Platform administrators to apply the same set of policies to all your APIs.

Using Mule 4 Batch for Loading a CSV File to a Database

In this article, I will explain how to load a CSV file to a database. For this, we will be using a CSV input file that contains a list of employees, and then we will insert that data into the MySQL database (you can use any database of your choice).

Mule can process messages in batches. It splits the large messages into individual records that are processed asynchronously within batch jobs.