SlideShare a Scribd company logo
1 of 47
6th March 2021
Bangalore Mulesoft Meetup Group
All contents © MuleSoft Inc.
Agenda
2
• Introduction and Networking
• Analyze and Resolve Heap Memory issues
• Building Custom Connector in Mule 4
• Q&A
• Trivia Quiz with Exciting Prizes
• Networking time
• Wrap-up & agenda for the next meetup
All contents © MuleSoft Inc. 3
06:00PM - 06:10PM : Short Introduction
06:10PM - 06:50PM : Analyze and Resolve Heap Memory issues
06:50PM - 07:00PM : Q&A Session
07:00PM - 07:40PM : Custom Connector Development
07:40PM - 07:50PM : Q&A Session
07:50PM - 08:00PM : Trivia Quiz
08:00PM – 08:15PM : Wrap up the Meetup and Next Meetup announcement
Agenda
All contents © MuleSoft Inc.
Introductions
4
• About the organizers:
• About the Speakers:
A SHOW OF HANDS:
Who is new to this MeetUp?
All contents © MuleSoft Inc.
CHEERS..!!
5
We have prizes to give away!
As a Token for your Positive Participation and Enthusiasm
A SHOW OF HANDS:
New Members With Us.!!
Performance Tuning –
Heap Memory
Rectifying memory leak using Jmeter & YourKit
All contents © MuleSoft Inc.
Background
7
● Terminology used for heap memory
Heap memory, GC, Memory leak, Heap dump
● Problem statement
Symptom – Heap memory keeps on increasing and never goes down,
ultimately resulting in server shutdown
Cause - connectors used try-catch inside scatter-gather without error
handler inside catch block
Solution - tools used to rectify JMeter and YourKit
All contents © MuleSoft Inc.
Sample Design
8
Proof Of Concept
All contents © MuleSoft Inc.
Quiz
15
Note : This is not Trivia Quiz.
All contents © MuleSoft Inc.
Quiz Question 1
11
• 1. Which tool can be used to analyze
heap dump?
Options
1. Jmeter
2. Postman
3. YourKit
4. SOAP UI
All contents © MuleSoft Inc.
Quiz Answer 1
12
All contents © MuleSoft Inc.
Quiz Question 2
13
• Which of the following is not related
with heap memory ?
Options
1. GC
2. CPU USAGE
3. HEAP DUMP
4. MEMORY LEAK
All contents © MuleSoft Inc.
Quiz Answer 2
14
All contents © MuleSoft Inc.
Questions??
Custom Connector
Using Mule SDK
All contents © MuleSoft Inc.
Custom Connector
17
Intro
 Mulesoft has a range of inbuilt connectors, You can use this connector as
per the Requirement.
 you can develop your own connector using the new Mule SDK platform
for Mule Runtime 4. This is different from the options using Mule
runtime 3 where Mule Connector Devkit was needed
All contents © MuleSoft Inc.
Custom Connector
18
Pros of Custom Connectors
 Could be reused at all integration points to that system
 Hide the integration complexity
 Could connect to any API or protocol
All contents © MuleSoft Inc.
Custom Connector
19
LifeCycle of Custom Connectors
 Setting up a Connector Project
 Writing Connector Code
 Writing Connector Tests
 Documenting a Connector Project
 Packaging a Connector
All contents © MuleSoft Inc.
Custom Connector
20
Prerequisites
 Java JDK Version 8
 Anypoint Studio 7
 Apache Maven 3.3.9 or higher
All contents © MuleSoft Inc.
Custom Connector
21
Prerequisites
 Java JDK Version 8
 Anypoint Studio 7
 Apache Maven 3.3.9 or higher
