What is Anypoint Exchange
-A library of assets
-The central repo for building app network
-Ensures assets are published for reuse
What does Exchange contain
-Public assets provided by Mule
-Private content for the org, including thorough documentation
API Portal
-Auto-generated when a REST API is added to Exchange
-Has:
*Auto-generated API docs
*API Console for consuming and testing
*Auto-generated endpoint and mocking service
-Can be shared with internal and external users
REST Connectors in Exchange
-When RAML spec is added, a connector is created
*REST Connect: Connector can be used in Mule app to make calls to the API
Design Center: API Designer
Web app for designing, documenting and mocking APIs.
Design Center: Flow Designer
-Web app for building integration apps that connect systems and consume api
-Simplified capabilities from Anypoint Studio
-When an app is created, it is deployed to an run by CloudHub worker, a Mule hosted
runtime
Design Center: Anypoint Studio
Desktop IDE for implementing APIs and building integration apps
Mule Runtime
-Java-based ESB that allows developers to connect apps together to exchange data
-Decouples point-to-point as all other apps interface with the bus (Mule runtime)
-Can be deployed anywhere: realtime or batch
-Enforces policies for API governance?
Mule Application
-Receives events, processes them, and routes them to other endpoints
-Accepts and processes a Mule event through a series of processors plugged together
in a flow
-Consists of one or more flows (that can be connected together)
Mule 4 flow composition
-Mule event source (can be triggered)
-Mule event processors
*Transform, filter, enrich, etc...
CloudHub worker
-MuleSoft-hosted Mule runtime that runs Mule apps created in flow designer
-Each worker runs in a separate container and is deployed / monitored independently
, -Workers can be scaled for different memory and processing capabilities
-Workers in different environments (Design, Sandbox, Prod) and can be promoted
RAML
Restful API Modeling Language
Mocking Service
Allows live simulation of API. Run from the API console.
Mule event structure
Mule message: Data the passes through flows in
the app
Attributes:
-Metadata of the mule message.
-Contained in the message header
Payload: data that is to be processed
Variables: Metadata for the Mule event
MUnit
Mule app testing framework
Global configuration element
Reusable configuration for many operations
Defines a connection to a resource
DataWeave 2.0
Expression language in Mule to access, query, and transform Mule event data
Transform Message Component
-GUI wiht payload aware development
-Dataweave can be used for transform
APIkit
-Open-source toolkit that includes an Anypiont Studio plugin
-Generate an interface automatically from RAML
-Generates a routing flow and flows for each of resource/method pairs
-Add processors to hook up backend logic
https://docs.mulesoft.com/apikit/3.x/apikit-basic-anatomy
Anypoint Studio Anatomy
Package Explorer
Canvas
Palette
Console