Unblocking The Main Thread Solving ANRs and Frozen Frames
MuleSoft Surat Meetup#40 - Watermarking Concept and Fragments in MuleSoft
1. Concept of Fragments and Watermarking With MuleSoft
Surat MuleSoft Meetup Group
May 14, 2022
11:00 IST (GTM+05:30)
2. Safe Harbour Statement
● Both the speaker and the host are organizing this meet-up in individual capacity only. We are
not representing our companies here.
● This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any
responsibility that same solution will work for your business requirements.
● This presentation is not meant for any promotional activities.
2
3. A recording of this meetup will be uploaded to events page within 24 hours.
Questions can be submitted/asked at any time in the Chat/Questions & AnswersTab.
Make it more Interactive!!!
Give us feedback! Rate this meetup session by filling feedback form at the end of theday.
We Love Feedbacks!!! Its Bread & Butter for Meetup.
Housekeeping
3
5. 5
Ankita Mishra
●11+ years of Experience in Training, Testing and Customer
Support .
●Working as Manager-Technical Training at Apisero Inc
●MuleSoft Certified Developer and Platform Architect.
Speaker
6. Agenda
● What are Fragments?
● Fragments - Advantages and How to use?
● What is Watermarking?
● Automatic Watermarking and Manual Watermarking
● Wrap Up - Q&A
9. 9
Fragments - An Introduction
● API Fragments are reusable components of RAML to make the
design and build of a reusable API, easier and quicker.
● An API fragment is a RAML document that has a version and
an identifier; however, it is not the complete RAML specification
itself.
● Reusable APIs and API fragments save a lot of time and
resources and accelerates the delivery process as it creates a
trend of consistency.
10. 10
Fragments - Different Types
● Trait
● Resource Type
● Library
● Type
● User Documentation
● Example
● Annotation Type
● Security Scheme
13. 13
Watermarking - Introduction
● What is Synchronization?
● Process of Synchronization:
➔ First Sync - Syncs all the data from one system to another by storing the latest
timestamp for any item in the data set
➔ On later Syncs - Syncs only new data to be added to the other system by
retrieving that timestamp and comparing the timestamp of each item and
seeing if it is later.
● Watermark is the timestamp that is stored in each synchronization and then
retrieved and compared against for the later synchronization.
14. 14
Types of Watermarking
1 Automatic Watermarking
● On New or Updated File (For File connector)
● On Table Row (For Database)
2.Manual Watermarking
● Using Object Store
15. 15
Watermarking - Using Object Store
Object Store component
● Store values in simple key-value pairs
● Persistent
● Available without any setup or configuration
18. Take a stand !
18
●Nominate yourself for the next meetup speaker and suggest a topic as well.
19. 20
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Invite your network to join: https://meetups.mulesoft.com/engineering-student-
group/
● 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?
20. 20
● 21st May 2022 - Understanding the Anypoint Flex Gateway
● 11th June 2022 - Implementing and Understanding SAGA (Orchestration and
Choreography) Patterns With MuleSoft
● 24th June 2022 - Combine Service Mesh With Anypoint API Management to
power Microservices
● 30th June 2022 - Understanding EKS/RTF Architecture and Components
● 9th July 2022 - Driving Digital Transformation in Banking Industries With
MuleSoft
Upcoming Meetups
22. 22
● How to use fragments in API RAML specification?
a) import
b) include
c) !import
d) !include
Q1
23. 23
● A database On Table Row listener retrieved data from a CUSTOMER table
that contains a primary key user_id column and an increasing login_date_time
column. Neither column allows duplicate values. How should the listener be
configured, so it retrieves each row one time only?
a) Set the watermark column to the user_id column
b) Set the watermark column to the login_date_time column
c) Set the target variable to the last retrieved user_id value.
d) Set the target variable to the last login_date_time value.
Q2
24. 24
● Which of the following is not a type of fragment?
a) User Documentation
b) Data Type
c) Resource Type
d) Library
Q3