All contents © MuleSoft Inc.
Custom Connector
22
Create Custom Connector
1. Generate the app from an archetype
a. Go to the directory where you want to create the connector.
b. Execute the following command to create the basic project structure.
mvn org.mule.extensions:mule-extensions-archetype-
maven-plugin:generate
All contents © MuleSoft Inc.
Custom Connector
23
Create Custom Connector
2. Complete the configuration through the console
Enter the name of the extension: Demo Connector
Enter the extension's groupId: com.meetup.muleConnector
Enter the extension's artifactId: mule-demo-connector
Enter the extension's version: 1.0.0
Enter the extension's main package: org.mule.extension.weather
All contents © MuleSoft Inc.
Custom Connector
24
Create Custom Connector
3. Clean the Package
mvn clean
All contents © MuleSoft Inc.
Custom Connector
25
Create Custom Connector
3. Clean the Package
mvn clean
.4. Open the archType Project in Anypoint Studio
Go to Anypoint studio, File > Open Project from File System, and select the
project directory you have created in the last step. Click Finish.
All contents © MuleSoft Inc.
Custom Connector
26
Create Custom Connector
5. Once we open this project in Anypoint studio there will be number of classes, which
will be annotated with Mule SDK annotations.
a. <connector-name>Extension.java : This class would identify the various
properties of your connector.
Note that in Mule 4 a connector is nothing but an extension. This class would identify
which is the configuration class, which are the Operation classes etc.
b . <connector-name>Configuration.java : This would contain all the
information that you want from the global configuration of the Connector.
All contents © MuleSoft Inc.
Custom Connector
27
Create Custom Connector
c. <connector-name>Connection.java : The connection class is responsible for
handling the connection and in our case, most of the actual coding will be here.
d. <connector-name>ConnectionProvider.java : This class is used to manage
and provide the connection with the target system.
The connection provider must implement once of the connection provide available in
mule. The options are PoolingConnectionProvider, CachedConnectionProvider and
ConnectionProvider.
e. <connector-name>Operations.java : This would be the class where you
would define all the necessary operations. There can be multiple operation class files.
All contents © MuleSoft Inc.
Custom Connector
28
Create Custom Connector
6. Install Connector : We can install this connector into local maven repository
using the command:
mvn clean install
Skip the Unit Tests
mvn clean install -DskipTests
All contents © MuleSoft Inc.
Custom Connector
29
Create Custom Connector
7. Add Dependency in Project : You can use this connector in your Mule 4
application by adding the following dependency in pom.xml
<dependency>
<groupId> com.meetup.muleConnector</groupId>
<artifactId> mule-demo-connector</artifactId>
<version>1.0.0</version>
<classifier>mule-plugin</classifier>
</dependency>
All contents © MuleSoft Inc.
Custom Connector
30
Create Custom Connector
8. Use in Project : Now let us use the connector in the Mulesoft App
All contents © MuleSoft Inc.
Custom Connector References
31
References
 https://docs.mulesoft.com/connector-devkit/3.9/creating-an-anypoint-
connector-project
 https://docs.mulesoft.com/mule-sdk/1.1/
 https://docs.mulesoft.com/mule-sdk/1.1/getting-started
 https://docs.mulesoft.com/connector-devkit/3.9/anypoint-connector-development
 https://medium.com/the-mule-blog/mulesoft-making-of-custom-connector-in-
mule-4-f1abcf5e532c
 https://www.whishworks.com/blog/mulesoft/custom-connectors-in-mulesoft/
All contents © MuleSoft Inc.
Questions??
All contents © MuleSoft Inc.
Quiz
15
Note : This is not Trivia Quiz.
All contents © MuleSoft Inc.
Quiz Question 1
34
1. What is the use of <connector-name>Extension Class ?
All contents © MuleSoft Inc.
Quiz Answer 1
35
All contents © MuleSoft Inc.
Quiz Question 2
36
2. How to Create Connector Configuration ?
All contents © MuleSoft Inc.
Quiz Answer 2
37
All contents © MuleSoft Inc.
Trivia Quiz
15
All contents © MuleSoft Inc.
Trivia Question 1
39
1. Which object causes the memory leak ? And how to preserve the
memory leak ?
All contents © MuleSoft Inc.
Trivia Answer 1
40
All contents © MuleSoft Inc.
Trivia Question 2
41
2. How to create multiple Operation in one Custom Connector and in which
configuration File we must add the Functions?
All contents © MuleSoft Inc.
Trivia Answer 2
42
All contents © MuleSoft Inc.
Trivia Question 3
43
3. How to Install the Custom Connector in Anypoint Studio ? And In which file we
have to provide the Path of the Connector Icon Image ?
All contents © MuleSoft Inc.
Trivia Answer 3
44
See you next time
Please send topic suggestions to the organizers
Next Meet up: April 2021
Networking time
Engage yourself in interesting discussions with your neighbors!
Thank You !!

More Related Content

What's hot

