Feb 27, 2022 4:00 PM IST
Hyderabad & Indore MuleSoft
Meetup Present’s
API LifeCycle Management
A recording of this meetup will be uploaded to events page within 72 hours.
Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab.
Make it more Interactive!!!
Share us the feedback! Rate this meetup session by filling feedback form at the end of the day.
We Love Feedbacks !!
Housekeeping
3
4
● Introductions
● API Lifecycle Management
❑ Design
❑ Exchange
❑ Development and Unit Testing
❑ Deployment
❑ API Manager
❑ Monitoring
❑ Exception Handling
● Networking time
Agenda
Introductions
●About the Meetup Leaders
5
A SHOW OF HANDS:
Who is new to this Meetup?
●About the Speaker :
Introductions
Soumya Rachuri,
MTS, Salesforce
6
Shivam Khandelwal,
MTS, Salesforce
Lifecycle API Management
Lifecycle of an application building block
On-premises/Hybrid
MuleSoft CloudHub 2.0 Anypoint Runtime Fabric
Mulesoft’s Anypoint Platform
Platform for Integration, APIs, and Automation
9
● Single solution for iPaaS
and a full life-cycle API
management
● Helps organizations
connect applications,
data and devices
● MuleSoft Anypoint
integration platform
ensures:
○ Accelerated
Delivery
○ Automated Security
○ Resilient
Operations
○ Future-proof
foundations
● Design: Identify process and business
requirements, create logical data model,
translate into logical service, API groupings
● Simulate: Model API resources, model API
operations/methods, model request/response
payload/codes
● Feedback: Mock up the API, publish interactive
console, create notebook use cases, receive
developer feedback
● Validate: Modify API design as appropriate
based on developer feedback, continue to
validate
Design
● Design Center provides the below tools:
● Create and document APIs using a
web-based interface
● Create API specification easily using
the context-aware shelf which auto-
populates with the appropriate methods,
resources, parameters, and security
components
● Use a mocking service to test and
validate APIs
● Publish an API specification to Anypoint
Exchange for use in API Manager,
Anypoint Studio
Design Center
Exchange
● Curated catalog of reusable assets
● Teams can publish, share, discover,
learn about, and reuse assets within
the organization
● Facilitates collaboration, boosts
productivity, and promotes standards
Demonstration
● Critical piece in enabling a next-
generation enterprise
● Key part is enabling the
connectivity of hundreds or
thousands of APIs to a backend
as well as to each other
● Two steps in implementation
stage are building and testing
Implementation
Build
● User-friendly IDE for designing and
testing Mule applications
● Has pre built modules for common
integration requirements
○ Includes modules for querying
backend systems, routing events,
business transformation logic, and
error handling
● Access to hundreds of prebuilt
connectors, templates, examples, and
APIs built by MuleSoft
● Scaffold APIs from OpenAPI and RAML
specifications with APIkit
Anypoint Studio
Test
● Powerful application testing
framework built into Anypoint Studio
which enables developers to create,
design and run unit tests on APIs and
integrations
● Fully integrated with Maven and
Surefire for integration with DevOps
processes of continuous delivery and
deployment
● Minimizes manual work with auto-
generated tests and coverage reports
● Provides coverage reports metrics on
percentage execution of Mule
application by MUnit tests
MUnits
Demonstration
● Critical to ensure application building
blocks are following best practices in
security and architectural governance
● Within this lifecycle stage are the following
steps:
○ Secure
○ Deploy
○ Monitor
○ Troubleshoot
○ Manage
Management
Runtime Manager
Deployment
● Interface to Anypoint Platform that
provides a unified view of
applications, servers, and APIs
● Can deploy, manage, and monitor
Mule applications in various
environments from one central
location, whether apps are deployed
in the cloud or on-premises
DevOps
Embracing modern DevOps-centric processes
and tooling is critical to reduce mean time-to-
production
Continuous integration and continuous
deployment (CI/CD) pipeline is a best practice
for DevOps teams.
CI/CD Process setup steps:
● Setup Jenkins and initialize a Git repo
● Configure the Mule Maven plugin
● Create Maven Settings File
● Create a Pipeline and Configure Jenkins
● Automate Git to trigger Jenkins jobs
Demonstration
API Manager
Govern and Secure
● Enables to manage, govern, and secure
APIs
● Apply pre-built or custom security policies
at runtime with no downtime
● Proxy existing services, group APIs
together to simplify consumption, and
secure APIs with a few clicks
● Improves the reliability, performance, and
overall value of APIs by analyzing and
detecting trends in performance, policy
violations, and user interactions.
Demonstration
Anypoint Monitoring
Monitor
● Monitor all APIs, integrations,
and microservices in real-time
● Speed up issue identification
and root-cause analysis with
customizable dashboards and
alerts, dependency mapping,
and instant access to historical
log data
● Drive business and technology
insights by measuring business
impact
Demonstration
Error Handling in Mule 4
Types of Errors
System Errors
Mule throws a system error when an exception occurs at the system level and no Mule event is
involved. A system error handler manages exceptions that occur:
● During application startup.
● When a connection to an external system fails.
Messaging Errors
Mule throws a messaging error (a Mule error) whenever a problem occurs within a flow of a Mule
app, where Mule events and the messages they contain are processed.
Error handling Scopes
Application Level Flow Level Processor Level
Handling Mule Messaging Errors
● Default Error Handler
● On Error Continue
● On Error Propagate
● Global Error handler
Default Error Handling for Messages
By default, unhandled messaging errors are logged and propagated. When a flow is processing a
Mule message that raises an error, the normal execution of the flow stops, and the process
transfers to the flow’s default error handler, which propagates the error.
On-Error Components
On Error Continue On Error Propagate
Demonstration
34
● Share:
○ Tweet using the hashtag #MuleSoftMeetups #MuleSoftCommunity
○ Join Hyderabad Group: https://meetups.mulesoft.com/hyderabad
● Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
What’s next?
Quiz Time
36
Join Kahoot
Q&A
Introduce yourself to your co-muley
Networking time
Thank You

