Muleflowarchitecture
Transcript of Muleflowarchitecture
![Page 1: Muleflowarchitecture](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/1.jpg)
Mule Flow Architecture
![Page 2: Muleflowarchitecture](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/2.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/3.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/4.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/5.jpg)
Message Sources
• Receives messages from one or more external sources, thus triggering a flow instance
• Message Received, Queued, Processed
![Page 6: Muleflowarchitecture](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/6.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/7.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/8.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/9.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/10.jpg)
Transformers
• Enhance or alter the message payload, properties, variables, or attachments
![Page 11: Muleflowarchitecture](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/11.jpg)
Filters
• Singly and in combination, they determine whether a message can proceed through an application flow
![Page 12: Muleflowarchitecture](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/12.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/13.jpg)
Error Handlers
• They specify various procedures for handling exceptions under various circumstances
![Page 14: Muleflowarchitecture](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/14.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/15.jpg)
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](https://reader031.fdocuments.pl/reader031/viewer/2022022122/589a96781a28abae648b631d/html5/thumbnails/16.jpg)
Question and answer