Metadata definition between flows on Studio 7 : MuleSoft Virtual Muleys Meetups
Metadata definition between flows on Studio 7  : MuleSoft Virtual Muleys MeetupsMetadata definition between flows on Studio 7  : MuleSoft Virtual Muleys Meetups
Metadata definition between flows on Studio 7 : MuleSoft Virtual Muleys MeetupsAngel Alberici
 
MuleSoft Meetup Bangalore #12
MuleSoft Meetup Bangalore #12MuleSoft Meetup Bangalore #12
MuleSoft Meetup Bangalore #12Nagaraju K R
 
Mumbai MuleSoft Meetup #17 - GraphQL
Mumbai MuleSoft Meetup #17 - GraphQLMumbai MuleSoft Meetup #17 - GraphQL
Mumbai MuleSoft Meetup #17 - GraphQLAkshata Sawant
 
MuleSoft Meetup Bangalore - 26 May 2018
MuleSoft Meetup Bangalore - 26 May 2018MuleSoft Meetup Bangalore - 26 May 2018
MuleSoft Meetup Bangalore - 26 May 2018Srilatha Kante
 
MuleSoft Kochi Meetup #3– Integration with Web Sockets
 MuleSoft Kochi Meetup #3– Integration with Web Sockets MuleSoft Kochi Meetup #3– Integration with Web Sockets
MuleSoft Kochi Meetup #3– Integration with Web Socketssumitahuja94
 
How Secure is Your API?
How Secure is Your API?How Secure is Your API?
How Secure is Your API?Mary Joy Sabal
 
#3 calicut meetup - understanding slb, dlb and web sockets
#3   calicut meetup - understanding slb, dlb and web sockets#3   calicut meetup - understanding slb, dlb and web sockets
#3 calicut meetup - understanding slb, dlb and web socketsJohnMathewPhilip
 
Ahmadabad mule soft_meetup_6march2021_azure_CICD
Ahmadabad mule soft_meetup_6march2021_azure_CICDAhmadabad mule soft_meetup_6march2021_azure_CICD
Ahmadabad mule soft_meetup_6march2021_azure_CICDShekh Muenuddeen
 
Meetup_Bangalore_Rajesh
Meetup_Bangalore_RajeshMeetup_Bangalore_Rajesh
Meetup_Bangalore_RajeshD.Rajesh Kumar
 
Rtf externalize tls MuleSoft meetup
Rtf externalize tls MuleSoft meetupRtf externalize tls MuleSoft meetup
Rtf externalize tls MuleSoft meetupSandeep Deshmukh
 
MuleSoft CloudHub API Versioning
MuleSoft CloudHub API VersioningMuleSoft CloudHub API Versioning
MuleSoft CloudHub API VersioningPatryk Bandurski
 
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoft
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoftBhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoft
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoftAnkitaJaggi1
 
Indianapolis mulesoft meetup_sep_11_2021
Indianapolis mulesoft meetup_sep_11_2021Indianapolis mulesoft meetup_sep_11_2021
Indianapolis mulesoft meetup_sep_11_2021ikram_ahamed
 
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...Jitendra Bafna
 
Custom MuleSoft connector using Java SDK
Custom MuleSoft connector using Java SDKCustom MuleSoft connector using Java SDK
Custom MuleSoft connector using Java SDKAmit Singh
 
MuleSoft Meetup Virtual_ 2_Charlotte
MuleSoft Meetup Virtual_ 2_CharlotteMuleSoft Meetup Virtual_ 2_Charlotte
MuleSoft Meetup Virtual_ 2_CharlotteSubhash Patel
 
Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4Manish Kumar Yadav
 
mulesoft meetup @ bangalore
mulesoft meetup @ bangaloremulesoft meetup @ bangalore
mulesoft meetup @ bangaloreD.Rajesh Kumar
 
Nagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using JenkinsNagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using Jenkinspqrs1234
 
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...Angel Alberici
 

What's hot (20)

Metadata definition between flows on Studio 7 : MuleSoft Virtual Muleys Meetups
Metadata definition between flows on Studio 7  : MuleSoft Virtual Muleys MeetupsMetadata definition between flows on Studio 7  : MuleSoft Virtual Muleys Meetups
Metadata definition between flows on Studio 7 : MuleSoft Virtual Muleys Meetups
 
