MULESOFT INTERVIEW QUESTIONS
MuleSoft is a cloud and on-premise integration platform for connecting enterprise and SaaS applications.
Variables in MuleSoft can be of the following types:
• Flow Variable: It is used to set or remove variables associated with a specific message in the current flow.
• Record Variable: This variable is used in batch processing flows.
• Session Variable: This variable is used to set or remove variables associated with a specific message throughout the lifecycle.
MuleSoft has three different types of messages:
1) echo and log messages,
2) bridge messages,
3) build messages.
Mule ESB is a programming-oriented architecture. They can use the bus-like infrastructure to connect a variety of applications. Mule ESB supports HTTP, web services, JMS, and other protocols.
Fan-in aids in deciding whether or not to continue with flow execution. It should be used in conjunction with the fan out technique.
Fan out is a primitive that can be used to input messages once or multiple times through the output terminal. It can also be used as a hybrid of fan-out and fan-in techniques.
Mule ESB has the following features: • Provides SLA (Service Level Agreement) monitoring and API management.
• It has a drag-and-drop graphical design that is simple to use.
• Mule ESB has a lot of scalability.
• It allows developers to deploy cloud or on-premise applications in a single click.
The following are the fundamental principles of ESB integration:
•Transport: It negotiates between various formats such as JDBC, HTTP, JMS, and others.
•Transformation: It is responsible for transferring data between the various data formats required by the ESP connector.
•Non-functional consistency: This refers to the manner in which monitoring and security policies are implemented and should be consistent.
•Mediation entails providing various interfaces to:
1.Allows different channels to implement the same component.
2.Backward compatibility is ensured by supporting multiple service versions.
Mule Expression Language (MEL) is a lightweight mule-specific language for accessing and evaluating data in the payload.
•Rollback exception handling is one type of exception handling.
•The default handling of exceptions.
•Handling of exceptions.
•Handling of global exceptions
•Exceptions can be handled in a variety of ways.
The following are some of the benefits of using ESB: •It provides a high level of operational control from a web-based portal.
•ESB uses SaaS-based applications to provide a variety of connectivity options.
•It allows you to manage APIs and analytics.
•ESB has a number of bug-fixing and automated-testing capabilities.
•B2B (business to business) and EDI (Electronic Data Interchange) integration.
•A feature for batch integration using real-time integration methods.
The values are passed within the existing flow, either the requesting flow or the responding flow, using transient context.
Mule transformer is an event that refers to the org. mule .api .Mule Event library. The message is carried by this object along with the event. The Mule transformer’s main goal is to create a chain of transformers.
•Properties: similar to a SOAP (Simple Object Access Protocol) message, it contains the header or meta-information or header.
•Payload: The payload is the main data context carried by a message.
•Multiple name attachments: It allows for the simultaneous processing of multiple messages or payloads.
MuleSoft has six different flow processing strategies:
• A asynchronous flow processing queue
• Processing of custom flows
• Process per tread
• Flow processing in a queue
• Flow processing that isn’t clogged
• Flow processing in synchrony