Learn More About Object Store | MuleSoft Mysore Meetup #9
-What is an Object Store?
-Different types of Object Store
-Object Store behavior in different deployment models
- On-Prem
- Cluster
- CloudHub
- Hybrid
-Demo (on watermarking using Object Sore)
Speaker:- Pallavi M R
Organizers:
Shubham Chaurasia - https://www.linkedin.com/in/shubhamchaurasia1/
Giridhar Meka - https://www.linkedin.com/in/giridharmeka
For Upcoming Meetups Join MuleSoft Mysore Meetup Group- https://meetups.mulesoft.com/mysore/
2. November 10, 2022
Mysore MuleSoft Meetup
Object Store and its behaviour in different
deployment model
3. 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.
3
4. 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 & Answers Tab.
Make it more Interactive!!!
Give us feedback! Rate this meetup session by filling feedback form at the end of the day.
We Love Feedbacks!!! Its Bread & Butter for Meetup.
Housekeeping
4
5. 5
A SHOW OF HANDS:
New Members With Us.!!
CHEERS…!!!
We have prizes to give away!
3 lucky winners will receive a MuleSoft voucher!!!
6. Introduction
● About the Organizers
6
Shubham Chaurasia
Billennium India
Professional Integration Developer
A SHOW OF HANDS:
Who is new to this Meetup?
7. Certified MuleSoft Developer & Architect
11 years of Total Experience
Working as Tech Architect at HashedIn By Deloitte
● About the Speaker
Speaker
7
Pallavi M R
HashedIn
Tech Architect
8. 8
● Introduction
● What is an Object Store?
● Different types of Object Store
● Object Store behavior in different deployment models
- On-Prem
- Cluster
- CloudHub
- Hybrid
● Demo (on watermarking using Object Sore)
● Trivia
● Wrap-Up
Agenda
9. • Object store is a facility for storing objects in or across Mule
applications. Mule uses object stores to persist data for eventual
retrieval.
• Key/Value pair Storage
• Mule components internally uses Object Store (to store the state between
messages)
o Cache
o Redelivery policy
• Supports Persistent and Transient Object Stores
o Default: Persistent
• Can be accessed via:
o Object Store connector
Object Store
9
10. 10
• Configuring an Idempotent Message Validator, to store the unique IDs in the
specified object store.
• Configuring a Redelivery policy in a listener (HTTP, File, JMS, VM, Socket) to
store the redelivery count in the specified object store.
• Configuring a Cache scope that uses a custom caching strategy, to store the
cached data in the specified object store.
• Storing or retrieving information from a Mule flow (using Object Store Connector)
○ Storing watermark info
○ Storing access token
Object Store use cases
11. Types of Object Store
11
Object Store V2 (OSv2) Object Store V1 (OSv1) Mule Object Store
Latest version of CloudHub
OS
Only used by CloudHub
deployed applications.
Cloud Service external to
Mule Application
Available in the same Region
as Worker
Unlimited number of entries.
Max Value <= 10MB Per Key
Max key length 256 chars
Object Store Access - 10 TPS
per App (Standard version)
100 TPS per App (Premium
version)
Original version of CloudHub
OS
Available only in US region
Max of 100,000 Keys Per App
Max Value < = 1MB per Key
Max Value <= 1GB Per App
768 byte key size
No API Rate limit
Original on-premise based
OS
It is part of Mule Runtime.
Fully customisable to user
preferences.
Can be in-memory/persistence
No limit on the key or value size
No limit on the max size of the
store
12. Types of Object Store
Object Store support across deployment models
12
CloudHub Hybrid On-Premise Runtime Fabric
Object Store V2 Yes No No
Object Store V1 Yes No No
Mule Object Store Yes Yes Yes
13. Case 1: Stand-Alone
Behavior of Object Store (On-Prem)
13
Mule Runtime
App
In-Memory
(stores in servers memory)
Persistent
(written to files)
On-Prem
14. Case 2:
Cluster
Behavior of Object Store (On-Prem)
14
Mule Runtime 1
App
Mule Runtime 3
App
Mule Runtime 2
App
Cluster
Distributed Shared
Memory (Hazelcast)
Developer’s Configuration of
Persistent/Transient OS is
overridden by Cluster’s Data Grid
Configuration
Data Grid can be in-Memory or
JDBC for OS
OS Data are shared by Same App
deployed to multiple Servers in a
Cluster
15. • Persistent
OS Data are stored in Amazon DynamoDB
OS Data are shared by Same App deployed
to multiple workers
“Max Entries” is ignored
Can see OS Info in Runtime Manager >
Application > Object Store
• Transient
Object Store data are stored in Worker’s
Memory
Object Store data are NOT shared by Same
App deployed to multiple workers
Can not see OS Info in Runtime Manager >
Application > Object Store
Behavior of Object Store (Cloudhub)
15
Case 3: CloudHub
Mule Runtime
App
In-Memory (Worker’s)
(stores in servers memory)
Persistent
(Object Store Service )
CloudHub
16. Behavior of Object Store (Hybrid)
16
Case 4: Hybrid
Mule Runtime
App
1
On-Prem
Mule Runtime
App
2
CloudHub
Object Store
Service V2
17. • Supports only Object Store v2
• Can be accessed by Mule and non-mule apps
• Accessed using org id, env id, Object Store’s specific client id & secret
• REST API’s can be used to:
Retrieve list of stores
Retrieve/update/Delete store
Retrieve list of keys
Retrieve/update/Delete key
Accessing Object Store via REST API’s
17
20. Take a stand !
20
● Nominate yourself for the next meetup speaker and suggest a topic as well.
21. 21
● Share:
○ Tweet using the hashtag #MuleSoftMeetups
○ Join Mysore Group: https://meetups.mulesoft.com/mysore/
● 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 Mysore Meetup Leaders (Shubham / Giridhar) to suggest
topics for next Meetup
What’s next?
22. Get ready to WIN a MuleSoft Voucher from MuleSoft
Quiz Time