Muleflowarchitecture

16
Mule Flow Architecture

Transcript of Muleflowarchitecture

Page 1: Muleflowarchitecture

Mule Flow Architecture

Page 2: Muleflowarchitecture

Introduction

• Mule application can return an altered or replacement message to the source of the original message

• Application can send the message in its original or altered form to one or more third parties

• Mule can decline to process the message if it has not met specific criteria

Page 3: Muleflowarchitecture

Beyond Linear Processing

• You can construct applications that utilize:– Various queue-and-thread arrangements to

maximize throughput– Transactionality or clustered nodes to maximize

reliability– Object stores to ensure data persistence– Batch jobs to process large and streaming

messages by breaking them up into records

Page 4: Muleflowarchitecture

Building Blocks in the Flow

• Building blocks fall into several functional categories, some of which are processing blocks that comprise several building blocks themselves

• The following sub-sections detail the various types of building blocks (and processing blocks) that can populate a Mule Flow

Page 5: Muleflowarchitecture

Message Sources

• Receives messages from one or more external sources, thus triggering a flow instance

• Message Received, Queued, Processed

Page 6: Muleflowarchitecture

Message Processors• Message processors advantages:

– Generally, they don’t have to be custom-coded– Multiple message processors can be combined into various structures

• You can assemble message processors in two distinct ways:– By arranging icons on the Studio canvas– By inserting XML code into the application configuration file

Page 7: Muleflowarchitecture

Connectors

• Help Mule applications to communicate with the outside world

• Connectors often serve as message sources, but they can also appear elsewhere in a flow

• Performing operations that require data exchange outside the flow, or defining a final destination of the message

Page 8: Muleflowarchitecture

Scopes

• Enhance, in a wide variety of ways• The functionality of other message processors

or functional groups of message processors known as Processing Blocks

Page 9: Muleflowarchitecture

Components

• Allow you to enhance a flow by attaching functionality such as logging, or displaying output

• Facilitate integration with existing systems by providing language-specific "shells" that make custom-coded business logic available to a Mule application

Page 10: Muleflowarchitecture

Transformers

• Enhance or alter the message payload, properties, variables, or attachments

Page 11: Muleflowarchitecture

Filters

• Singly and in combination, they determine whether a message can proceed through an application flow

Page 12: Muleflowarchitecture

Flow Controls

• Specify how messages get routed among the various Message Processors within a flow

• Process messages (that is, aggregate, split, or resequence) before routing them to other message processors

Page 13: Muleflowarchitecture

Error Handlers

• They specify various procedures for handling exceptions under various circumstances

Page 14: Muleflowarchitecture

Miscellaneous

• The Custom Business Event building block• Place between other building blocks to record

Key Performance Indicator (KPI) information• Monitor through the Mule Console

Page 15: Muleflowarchitecture

Configure message processors

• Completing text fields in the properties editor in Studio’s graphical interface

• Entering attribute values within the XML configuration code

Page 16: Muleflowarchitecture

Question and answer