All contents © MuleSoft Inc.
6th October: What’s new in Mule 4
Hyderabad
All contents © MuleSoft Inc.
Agenda
2
• Introduction to Sponsor and Speakers
• Customer Success Story
• What’s new in Anypoint Platform
• What’s new in Mule 4
• Upcoming Mule 4 Migration toolkits:
• MuleSoft Application Migration Toolkit
• WHISHWORKS Custom Migration Toolkit
• Migrating Mule 3 Connectors to Mule 4 with Mule SDK
• Demo
• Adapting Mule 4
• Q & A
All contents © MuleSoft Inc.
Organiser and Sponsor
3
• About the Organiser and sponsor:
– WHISHWORKS
• A MuleSoft integration and Big Data specialist,
helps businesses succeed in their digital
transformation journeys and monetise their
data
• Best Service Delivery partner (EMEA)
• 5x MuleSoft partner award winner 2015-2018
• 200+ MuleSoft Certifications
• 100+ Successful MuleSoft Implementations
• 5000+ APIs
• 4 MuleSoft Certified Connectors
www.whishworks.com
All contents © MuleSoft Inc.
Speakers
4
• Sourabh Singhai : Product Owner (Flyin, DUBAI)
• Mahesh Shenoy : Director – Partner Enablement (MuleSoft)
• Pankaj Kankatti : CIO And Co-Founder (WHISHWORKS)
• Raveendar B. : Technical Success (WHISHWORKS)
• Ravi Kumar G. : Technical Architect (WHISHWORKS)
All contents © MuleSoft Inc.
Customer Success Story
Sourabh Singhai - Product Owner (Flyin, Dubai)
All contents © MuleSoft Inc.
Customer – Flyin
6
• It is the first and only “Online Travel Agency” in Saudi
• Offers an integrated travel services and innovative
solutions
– Website
• https://www.flyin.com/
– Headquarters
• Riyadh
– Year founded
• 2008
– Specialities
• Online Bookings, Hotel Bookings, Flight Reservations, and Vacation
Packages
All contents © MuleSoft Inc.
Customer – Flyin (Contd…)
7
• Creating digital experience
for travellers
– Omni Channel
• Innovation through API-
Led Architecture
– Experience, Process and
System APIs
• Major System APIs
– Seamless access to 450
different Airline vendors
worldwide
– Visibility to 320K+ hotels
All contents © MuleSoft Inc.
What’s New Anypoint Platform
Mahesh Shenoy
Director – Partner Enablement (MuleSoft)
All contents © MuleSoft Inc.
Anypoint Platform enables digital transformation
Customer
Experience
Partner
Experience
Employee
Experience
New
Products &
Services
Operational
Efficiency
MANAGEENGAGE SECUREDESIGN RUN
ANYPOINT PLATFORM
All contents © MuleSoft Inc.
Single platform for all connectivity patterns and use cases
10
● Data transformation
● ETL/ELT
● Batch
● ESB
● Composite Apps
● Pub/Sub
● Streaming
● EDI
ANY INTEGRATION
PATTERN
FULL API
LIFECYCLE
CONNECT
ANY APP
● Design
● Develop
● Test
● Share
● Secure
● Manage
● SaaS
● On-prem systems
● Social app
● Microservices
● Database
● IoT
● Web services
● FTP/File
All contents © MuleSoft Inc.
Actionable visibility
Speed of delivery
Secure by design
Future-proof architecture
Intentional self-service
Value
API-led connectivity
Application network
API mgmtIntegration
ANYPOINTPLATFORM
Anypoint Platform delivers unique value
11
Why Anypoint Platform:
Digital
transformation
Business
initiatives
Technical use
cases
All contents © MuleSoft Inc.
We’re taking a major step forward in our vision
Critical application network capabilities:
✓ well-defined APIs
✓ discoverability and reuse of assets
✓ fast, easy connectivity
✓ visibility and control
✓ security
✓ flexible deployment options
All contents © MuleSoft Inc.
Anypoint Platform, Titan Release
Anypoint Design Center
Anypoint Management
Center
Anypoint
Exchange
Mule runtime engine
Runtime services
Anypoint
Monitoring
On-premises
& private
cloud
Hybrid Hosted
By MuleSoft
Cloud service providers
Anypoint
Runtime Fabric
Tokenization
& Edge
Mule 4
Anypoint
Studio
All contents © MuleSoft Inc.
Mule is the market leading runtime engine
14
With the improvements
made to simplify Mule 4,
we’ve been able to reduce
our developer on-ramp
time...It’s now very easy to
make components of the
Mule applications reusable
and share them with other
developers, both in and out
of our organization.
- Software architect at
Cox Automotive
“
”
All contents © MuleSoft Inc.
Mule 4 delivers unmatched value
15
Simplified expression
language with
DataWeave 2.0
Simplified error handling
and new try scope
Updated, enriched
connectors
All contents © MuleSoft Inc.
Mule 4 delivers unmatched value
16
Self-tuning,
reactive
execution
runtime
Event
Process
pools
Key Benefits
• Develop flows with up to 50% fewer
steps
• Easier to handle large data sets
• Seamless data streaming and
management
• Eliminates overhead of manual configs
• Simplified upgrade experiences because
of classloader isolation
All contents © MuleSoft Inc.
Introducing Anypoint Runtime Fabric
1717
Anypoint Runtime Fabric is a
container service for multi-cloud
deployments of Mule runtimes
Key Benefits
• Deploy Mule runtimes consistently across
Microsoft Azure, AWS, & data centers
• No teams required to support or maintain
orchestration and automation
• Isolate apps, scale horizontally, redeploy
with zero-downtime, & deploy multiple
runtime versions in 1 Runtime Fabric
• Manage deployments in multiple clouds all
from MuleSoft’s cloud-based control plane
All contents © MuleSoft Inc. 18
A new approach to security and control is necessary
18
● Application networks are mission
critical
● A single business transaction now
crosses an average of 35 different
systems
● Legacy security and monitoring
systems can’t keep up
Source: Top Challenges facing CIOs in a Cloud Native World. 2018 Global CIO Report.
https://www.dynatrace.com/cloud-complexity-report/
Account
Web
Transaction
Order
Account
for SAP
Account
for CRM
Order
Fulfillment
Notification
for twitter
Order for
.net
Product
for NetSuite
Product
for SAP
Notification
for gmail
Notification
Notification
for facebook
Product
for MySQL
Product
Notification
for twilio
Account
for MySQL
!
All contents © MuleSoft Inc.
Introducing Anypoint Security
19
Advanced, simplified protection
for application networks
• Edge security
• Tokenization
Edge 1 Edge 2
All contents © MuleSoft Inc.
Anypoint Security - Edge Overview
20
Service
Virtualization
• Edge Proxy for
REST and SOAP
Connection Security
and Certificate
Management
• SSL / TLS
Termination
• Certificate
Management
• Chain of Trust
Validation /
Configuration
• CRL Configuration
Content Security
• Message inspection
for Malicious
Content, Injection
Attacks
• Header Validation
• Message Size
Limits
• Message
Attachment Size
limits
Quality of Service
• Resource
Consumption
Management
• Quota & Throttling
Application Level
(DoS)
• Network Level
Denial of Service
Protection against
too slow or too
overwhelming
requests
• Rate Limiting /
Shaping of Traffic
(Peak Protection)
All contents © MuleSoft Inc.
Anypoint Security - Tokenization Overview
21
Format Preserving Tokenization
Format Preserving Encryption
Data Masking
Edge encryption / decryption policy
{
"Name":"MuleSoft Encryption Demo",
"Email":"4-f6vTf-IITLh1@L7Pw9-g6RfPa",
"Company":"MuleSoft",
"PhoneNumber":"0878087072”
}
Encrypt / Decrypt Email and Phone #
{
"Name":"MuleSoft Encryption Demo",
"Email":"encryptiondemo@mulesoft.com",
”Company":"MuleSoft",
"PhoneNumber":"1234567890"
}
Application data validation
logic work “as is”
No downstream application
changes needed
Compliance scope reduction
(PCI, HIPAA, GDPR)
Information anonymization
Analytics without exposing
sensitive data
Sensitive data
obfuscation
One way process: Cannot
get original value back
Edge data masking policy
{
”Account #":”1234567890####",
"Email":"maskingdemo@mulesoft.com",
"Company":"MuleSoft",
"PhoneNumber":”*******456”
}
{
”Account #":”12345678900987",
"Email":”maskingdemo@mulesoft.com",
”Company":"MuleSoft",
"PhoneNumber":"1234567890"
}
Mask Account and Phone #’s
Credit Card #
4111-1111-1111-1111
Edge tokenization policy
Token Value
3594-6249-5432-1111
Preserve – Last 4 of CC #
All contents © MuleSoft Inc.
Source: Top Challenges facing CIOs in a Cloud Native World. 2018 Global CIO Report.
https://www.dynatrace.com/cloud-complexity-report/
Monitoring is increasingly in demand
22
All contents © MuleSoft Inc.
Why Anypoint Monitoring?
23
Store and search log data
at scale
More informed decision
making
Reduce mean time to
identification
Monitor and troubleshoot with better accuracy
Aggregate and map
metrics across all
dependent components
in real-time
Create your own
dashboards or use
templated ones for clear
views of your
applications at a glance
Search through all your
log data history to
pinpoint the root cause of
a problem
All contents © MuleSoft Inc.
Introducing Anypoint Monitoring
Real-time insights and rapid
troubleshooting for your
application network
• Real-time metrics
• Distributed log search
• Customized alerting
• Dependency mapping
All contents © MuleSoft Inc.
Reduce Time to Identification and Resolution
25
Evented Alerting
Track trends and create alerts to
identify abnormal behavior and
problems in your application
network.
All contents © MuleSoft Inc.
Reduce Time to Identification and Resolution
26
Customizable Dashboarding
Leverage templated dashboards or
customize your own to provide
instant visibility into your
applications’ performance and
detailed analysis of your network
All contents © MuleSoft Inc.
Reduce Time to Identification and Resolution
27
Dependency Mapping
Identify and document the health of
every, consecutive component within an
application in your network: diagnose
and prescribe solutions to broken
components with ease.
All contents © MuleSoft Inc.
Reduce Time to Identification and Resolution
28
Distributed Log Search
Search raw log and event data from
across the application network to
pinpoint the root cause of a problem.
All contents © MuleSoft Inc.
Anypoint Platform Titan Release - Benefits
Speed
of delivery
Actionable
visibility
Future-proof
architecture
Secure
by design
Intentional
self-service
On-ramp faster
Reuse modules
and functions
Access data
seamlessly
Reduce
observability
gaps
Identify and
resolve issues
faster
Protect APIs and
sensitive data
from attacks
Meet compliance
standards
Deploy across
clouds
consistently
Upgrade and
scale with
confidence
Dynamically
provision access
Improve asset
discoverability
29
All contents © MuleSoft Inc.
What’s New in Mule 4
Raveendar Bandaru
Manager – Technical Success (WHISHWORKS)
All contents © MuleSoft Inc.
What’s new in Mule 4 - Overview
31
• Self tuning – No explicit knowledge of Processing strategies, threading profiles etc.,
default non-blocking with throughput
• Class loader isolation for runtime, application and connectors
• Everything is DataWeave now - We write DataWeave expressions inside #[]
• Every component has target removing need for enrich
• Improved exception handling: try scope, propagate
• Exchange is formal way building reusable assets
• More intelligent components – can automatically handle types
• Http Connectors from RAML
• Need to use Spring module explicitly to use spring beans
• Most commonly used connectors that have been upgraded – Database, File and FTP,
JMS, VM
• Single approach to extending mule 4
All contents © MuleSoft Inc.
DataWeave 2.0
32
• Mule 4 brings several improvements to DataWeave with 2.0
– Imports and modules
• Package and import scripts into other projects, enabling you to reuse and share
– Java interoperability
• Static methods can be executed through DataWeave
– New data formats
• Added text/plain, application/x-www-form-urlencoded, and multipart support
– Type system
• Indicate the type for functions and variables with type inference
– Simplified syntax
• Everything is a function and if/else clause is now the norm
All contents © MuleSoft Inc.
Changes from MEL to DataWeave 2.0
33
Mule Expression Language DataWeave 2.0
#[flowVars.name]
#[sessionVars.id]
#[recordVars.recordid]
#[vars.name]
Session, Record variables are removed
#[message.inboundProperties.’http.query.para
ms’.name]
#[attributes.queryParams.name]
exception replaced by error
message.inboundAttachments and
message.outboundAttachments
The affected connectors now handle the
attachments (HTTP, EMAIL, WSC)
message.id, message.rootId and
message.replyTo
? function
server.dateTime now() function
All contents © MuleSoft Inc.
Changes from MEL to DataWeave 2.0 (Contd…)
34
• DataWeave Selectors to query data, which doesn’t need extra
transformations when dealing with types like JSON
All contents © MuleSoft Inc.
Upcoming Mule 4 Migration
Toolkits
Pankaj Kankatti
CIO And Co-Founder (WHISHWORKS)
All contents © MuleSoft Inc.
Upcoming Mule 4 Migration Toolkits
36
• Mule Application Migration from Mule 3.8+ to Mule 4
– MuleSoft Application Migration Toolkit
• MuleSoft provided – yet to be released
– Custom Migration Toolkit
• Supported Versions
– 3.8 and Above
• Preliminary Assessment Report
– Helps business owners/program managers to plan accordingly
• Automation
– Import Mule 3.8+ project into Anypoint Studio 7 to auto-migrate to Mule 4
• Migration Report
– Detailed report on migration executed along with failures and any manual steps to be performed
• Documentation
– Provides clear instructions on how to complete the migration yourself
All contents © MuleSoft Inc.
Migrating Mule 3 Connectors to
Mule 4
Ravi Kumar Gunda
Technical Architect - WHISHWORKS
All contents © MuleSoft Inc.
Mule 4 SDK
38
• Anypoint Connector DevKit is
replaced by Mule 4 SDK
• Facilitates faster development of
Mule modules, e.g. Connectors,
than its predecessor, Anypoint
Connector DevKit
• Decouples modules from the Mule
Runtime internals
• Mule SDK is not a code generator
• Compared to Anypoint Connector
DevKit, it is more powerful and
supports more features
All contents © MuleSoft Inc.
Mule 4 SDK (Contd…)
39
• Single way to
extend Mule
• Enforces
common UX &
best practices
• Annotation
based
• Transaction
Support
• Stateful
operations
All contents © MuleSoft Inc.
Mule Module Model
40
• The entry point for building a Mule module is the @Extension
annotated class
All contents © MuleSoft Inc.
Migrating Connector
41
• MuleSoft’s DevKit Migration Tool (DMT) assists on Connector
Migration
• DMT generates new code, compatible with Mule 4 SDK, wrapping the
Mule 3 connector code
• MuleSoft’s Recommendations
– Do not access the MuleContext
– An operation should have 1st param as Configuration object and 2nd param as
Connection object
– Exception classes should end with Exception
• New Module structure
– /api (exported classes)
– /internal (non-exported classes)
• operation, config, connection, error
All contents © MuleSoft Inc.
Migrating Connector (Contd…)
42
• Running DMT
– Changes to pom.xml:
<parent>
<groupId>org.mule.tools.dmt</groupId>
<artifactId>mule-dmt</artifactId>
<version>1.0.0</version>
</parent>
– mvn clean package
– Generated code @ target/generated_sources/extension
• Manually fix the compilation errors of the code generated
– Update pom.xml for any dependency libraries, due to change in parent
– Remove/Replace the packages/classes which doesn’t exist in Mule 4 SDK
• eg. org.mule.api.context.MuleContextAware to org.mule.runtime.core.api.context.MuleContextAware
• Refactor the code as per the new module structure and conventions
All contents © MuleSoft Inc.
Demo
• Migrating Mule 3 Connector to Mule 4
All contents © MuleSoft Inc.
See you next time
Please send topic suggestions to the organizer
All contents © MuleSoft Inc.