MuleSoft Meetup Bangalore #12
MuleSoft Meetup Bangalore #12MuleSoft Meetup Bangalore #12
MuleSoft Meetup Bangalore #12
 
Mumbai MuleSoft Meetup #17 - GraphQL
Mumbai MuleSoft Meetup #17 - GraphQLMumbai MuleSoft Meetup #17 - GraphQL
Mumbai MuleSoft Meetup #17 - GraphQL
 
MuleSoft Meetup Bangalore - 26 May 2018
MuleSoft Meetup Bangalore - 26 May 2018MuleSoft Meetup Bangalore - 26 May 2018
MuleSoft Meetup Bangalore - 26 May 2018
 
MuleSoft Kochi Meetup #3– Integration with Web Sockets
 MuleSoft Kochi Meetup #3– Integration with Web Sockets MuleSoft Kochi Meetup #3– Integration with Web Sockets
MuleSoft Kochi Meetup #3– Integration with Web Sockets
 
How Secure is Your API?
How Secure is Your API?How Secure is Your API?
How Secure is Your API?
 
#3 calicut meetup - understanding slb, dlb and web sockets
#3   calicut meetup - understanding slb, dlb and web sockets#3   calicut meetup - understanding slb, dlb and web sockets
#3 calicut meetup - understanding slb, dlb and web sockets
 
Ahmadabad mule soft_meetup_6march2021_azure_CICD
Ahmadabad mule soft_meetup_6march2021_azure_CICDAhmadabad mule soft_meetup_6march2021_azure_CICD
Ahmadabad mule soft_meetup_6march2021_azure_CICD
 
Meetup_Bangalore_Rajesh
Meetup_Bangalore_RajeshMeetup_Bangalore_Rajesh
Meetup_Bangalore_Rajesh
 
Rtf externalize tls MuleSoft meetup
Rtf externalize tls MuleSoft meetupRtf externalize tls MuleSoft meetup
Rtf externalize tls MuleSoft meetup
 
MuleSoft CloudHub API Versioning
MuleSoft CloudHub API VersioningMuleSoft CloudHub API Versioning
MuleSoft CloudHub API Versioning
 
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoft
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoftBhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoft
Bhopal mule soft_meetup_17july2021_azuredevopsintegration_mulesoft
 
Indianapolis mulesoft meetup_sep_11_2021
Indianapolis mulesoft meetup_sep_11_2021Indianapolis mulesoft meetup_sep_11_2021
Indianapolis mulesoft meetup_sep_11_2021
 
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
MuleSoft Surat Virtual Meetup#15 - Caching Scope, Caching Strategy and Jenkin...
 
Custom MuleSoft connector using Java SDK
Custom MuleSoft connector using Java SDKCustom MuleSoft connector using Java SDK
Custom MuleSoft connector using Java SDK
 
MuleSoft Meetup Virtual_ 2_Charlotte
MuleSoft Meetup Virtual_ 2_CharlotteMuleSoft Meetup Virtual_ 2_Charlotte
MuleSoft Meetup Virtual_ 2_Charlotte
 
Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4Solace PubSub+ MuleSoft Connector for Mule 4
Solace PubSub+ MuleSoft Connector for Mule 4
 
mulesoft meetup @ bangalore
mulesoft meetup @ bangaloremulesoft meetup @ bangalore
mulesoft meetup @ bangalore
 
Nagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using JenkinsNagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using Jenkins
 
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
 

Similar to MuleSoft Meetup Bangalore - March 6 2021

Mulesoft Meetup Bangalore - 6th March 2021
Mulesoft Meetup Bangalore -  6th March 2021Mulesoft Meetup Bangalore -  6th March 2021
Mulesoft Meetup Bangalore - 6th March 2021Gaurav Sethi
 
MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019Subhash Patel
 
Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connectorSupriya Pawar
 
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptxMuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptxAnuragSharma900
 
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...Jitendra Bafna
 
Mule anypoint connector
Mule  anypoint connectorMule  anypoint connector
Mule anypoint connectorD.Rajesh Kumar
 
Mule anypoint connector dev kit
Mule  anypoint connector dev kitMule  anypoint connector dev kit
Mule anypoint connector dev kitD.Rajesh Kumar
 
