[25th April 2021]
[Surat] MuleSoft Meetup Group
Caching Scope and Caching Strategy
Multibranch Pipeline For MuleSoft Application
2
Organizers
Jitendra Bafna
Senior Solution Architect
Capgemini
About the organizer:
➢ Working as Senior Solution Architect at Capgemini.
➢ Surat MuleSoft Meetup Leader and MuleSoft Ambassador.
➢ 12.5+ Years of Experience in Integrations and API Technologies.
➢ Certified MuleSoft Integration Architect and platform Architect.
3
Organizers
Nitish Jain
Consultant
IBM
About the organizer :
➢ Working as Consultant at IBM.
➢ Surat MuleSoft Meetup Leader.
➢ 2.5+ Years of Experience in Integrations and API Technologies.
➢ Certified MuleSoft Developer and Platform Architect.
4
Speakers
Parameshwari Kumar
Senior MuleSoft Developer
Capgemini Canada
About the speaker :
➢ 12+ years of IT Experience in Designing, Developing, and Supporting
Integration solutions using MuleSoft and Web Methods product suite
with domain experience in HealthCare, Logistics, Oil & Gas, Mining,
and Airline Industry. MuleSoft Certified Senior Programmer.
➢ MuleSoft Certified Integration Architect
CHEERS..!!
We have prizes to give away!
3 Winners a special prize is ready
5
A SHOW OF HANDS:
New Members With Us.!!
6
● Introduction
● Caching Scope and Caching Strategy
● Jenkins Multibranch Pipeline
● Trivia Quiz
Agenda
7
●About the organizer:
○ …
○ …
○ …
●About the sponsor:
○ …
○ …
○ …
Introductions
A SHOW OF HANDS:
Who is new to this Meetup?
subtitle
Caching Strategy in Mule - 4
9
● Storing and reusing data from memory so that future requests for that data can be served faster
What is Caching?
Client Application Database
Cache
10
● Caching is used for tasks like
○ Processing repeated requests for the same information.
○ Processing requests for information that involve large repeatable streams.
● Different ways of implementing caching in Mule
○ Using “HTTP Caching” policy in API Manager
○ Using “Cache Scope” in API code.
Caching
11
● The Cache scope is for storing and reusing frequently called data. You can use a Cache scope to reduce
the processing load on the Mule instance and to increase the speed of message processing within a
flow.
● The Cache scope caches repeatable streams. It does not cache nonrepeatable streams, which can be
read only once before they are lost.
● A caching strategy defines the actions a Cache scope takes when a message enters its sub-flow.
● You can configure the cache size, expiration time, and maximum allowed entries by setting these
values in the object store that you define or reference from the caching strategy.
Cache Scope & Caching Strategy
12
● Configure a Cache scope
● Set up a caching strategy
● Invalidate Cache Entries
Demo
subtitle
[Topic 2]
14
DevOps is a culture which promotes collaboration between Development and IT Operations Team to
deploy code to production faster in an automated & repeatable way.
Benefits of DevOps
● Releases/deployment can be done more frequently and quicker.
● Shorter mean time to repair.
● Cost reduction and reliable deployment.
● Fault isolation.
What is DevOps?
15
Continuous Integration is a development practice where developers checked in the code multiple times a
day in a shared repository. Each integration is verified by an automated build and automated unit testing.
Continuous Deployment is the ability to move the changes including features, bug fixes into the
production quicker.
Benefits of CI/CD
● Quicker releases
● Smaller code changes
● Faster Mean Time To Resolution (MTTR).
● Improved testability.
● Improved customer satisfaction.
What is CI/CD?
16
Jenkins is an open-source continuous integration server capable of orchestrating a chain of actions that
help to achieve the continuous integration process (and not only) in an automated fashion.
Jenkins is free and is entirely written in Java. Jenkins is a widely used application around the world that
has around 300k installations and growing day by day.
What is Jenkins?
17
Mule Maven Plugin provided functionality of deploying and undeploying application to on-premise,
CloudHub, cluster, or Anypoint runtime fabric. You need to add Mule Maven Plugin into your POM.xml of
your application.
Mule Maven Plugin
<plugin>
<groupId>org.mule.tools.maven</groupId>
<artifactId>mule-maven-plugin</artifactId>
<version>3.3.5</version>
</plugin>
Deploy Application: mvn clean package deploy -DmuleDeploy
Undeploy Application: mvn mule:undeploy
18
The Mule Maven plugin has the the capability to deploy an application to Anypoint CloudHub. We need to
understand some of the Mule Maven plugin parameters required for deploying an application to
CloudHub.
Mule Maven Plugin
PARAMETERS DESCRIPTION
uri
Your Anypoint Platform URI.
If not set, by default this value is set to https://anypoint.mulesoft.com
muleVersion
The Mule runtime engine version that will run in your CloudHub
instance.
applicationName The name of your application in CloudHub.
username Your Cloudhub username.
password Your Cloudhub password.
server Maven server with Anypoint Platform credentials.
workers
The number of workers.
By default, it is set to 1
workerType
Size of each worker.
The default value is MICRO.
environment The CloudHub environment to which you want to deploy.
businessGroup Business Group of Deployment.
Region Region where application needs to be deployed. E.g. us-east-1
19
A multi-branch pipeline is a concept of automatically creating Jenkins pipelines based on Git branches. It
can automatically discover new branches in the source control (Github) and automatically create a
pipeline for that branch.
Demonstration on how to configure Multibranch Pipeline.
What is Jenkins Multibranch Pipeline
Get ready to WIN a Special Gift from MuleSoft Community
Quiz Time
21
Share:
○ Tweet your pictures using the hashtag #SuratMuleSoftMeetup
○ Invite your network to join: https://meetups.mulesoft.com/surat/
Feedback:
○ Fill out the survey feedback and suggest topics for upcoming events
○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program
○ Reach out to either Jitendra Bafna or Nitish Jainto suggest topics for next Meetup
What’s next?
Introduce yourself to your neighbor
Networking time
Thank you

MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkins Multibranch Pipeline

  • 1.
    [25th April 2021] [Surat]MuleSoft Meetup Group Caching Scope and Caching Strategy Multibranch Pipeline For MuleSoft Application
  • 2.
    2 Organizers Jitendra Bafna Senior SolutionArchitect Capgemini About the organizer: ➢ Working as Senior Solution Architect at Capgemini. ➢ Surat MuleSoft Meetup Leader and MuleSoft Ambassador. ➢ 12.5+ Years of Experience in Integrations and API Technologies. ➢ Certified MuleSoft Integration Architect and platform Architect.
  • 3.
    3 Organizers Nitish Jain Consultant IBM About theorganizer : ➢ Working as Consultant at IBM. ➢ Surat MuleSoft Meetup Leader. ➢ 2.5+ Years of Experience in Integrations and API Technologies. ➢ Certified MuleSoft Developer and Platform Architect.
  • 4.
    4 Speakers Parameshwari Kumar Senior MuleSoftDeveloper Capgemini Canada About the speaker : ➢ 12+ years of IT Experience in Designing, Developing, and Supporting Integration solutions using MuleSoft and Web Methods product suite with domain experience in HealthCare, Logistics, Oil & Gas, Mining, and Airline Industry. MuleSoft Certified Senior Programmer. ➢ MuleSoft Certified Integration Architect
  • 5.
    CHEERS..!! We have prizesto give away! 3 Winners a special prize is ready 5 A SHOW OF HANDS: New Members With Us.!!
  • 6.
    6 ● Introduction ● CachingScope and Caching Strategy ● Jenkins Multibranch Pipeline ● Trivia Quiz Agenda
  • 7.
    7 ●About the organizer: ○… ○ … ○ … ●About the sponsor: ○ … ○ … ○ … Introductions A SHOW OF HANDS: Who is new to this Meetup?
  • 8.
  • 9.
    9 ● Storing andreusing data from memory so that future requests for that data can be served faster What is Caching? Client Application Database Cache
  • 10.
    10 ● Caching isused for tasks like ○ Processing repeated requests for the same information. ○ Processing requests for information that involve large repeatable streams. ● Different ways of implementing caching in Mule ○ Using “HTTP Caching” policy in API Manager ○ Using “Cache Scope” in API code. Caching
  • 11.
    11 ● The Cachescope is for storing and reusing frequently called data. You can use a Cache scope to reduce the processing load on the Mule instance and to increase the speed of message processing within a flow. ● The Cache scope caches repeatable streams. It does not cache nonrepeatable streams, which can be read only once before they are lost. ● A caching strategy defines the actions a Cache scope takes when a message enters its sub-flow. ● You can configure the cache size, expiration time, and maximum allowed entries by setting these values in the object store that you define or reference from the caching strategy. Cache Scope & Caching Strategy
  • 12.
    12 ● Configure aCache scope ● Set up a caching strategy ● Invalidate Cache Entries Demo
  • 13.
  • 14.
    14 DevOps is aculture which promotes collaboration between Development and IT Operations Team to deploy code to production faster in an automated & repeatable way. Benefits of DevOps ● Releases/deployment can be done more frequently and quicker. ● Shorter mean time to repair. ● Cost reduction and reliable deployment. ● Fault isolation. What is DevOps?
  • 15.
    15 Continuous Integration isa development practice where developers checked in the code multiple times a day in a shared repository. Each integration is verified by an automated build and automated unit testing. Continuous Deployment is the ability to move the changes including features, bug fixes into the production quicker. Benefits of CI/CD ● Quicker releases ● Smaller code changes ● Faster Mean Time To Resolution (MTTR). ● Improved testability. ● Improved customer satisfaction. What is CI/CD?
  • 16.
    16 Jenkins is anopen-source continuous integration server capable of orchestrating a chain of actions that help to achieve the continuous integration process (and not only) in an automated fashion. Jenkins is free and is entirely written in Java. Jenkins is a widely used application around the world that has around 300k installations and growing day by day. What is Jenkins?
  • 17.
    17 Mule Maven Pluginprovided functionality of deploying and undeploying application to on-premise, CloudHub, cluster, or Anypoint runtime fabric. You need to add Mule Maven Plugin into your POM.xml of your application. Mule Maven Plugin <plugin> <groupId>org.mule.tools.maven</groupId> <artifactId>mule-maven-plugin</artifactId> <version>3.3.5</version> </plugin> Deploy Application: mvn clean package deploy -DmuleDeploy Undeploy Application: mvn mule:undeploy
  • 18.
    18 The Mule Mavenplugin has the the capability to deploy an application to Anypoint CloudHub. We need to understand some of the Mule Maven plugin parameters required for deploying an application to CloudHub. Mule Maven Plugin PARAMETERS DESCRIPTION uri Your Anypoint Platform URI. If not set, by default this value is set to https://anypoint.mulesoft.com muleVersion The Mule runtime engine version that will run in your CloudHub instance. applicationName The name of your application in CloudHub. username Your Cloudhub username. password Your Cloudhub password. server Maven server with Anypoint Platform credentials. workers The number of workers. By default, it is set to 1 workerType Size of each worker. The default value is MICRO. environment The CloudHub environment to which you want to deploy. businessGroup Business Group of Deployment. Region Region where application needs to be deployed. E.g. us-east-1
  • 19.
    19 A multi-branch pipelineis a concept of automatically creating Jenkins pipelines based on Git branches. It can automatically discover new branches in the source control (Github) and automatically create a pipeline for that branch. Demonstration on how to configure Multibranch Pipeline. What is Jenkins Multibranch Pipeline
  • 20.
    Get ready toWIN a Special Gift from MuleSoft Community Quiz Time
  • 21.
    21 Share: ○ Tweet yourpictures using the hashtag #SuratMuleSoftMeetup ○ Invite your network to join: https://meetups.mulesoft.com/surat/ Feedback: ○ Fill out the survey feedback and suggest topics for upcoming events ○ Contact MuleSoft at meetups@mulesoft.com for ways to improve the program ○ Reach out to either Jitendra Bafna or Nitish Jainto suggest topics for next Meetup What’s next?
  • 22.
    Introduce yourself toyour neighbor Networking time
  • 23.