27th Hyderabad MuleSoft Meetup

  • 2.
    Feb 27, 20224:00 PM IST Hyderabad & Indore MuleSoft Meetup Present’s API LifeCycle Management
  • 3.
    A recording ofthis meetup will be uploaded to events page within 72 hours. Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab. Make it more Interactive!!! Share us the feedback! Rate this meetup session by filling feedback form at the end of the day. We Love Feedbacks !! Housekeeping 3
  • 4.
    4 ● Introductions ● APILifecycle Management ❑ Design ❑ Exchange ❑ Development and Unit Testing ❑ Deployment ❑ API Manager ❑ Monitoring ❑ Exception Handling ● Networking time Agenda
  • 5.
    Introductions ●About the MeetupLeaders 5 A SHOW OF HANDS: Who is new to this Meetup?
  • 6.
    ●About the Speaker: Introductions Soumya Rachuri, MTS, Salesforce 6 Shivam Khandelwal, MTS, Salesforce
  • 7.
  • 8.
    Lifecycle of anapplication building block On-premises/Hybrid MuleSoft CloudHub 2.0 Anypoint Runtime Fabric
  • 9.
    Mulesoft’s Anypoint Platform Platformfor Integration, APIs, and Automation 9 ● Single solution for iPaaS and a full life-cycle API management ● Helps organizations connect applications, data and devices ● MuleSoft Anypoint integration platform ensures: ○ Accelerated Delivery ○ Automated Security ○ Resilient Operations ○ Future-proof foundations
  • 10.
    ● Design: Identifyprocess and business requirements, create logical data model, translate into logical service, API groupings ● Simulate: Model API resources, model API operations/methods, model request/response payload/codes ● Feedback: Mock up the API, publish interactive console, create notebook use cases, receive developer feedback ● Validate: Modify API design as appropriate based on developer feedback, continue to validate Design
  • 11.
    ● Design Centerprovides the below tools: ● Create and document APIs using a web-based interface ● Create API specification easily using the context-aware shelf which auto- populates with the appropriate methods, resources, parameters, and security components ● Use a mocking service to test and validate APIs ● Publish an API specification to Anypoint Exchange for use in API Manager, Anypoint Studio Design Center
  • 12.
    Exchange ● Curated catalogof reusable assets ● Teams can publish, share, discover, learn about, and reuse assets within the organization ● Facilitates collaboration, boosts productivity, and promotes standards
  • 13.
  • 14.
    ● Critical piecein enabling a next- generation enterprise ● Key part is enabling the connectivity of hundreds or thousands of APIs to a backend as well as to each other ● Two steps in implementation stage are building and testing Implementation
  • 15.
    Build ● User-friendly IDEfor designing and testing Mule applications ● Has pre built modules for common integration requirements ○ Includes modules for querying backend systems, routing events, business transformation logic, and error handling ● Access to hundreds of prebuilt connectors, templates, examples, and APIs built by MuleSoft ● Scaffold APIs from OpenAPI and RAML specifications with APIkit Anypoint Studio
  • 16.
    Test ● Powerful applicationtesting framework built into Anypoint Studio which enables developers to create, design and run unit tests on APIs and integrations ● Fully integrated with Maven and Surefire for integration with DevOps processes of continuous delivery and deployment ● Minimizes manual work with auto- generated tests and coverage reports ● Provides coverage reports metrics on percentage execution of Mule application by MUnit tests MUnits
  • 17.
  • 18.
    ● Critical toensure application building blocks are following best practices in security and architectural governance ● Within this lifecycle stage are the following steps: ○ Secure ○ Deploy ○ Monitor ○ Troubleshoot ○ Manage Management
  • 19.
    Runtime Manager Deployment ● Interfaceto Anypoint Platform that provides a unified view of applications, servers, and APIs ● Can deploy, manage, and monitor Mule applications in various environments from one central location, whether apps are deployed in the cloud or on-premises
  • 20.
    DevOps Embracing modern DevOps-centricprocesses and tooling is critical to reduce mean time-to- production Continuous integration and continuous deployment (CI/CD) pipeline is a best practice for DevOps teams. CI/CD Process setup steps: ● Setup Jenkins and initialize a Git repo ● Configure the Mule Maven plugin ● Create Maven Settings File ● Create a Pipeline and Configure Jenkins ● Automate Git to trigger Jenkins jobs
  • 21.
  • 22.
    API Manager Govern andSecure ● Enables to manage, govern, and secure APIs ● Apply pre-built or custom security policies at runtime with no downtime ● Proxy existing services, group APIs together to simplify consumption, and secure APIs with a few clicks ● Improves the reliability, performance, and overall value of APIs by analyzing and detecting trends in performance, policy violations, and user interactions.
  • 23.
  • 24.
    Anypoint Monitoring Monitor ● Monitorall APIs, integrations, and microservices in real-time ● Speed up issue identification and root-cause analysis with customizable dashboards and alerts, dependency mapping, and instant access to historical log data ● Drive business and technology insights by measuring business impact
  • 25.
  • 26.
  • 27.
    Types of Errors SystemErrors Mule throws a system error when an exception occurs at the system level and no Mule event is involved. A system error handler manages exceptions that occur: ● During application startup. ● When a connection to an external system fails. Messaging Errors Mule throws a messaging error (a Mule error) whenever a problem occurs within a flow of a Mule app, where Mule events and the messages they contain are processed.
  • 28.
    Error handling Scopes ApplicationLevel Flow Level Processor Level
  • 29.
    Handling Mule MessagingErrors ● Default Error Handler ● On Error Continue ● On Error Propagate ● Global Error handler
  • 30.
    Default Error Handlingfor Messages By default, unhandled messaging errors are logged and propagated. When a flow is processing a Mule message that raises an error, the normal execution of the flow stops, and the process transfers to the flow’s default error handler, which propagates the error.
  • 31.
    On-Error Components On ErrorContinue On Error Propagate
  • 32.
  • 33.
    34 ● Share: ○ Tweetusing the hashtag #MuleSoftMeetups #MuleSoftCommunity ○ Join Hyderabad Group: https://meetups.mulesoft.com/hyderabad ● Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program What’s next?
  • 34.
  • 35.
  • 36.
  • 37.
    Introduce yourself toyour co-muley Networking time
  • 38.