Warsaw MuleSoft Meetup #6 - CI/CD
Warsaw MuleSoft Meetup  #6 - CI/CDWarsaw MuleSoft Meetup  #6 - CI/CD
Warsaw MuleSoft Meetup #6 - CI/CDPatryk Bandurski
 
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF OperationsMuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF OperationsJulian Douch
 
How to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
How to Expand Anypoint Platform's Capabilities by Developing Custom ConnectorsHow to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
How to Expand Anypoint Platform's Capabilities by Developing Custom ConnectorsAaronLieberman5
 
Custom Connector development using Mule SDK
Custom Connector development using Mule SDKCustom Connector development using Mule SDK
Custom Connector development using Mule SDKNavin Kare
 
Connect the Dots: Logging and Custom Connectors
Connect the Dots: Logging and Custom ConnectorsConnect the Dots: Logging and Custom Connectors
Connect the Dots: Logging and Custom ConnectorsAaronLieberman5
 
Manila MuleSoft Meetup - September 2018
Manila MuleSoft Meetup - September 2018Manila MuleSoft Meetup - September 2018
Manila MuleSoft Meetup - September 2018Ryan Anthony Andal
 
First Caracas MuleSoft Meetup Slides
First Caracas MuleSoft Meetup SlidesFirst Caracas MuleSoft Meetup Slides
First Caracas MuleSoft Meetup SlidesFernando Silva
 
How to build custom connectors in MuleSOft
How to build custom connectors in MuleSOftHow to build custom connectors in MuleSOft
How to build custom connectors in MuleSOftSanthosh Ramagiri
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in muleAchyuta Lakshmi
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in muleAchyuta Lakshmi
 

Similar to MuleSoft Meetup Bangalore - March 6 2021 (20)

Mulesoft Meetup Bangalore - 6th March 2021
Mulesoft Meetup Bangalore -  6th March 2021Mulesoft Meetup Bangalore -  6th March 2021
Mulesoft Meetup Bangalore - 6th March 2021
 
MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019
 
Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connector
 
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptxMuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
MuleSoft_Meetup_Exchange-Nexus-Publish_Asserts.pptx
 
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
 
Building APIs with Mule and Spring Boot
Building APIs with Mule and Spring BootBuilding APIs with Mule and Spring Boot
Building APIs with Mule and Spring Boot
 
Mule tcat server
Mule  tcat serverMule  tcat server
Mule tcat server
 
Mule anypoint connector
Mule  anypoint connectorMule  anypoint connector
Mule anypoint connector
 
Mule anypoint connector dev kit
Mule  anypoint connector dev kitMule  anypoint connector dev kit
Mule anypoint connector dev kit
 
Warsaw MuleSoft Meetup #6 - CI/CD
Warsaw MuleSoft Meetup  #6 - CI/CDWarsaw MuleSoft Meetup  #6 - CI/CD
Warsaw MuleSoft Meetup #6 - CI/CD
 
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF OperationsMuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
 
Cracow MuleSoft Meetup #1
Cracow MuleSoft Meetup #1Cracow MuleSoft Meetup #1
Cracow MuleSoft Meetup #1
 
How to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
How to Expand Anypoint Platform's Capabilities by Developing Custom ConnectorsHow to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
How to Expand Anypoint Platform's Capabilities by Developing Custom Connectors
 
Custom Connector development using Mule SDK
Custom Connector development using Mule SDKCustom Connector development using Mule SDK
Custom Connector development using Mule SDK
 
Connect the Dots: Logging and Custom Connectors
Connect the Dots: Logging and Custom ConnectorsConnect the Dots: Logging and Custom Connectors
Connect the Dots: Logging and Custom Connectors
 
Manila MuleSoft Meetup - September 2018
Manila MuleSoft Meetup - September 2018Manila MuleSoft Meetup - September 2018
Manila MuleSoft Meetup - September 2018
 
First Caracas MuleSoft Meetup Slides
First Caracas MuleSoft Meetup SlidesFirst Caracas MuleSoft Meetup Slides
First Caracas MuleSoft Meetup Slides
 
How to build custom connectors in MuleSOft
How to build custom connectors in MuleSOftHow to build custom connectors in MuleSOft
How to build custom connectors in MuleSOft
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