WHISHWORKS-MuleSoft Hyderabad Meetup -Oct 2018

  • 1.
    All contents ©MuleSoft Inc. 6th October: What’s new in Mule 4 Hyderabad
  • 2.
    All contents ©MuleSoft Inc. Agenda 2 • Introduction to Sponsor and Speakers • Customer Success Story • What’s new in Anypoint Platform • What’s new in Mule 4 • Upcoming Mule 4 Migration toolkits: • MuleSoft Application Migration Toolkit • WHISHWORKS Custom Migration Toolkit • Migrating Mule 3 Connectors to Mule 4 with Mule SDK • Demo • Adapting Mule 4 • Q & A
  • 3.
    All contents ©MuleSoft Inc. Organiser and Sponsor 3 • About the Organiser and sponsor: – WHISHWORKS • A MuleSoft integration and Big Data specialist, helps businesses succeed in their digital transformation journeys and monetise their data • Best Service Delivery partner (EMEA) • 5x MuleSoft partner award winner 2015-2018 • 200+ MuleSoft Certifications • 100+ Successful MuleSoft Implementations • 5000+ APIs • 4 MuleSoft Certified Connectors www.whishworks.com
  • 4.
    All contents ©MuleSoft Inc. Speakers 4 • Sourabh Singhai : Product Owner (Flyin, DUBAI) • Mahesh Shenoy : Director – Partner Enablement (MuleSoft) • Pankaj Kankatti : CIO And Co-Founder (WHISHWORKS) • Raveendar B. : Technical Success (WHISHWORKS) • Ravi Kumar G. : Technical Architect (WHISHWORKS)
  • 5.
    All contents ©MuleSoft Inc. Customer Success Story Sourabh Singhai - Product Owner (Flyin, Dubai)
  • 6.
    All contents ©MuleSoft Inc. Customer – Flyin 6 • It is the first and only “Online Travel Agency” in Saudi • Offers an integrated travel services and innovative solutions – Website • https://www.flyin.com/ – Headquarters • Riyadh – Year founded • 2008 – Specialities • Online Bookings, Hotel Bookings, Flight Reservations, and Vacation Packages
  • 7.
    All contents ©MuleSoft Inc. Customer – Flyin (Contd…) 7 • Creating digital experience for travellers – Omni Channel • Innovation through API- Led Architecture – Experience, Process and System APIs • Major System APIs – Seamless access to 450 different Airline vendors worldwide – Visibility to 320K+ hotels
  • 8.
    All contents ©MuleSoft Inc. What’s New Anypoint Platform Mahesh Shenoy Director – Partner Enablement (MuleSoft)
  • 9.
    All contents ©MuleSoft Inc. Anypoint Platform enables digital transformation Customer Experience Partner Experience Employee Experience New Products & Services Operational Efficiency MANAGEENGAGE SECUREDESIGN RUN ANYPOINT PLATFORM
  • 10.
    All contents ©MuleSoft Inc. Single platform for all connectivity patterns and use cases 10 ● Data transformation ● ETL/ELT ● Batch ● ESB ● Composite Apps ● Pub/Sub ● Streaming ● EDI ANY INTEGRATION PATTERN FULL API LIFECYCLE CONNECT ANY APP ● Design ● Develop ● Test ● Share ● Secure ● Manage ● SaaS ● On-prem systems ● Social app ● Microservices ● Database ● IoT ● Web services ● FTP/File
  • 11.
    All contents ©MuleSoft Inc. Actionable visibility Speed of delivery Secure by design Future-proof architecture Intentional self-service Value API-led connectivity Application network API mgmtIntegration ANYPOINTPLATFORM Anypoint Platform delivers unique value 11 Why Anypoint Platform: Digital transformation Business initiatives Technical use cases
  • 12.
    All contents ©MuleSoft Inc. We’re taking a major step forward in our vision Critical application network capabilities: ✓ well-defined APIs ✓ discoverability and reuse of assets ✓ fast, easy connectivity ✓ visibility and control ✓ security ✓ flexible deployment options
  • 13.
    All contents ©MuleSoft Inc. Anypoint Platform, Titan Release Anypoint Design Center Anypoint Management Center Anypoint Exchange Mule runtime engine Runtime services Anypoint Monitoring On-premises & private cloud Hybrid Hosted By MuleSoft Cloud service providers Anypoint Runtime Fabric Tokenization & Edge Mule 4 Anypoint Studio
  • 14.
    All contents ©MuleSoft Inc. Mule is the market leading runtime engine 14 With the improvements made to simplify Mule 4, we’ve been able to reduce our developer on-ramp time...It’s now very easy to make components of the Mule applications reusable and share them with other developers, both in and out of our organization. - Software architect at Cox Automotive “ ”
  • 15.
    All contents ©MuleSoft Inc. Mule 4 delivers unmatched value 15 Simplified expression language with DataWeave 2.0 Simplified error handling and new try scope Updated, enriched connectors
  • 16.
    All contents ©MuleSoft Inc. Mule 4 delivers unmatched value 16 Self-tuning, reactive execution runtime Event Process pools Key Benefits • Develop flows with up to 50% fewer steps • Easier to handle large data sets • Seamless data streaming and management • Eliminates overhead of manual configs • Simplified upgrade experiences because of classloader isolation
  • 17.
    All contents ©MuleSoft Inc. Introducing Anypoint Runtime Fabric 1717 Anypoint Runtime Fabric is a container service for multi-cloud deployments of Mule runtimes Key Benefits • Deploy Mule runtimes consistently across Microsoft Azure, AWS, & data centers • No teams required to support or maintain orchestration and automation • Isolate apps, scale horizontally, redeploy with zero-downtime, & deploy multiple runtime versions in 1 Runtime Fabric • Manage deployments in multiple clouds all from MuleSoft’s cloud-based control plane
  • 18.
    All contents ©MuleSoft Inc. 18 A new approach to security and control is necessary 18 ● Application networks are mission critical ● A single business transaction now crosses an average of 35 different systems ● Legacy security and monitoring systems can’t keep up Source: Top Challenges facing CIOs in a Cloud Native World. 2018 Global CIO Report. https://www.dynatrace.com/cloud-complexity-report/ Account Web Transaction Order Account for SAP Account for CRM Order Fulfillment Notification for twitter Order for .net Product for NetSuite Product for SAP Notification for gmail Notification Notification for facebook Product for MySQL Product Notification for twilio Account for MySQL !
  • 19.
    All contents ©MuleSoft Inc. Introducing Anypoint Security 19 Advanced, simplified protection for application networks • Edge security • Tokenization Edge 1 Edge 2
  • 20.
    All contents ©MuleSoft Inc. Anypoint Security - Edge Overview 20 Service Virtualization • Edge Proxy for REST and SOAP Connection Security and Certificate Management • SSL / TLS Termination • Certificate Management • Chain of Trust Validation / Configuration • CRL Configuration Content Security • Message inspection for Malicious Content, Injection Attacks • Header Validation • Message Size Limits • Message Attachment Size limits Quality of Service • Resource Consumption Management • Quota & Throttling Application Level (DoS) • Network Level Denial of Service Protection against too slow or too overwhelming requests • Rate Limiting / Shaping of Traffic (Peak Protection)
  • 21.
    All contents ©MuleSoft Inc. Anypoint Security - Tokenization Overview 21 Format Preserving Tokenization Format Preserving Encryption Data Masking Edge encryption / decryption policy { "Name":"MuleSoft Encryption Demo", "Email":"4-f6vTf-IITLh1@L7Pw9-g6RfPa", "Company":"MuleSoft", "PhoneNumber":"0878087072” } Encrypt / Decrypt Email and Phone # { "Name":"MuleSoft Encryption Demo", "Email":"encryptiondemo@mulesoft.com", ”Company":"MuleSoft", "PhoneNumber":"1234567890" } Application data validation logic work “as is” No downstream application changes needed Compliance scope reduction (PCI, HIPAA, GDPR) Information anonymization Analytics without exposing sensitive data Sensitive data obfuscation One way process: Cannot get original value back Edge data masking policy { ”Account #":”1234567890####", "Email":"maskingdemo@mulesoft.com", "Company":"MuleSoft", "PhoneNumber":”*******456” } { ”Account #":”12345678900987", "Email":”maskingdemo@mulesoft.com", ”Company":"MuleSoft", "PhoneNumber":"1234567890" } Mask Account and Phone #’s Credit Card # 4111-1111-1111-1111 Edge tokenization policy Token Value 3594-6249-5432-1111 Preserve – Last 4 of CC #
  • 22.
    All contents ©MuleSoft Inc. Source: Top Challenges facing CIOs in a Cloud Native World. 2018 Global CIO Report. https://www.dynatrace.com/cloud-complexity-report/ Monitoring is increasingly in demand 22
  • 23.
    All contents ©MuleSoft Inc. Why Anypoint Monitoring? 23 Store and search log data at scale More informed decision making Reduce mean time to identification Monitor and troubleshoot with better accuracy Aggregate and map metrics across all dependent components in real-time Create your own dashboards or use templated ones for clear views of your applications at a glance Search through all your log data history to pinpoint the root cause of a problem
  • 24.
    All contents ©MuleSoft Inc. Introducing Anypoint Monitoring Real-time insights and rapid troubleshooting for your application network • Real-time metrics • Distributed log search • Customized alerting • Dependency mapping
  • 25.
    All contents ©MuleSoft Inc. Reduce Time to Identification and Resolution 25 Evented Alerting Track trends and create alerts to identify abnormal behavior and problems in your application network.
  • 26.
    All contents ©MuleSoft Inc. Reduce Time to Identification and Resolution 26 Customizable Dashboarding Leverage templated dashboards or customize your own to provide instant visibility into your applications’ performance and detailed analysis of your network
  • 27.
    All contents ©MuleSoft Inc. Reduce Time to Identification and Resolution 27 Dependency Mapping Identify and document the health of every, consecutive component within an application in your network: diagnose and prescribe solutions to broken components with ease.
  • 28.
    All contents ©MuleSoft Inc. Reduce Time to Identification and Resolution 28 Distributed Log Search Search raw log and event data from across the application network to pinpoint the root cause of a problem.
  • 29.
    All contents ©MuleSoft Inc. Anypoint Platform Titan Release - Benefits Speed of delivery Actionable visibility Future-proof architecture Secure by design Intentional self-service On-ramp faster Reuse modules and functions Access data seamlessly Reduce observability gaps Identify and resolve issues faster Protect APIs and sensitive data from attacks Meet compliance standards Deploy across clouds consistently Upgrade and scale with confidence Dynamically provision access Improve asset discoverability 29
  • 30.
    All contents ©MuleSoft Inc. What’s New in Mule 4 Raveendar Bandaru Manager – Technical Success (WHISHWORKS)
  • 31.
    All contents ©MuleSoft Inc. What’s new in Mule 4 - Overview 31 • Self tuning – No explicit knowledge of Processing strategies, threading profiles etc., default non-blocking with throughput • Class loader isolation for runtime, application and connectors • Everything is DataWeave now - We write DataWeave expressions inside #[] • Every component has target removing need for enrich • Improved exception handling: try scope, propagate • Exchange is formal way building reusable assets • More intelligent components – can automatically handle types • Http Connectors from RAML • Need to use Spring module explicitly to use spring beans • Most commonly used connectors that have been upgraded – Database, File and FTP, JMS, VM • Single approach to extending mule 4
  • 32.
    All contents ©MuleSoft Inc. DataWeave 2.0 32 • Mule 4 brings several improvements to DataWeave with 2.0 – Imports and modules • Package and import scripts into other projects, enabling you to reuse and share – Java interoperability • Static methods can be executed through DataWeave – New data formats • Added text/plain, application/x-www-form-urlencoded, and multipart support – Type system • Indicate the type for functions and variables with type inference – Simplified syntax • Everything is a function and if/else clause is now the norm
  • 33.
    All contents ©MuleSoft Inc. Changes from MEL to DataWeave 2.0 33 Mule Expression Language DataWeave 2.0 #[flowVars.name] #[sessionVars.id] #[recordVars.recordid] #[vars.name] Session, Record variables are removed #[message.inboundProperties.’http.query.para ms’.name] #[attributes.queryParams.name] exception replaced by error message.inboundAttachments and message.outboundAttachments The affected connectors now handle the attachments (HTTP, EMAIL, WSC) message.id, message.rootId and message.replyTo ? function server.dateTime now() function
  • 34.
    All contents ©MuleSoft Inc. Changes from MEL to DataWeave 2.0 (Contd…) 34 • DataWeave Selectors to query data, which doesn’t need extra transformations when dealing with types like JSON
  • 35.
    All contents ©MuleSoft Inc. Upcoming Mule 4 Migration Toolkits Pankaj Kankatti CIO And Co-Founder (WHISHWORKS)
  • 36.
    All contents ©MuleSoft Inc. Upcoming Mule 4 Migration Toolkits 36 • Mule Application Migration from Mule 3.8+ to Mule 4 – MuleSoft Application Migration Toolkit • MuleSoft provided – yet to be released – Custom Migration Toolkit • Supported Versions – 3.8 and Above • Preliminary Assessment Report – Helps business owners/program managers to plan accordingly • Automation – Import Mule 3.8+ project into Anypoint Studio 7 to auto-migrate to Mule 4 • Migration Report – Detailed report on migration executed along with failures and any manual steps to be performed • Documentation – Provides clear instructions on how to complete the migration yourself
  • 37.
    All contents ©MuleSoft Inc. Migrating Mule 3 Connectors to Mule 4 Ravi Kumar Gunda Technical Architect - WHISHWORKS
  • 38.
    All contents ©MuleSoft Inc. Mule 4 SDK 38 • Anypoint Connector DevKit is replaced by Mule 4 SDK • Facilitates faster development of Mule modules, e.g. Connectors, than its predecessor, Anypoint Connector DevKit • Decouples modules from the Mule Runtime internals • Mule SDK is not a code generator • Compared to Anypoint Connector DevKit, it is more powerful and supports more features
  • 39.
    All contents ©MuleSoft Inc. Mule 4 SDK (Contd…) 39 • Single way to extend Mule • Enforces common UX & best practices • Annotation based • Transaction Support • Stateful operations
  • 40.
    All contents ©MuleSoft Inc. Mule Module Model 40 • The entry point for building a Mule module is the @Extension annotated class
  • 41.
    All contents ©MuleSoft Inc. Migrating Connector 41 • MuleSoft’s DevKit Migration Tool (DMT) assists on Connector Migration • DMT generates new code, compatible with Mule 4 SDK, wrapping the Mule 3 connector code • MuleSoft’s Recommendations – Do not access the MuleContext – An operation should have 1st param as Configuration object and 2nd param as Connection object – Exception classes should end with Exception • New Module structure – /api (exported classes) – /internal (non-exported classes) • operation, config, connection, error
  • 42.
    All contents ©MuleSoft Inc. Migrating Connector (Contd…) 42 • Running DMT – Changes to pom.xml: <parent> <groupId>org.mule.tools.dmt</groupId> <artifactId>mule-dmt</artifactId> <version>1.0.0</version> </parent> – mvn clean package – Generated code @ target/generated_sources/extension • Manually fix the compilation errors of the code generated – Update pom.xml for any dependency libraries, due to change in parent – Remove/Replace the packages/classes which doesn’t exist in Mule 4 SDK • eg. org.mule.api.context.MuleContextAware to org.mule.runtime.core.api.context.MuleContextAware • Refactor the code as per the new module structure and conventions
  • 43.
    All contents ©MuleSoft Inc. Demo • Migrating Mule 3 Connector to Mule 4
  • 44.
    All contents ©MuleSoft Inc. See you next time Please send topic suggestions to the organizer
  • 45.
    All contents ©MuleSoft Inc.