MuleSoft Meetup Bangalore - March 6 2021

  • 1. 6th March 2021 Bangalore Mulesoft Meetup Group
  • 2. All contents © MuleSoft Inc. Agenda 2 • Introduction and Networking • Analyze and Resolve Heap Memory issues • Building Custom Connector in Mule 4 • Q&A • Trivia Quiz with Exciting Prizes • Networking time • Wrap-up & agenda for the next meetup
  • 3. All contents © MuleSoft Inc. 3 06:00PM - 06:10PM : Short Introduction 06:10PM - 06:50PM : Analyze and Resolve Heap Memory issues 06:50PM - 07:00PM : Q&A Session 07:00PM - 07:40PM : Custom Connector Development 07:40PM - 07:50PM : Q&A Session 07:50PM - 08:00PM : Trivia Quiz 08:00PM – 08:15PM : Wrap up the Meetup and Next Meetup announcement Agenda
  • 4. All contents © MuleSoft Inc. Introductions 4 • About the organizers: • About the Speakers: A SHOW OF HANDS: Who is new to this MeetUp?
  • 5. All contents © MuleSoft Inc. CHEERS..!! 5 We have prizes to give away! As a Token for your Positive Participation and Enthusiasm A SHOW OF HANDS: New Members With Us.!!
  • 6. Performance Tuning – Heap Memory Rectifying memory leak using Jmeter & YourKit
  • 7. All contents © MuleSoft Inc. Background 7 ● Terminology used for heap memory Heap memory, GC, Memory leak, Heap dump ● Problem statement Symptom – Heap memory keeps on increasing and never goes down, ultimately resulting in server shutdown Cause - connectors used try-catch inside scatter-gather without error handler inside catch block Solution - tools used to rectify JMeter and YourKit
  • 8. All contents © MuleSoft Inc. Sample Design 8
  • 10. All contents © MuleSoft Inc. Quiz 15 Note : This is not Trivia Quiz.
  • 11. All contents © MuleSoft Inc. Quiz Question 1 11 • 1. Which tool can be used to analyze heap dump? Options 1. Jmeter 2. Postman 3. YourKit 4. SOAP UI
  • 12. All contents © MuleSoft Inc. Quiz Answer 1 12
  • 13. All contents © MuleSoft Inc. Quiz Question 2 13 • Which of the following is not related with heap memory ? Options 1. GC 2. CPU USAGE 3. HEAP DUMP 4. MEMORY LEAK
  • 14. All contents © MuleSoft Inc. Quiz Answer 2 14
  • 15. All contents © MuleSoft Inc. Questions??
  • 17. All contents © MuleSoft Inc. Custom Connector 17 Intro  Mulesoft has a range of inbuilt connectors, You can use this connector as per the Requirement.  you can develop your own connector using the new Mule SDK platform for Mule Runtime 4. This is different from the options using Mule runtime 3 where Mule Connector Devkit was needed
  • 18. All contents © MuleSoft Inc. Custom Connector 18 Pros of Custom Connectors  Could be reused at all integration points to that system  Hide the integration complexity  Could connect to any API or protocol
  • 19. All contents © MuleSoft Inc. Custom Connector 19 LifeCycle of Custom Connectors  Setting up a Connector Project  Writing Connector Code  Writing Connector Tests  Documenting a Connector Project  Packaging a Connector
  • 20. All contents © MuleSoft Inc. Custom Connector 20 Prerequisites  Java JDK Version 8  Anypoint Studio 7  Apache Maven 3.3.9 or higher
  • 21. All contents © MuleSoft Inc. Custom Connector 21 Prerequisites  Java JDK Version 8  Anypoint Studio 7  Apache Maven 3.3.9 or higher
  • 22. All contents © MuleSoft Inc. Custom Connector 22 Create Custom Connector 1. Generate the app from an archetype a. Go to the directory where you want to create the connector. b. Execute the following command to create the basic project structure. mvn org.mule.extensions:mule-extensions-archetype- maven-plugin:generate
  • 23. All contents © MuleSoft Inc. Custom Connector 23 Create Custom Connector 2. Complete the configuration through the console Enter the name of the extension: Demo Connector Enter the extension's groupId: com.meetup.muleConnector Enter the extension's artifactId: mule-demo-connector Enter the extension's version: 1.0.0 Enter the extension's main package: org.mule.extension.weather
  • 24. All contents © MuleSoft Inc. Custom Connector 24 Create Custom Connector 3. Clean the Package mvn clean
  • 25. All contents © MuleSoft Inc. Custom Connector 25 Create Custom Connector 3. Clean the Package mvn clean .4. Open the archType Project in Anypoint Studio Go to Anypoint studio, File > Open Project from File System, and select the project directory you have created in the last step. Click Finish.
  • 26. All contents © MuleSoft Inc. Custom Connector 26 Create Custom Connector 5. Once we open this project in Anypoint studio there will be number of classes, which will be annotated with Mule SDK annotations. a. <connector-name>Extension.java : This class would identify the various properties of your connector. Note that in Mule 4 a connector is nothing but an extension. This class would identify which is the configuration class, which are the Operation classes etc. b . <connector-name>Configuration.java : This would contain all the information that you want from the global configuration of the Connector.
  • 27. All contents © MuleSoft Inc. Custom Connector 27 Create Custom Connector c. <connector-name>Connection.java : The connection class is responsible for handling the connection and in our case, most of the actual coding will be here. d. <connector-name>ConnectionProvider.java : This class is used to manage and provide the connection with the target system. The connection provider must implement once of the connection provide available in mule. The options are PoolingConnectionProvider, CachedConnectionProvider and ConnectionProvider. e. <connector-name>Operations.java : This would be the class where you would define all the necessary operations. There can be multiple operation class files.
  • 28. All contents © MuleSoft Inc. Custom Connector 28 Create Custom Connector 6. Install Connector : We can install this connector into local maven repository using the command: mvn clean install Skip the Unit Tests mvn clean install -DskipTests
  • 29. All contents © MuleSoft Inc. Custom Connector 29 Create Custom Connector 7. Add Dependency in Project : You can use this connector in your Mule 4 application by adding the following dependency in pom.xml <dependency> <groupId> com.meetup.muleConnector</groupId> <artifactId> mule-demo-connector</artifactId> <version>1.0.0</version> <classifier>mule-plugin</classifier> </dependency>
  • 30. All contents © MuleSoft Inc. Custom Connector 30 Create Custom Connector 8. Use in Project : Now let us use the connector in the Mulesoft App
  • 31. All contents © MuleSoft Inc. Custom Connector References 31 References  https://docs.mulesoft.com/connector-devkit/3.9/creating-an-anypoint- connector-project  https://docs.mulesoft.com/mule-sdk/1.1/  https://docs.mulesoft.com/mule-sdk/1.1/getting-started  https://docs.mulesoft.com/connector-devkit/3.9/anypoint-connector-development  https://medium.com/the-mule-blog/mulesoft-making-of-custom-connector-in- mule-4-f1abcf5e532c  https://www.whishworks.com/blog/mulesoft/custom-connectors-in-mulesoft/
  • 32. All contents © MuleSoft Inc. Questions??
  • 33. All contents © MuleSoft Inc. Quiz 15 Note : This is not Trivia Quiz.
  • 34. All contents © MuleSoft Inc. Quiz Question 1 34 1. What is the use of <connector-name>Extension Class ?
  • 35. All contents © MuleSoft Inc. Quiz Answer 1 35
  • 36. All contents © MuleSoft Inc. Quiz Question 2 36 2. How to Create Connector Configuration ?
  • 37. All contents © MuleSoft Inc. Quiz Answer 2 37
  • 38. All contents © MuleSoft Inc. Trivia Quiz 15
  • 39. All contents © MuleSoft Inc. Trivia Question 1 39 1. Which object causes the memory leak ? And how to preserve the memory leak ?
  • 40. All contents © MuleSoft Inc. Trivia Answer 1 40
  • 41. All contents © MuleSoft Inc. Trivia Question 2 41 2. How to create multiple Operation in one Custom Connector and in which configuration File we must add the Functions?
  • 42. All contents © MuleSoft Inc. Trivia Answer 2 42
  • 43. All contents © MuleSoft Inc. Trivia Question 3 43 3. How to Install the Custom Connector in Anypoint Studio ? And In which file we have to provide the Path of the Connector Icon Image ?
  • 44. All contents © MuleSoft Inc. Trivia Answer 3 44
  • 45. See you next time Please send topic suggestions to the organizers Next Meet up: April 2021
  • 46. Networking time Engage yourself in interesting discussions with your neighbors!