3. November 29, 2022
Mysore MuleSoft Meetup
Anypoint DataGraph –
Consume & Re-use your APIs faster with
Anypoint DataGraph
4. 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.
4
5. 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
5
6. Introduction
● About the Organizers
6
Shubham Chaurasia
Billennium India
Pro Integration Developer
A SHOW OF HANDS:
Who is new to this Meetup?
Giridhar Meka
Sr. Technical Architect
linkedin.com/in/giridharmeka
linkedin.com/in/shubhamchaurasia1
7. Certified MuleSoft Developer
3+ years of Total Experience
Working as MuleSoft Developer at HashedIn by Deloitte
Certified AWS Cloud Practitioner
● About the Speaker
Speaker
7
Samir Biswas
Software Engineer
linkedin.com/in/Samir-biswas
8. 8
● Introductions
o What is GraphQL?
o Intro to Anypoint DataGraph
o Anypoint DataGraph Benefits
o Constraints & Limitations
o Authentication Mechanism
● Demo
● Trivia
● Wrap-Up
Agenda
9. What is GraphQL?
9
• GraphQL is an open-source query language for Rest API's and it is developed by Facebook
in 2012 before releasing publicly in 2015.
• RESTful APIs follow clear and well-structured resource-oriented approach. However, when
the data gets more complex, the routes get longer. Sometimes it’s not possible to fetch data
with a single request. This is where GraphQL comes handy. GraphQL structures data in the
form of a graph with its powerful query syntax for traversing, retrieving, and modifying data.
• GraphQL allows developers to retrieve data from many possible sources in a single call in
such a way that the results are predictable and are strongly typed, meaning that the caller
will know exactly what types of data will be returned.
• Examples of GraphQL- Amazon, Microsoft, PayPal, Netflix, GitHub, Airbnb and many more…
10. What is Anypoint DataGraph?
10
• Anypoint DataGraph is a component of Anypoint Platform which allows you to create
unified schema for your APIs and support dynamic query.
• It allows to discover, manage or serve the data from multiple APIs using single request.
• Anypoint DataGraph is the unified platform for APIs to design, develop & manage. It run
as SaaS app to reduce overhead and maintenance.
• It reduces a lot of efforts for developers to call multiple APIs and aggregate the response.
With Anypoint DataGraph, you can request only data you want, no more or no less.
11. Anypoint DataGraph Benefits
11
• Reduce development & maintenance efforts.
• Request the data you want, no more no less.
• Developer doesn't have to write the code to parse the data from multiple APIs.
• Anypoint DataGraph is a managed service and no need to worry about the underlying
infrastructure & maintenance.
• Unify multi-APIs in one data service. Anypoint DataGraph allows you to serve data from
multiple underlying APIs in a single query without writing code.
12. Scenario - 1
You have a Rest API that returns 10 fields in response but web app requires only 8 fields whereas mobile app requires
only 4 fields. In such cases, DataGraph is one of the most optimal options where the client can pass whatever data
required as an input request and DataGraph returns the required fields to the web & mobile app.
12
Below is the illustration of Scenario - 1
13. Scenario - 2
You have to call multiple rest endpoints or want to fetch data from multiple rest endpoints and each APIs will respond
with JSON payload. DataGraph will aggregate all the responses and send back the required data to the client.
13
Below is the illustration of Scenario - 2
14. Constraints & Limitations
14
● Anypoint DataGraph supports:
Support mutations
250 API's per unified schema
16,000 fields per unified schema
REST APIs with RAML & OAS specifications
● Anypoint DataGraph restricts downstream REST API calls to:
A 5 second timeout per call
Depth limiting (max of 100 depth)
A maximum of 5 MB of response data per call
A maximum of 150 concurrent or ongoing calls per unified schema
● Anypoint DataGraph limits the query service to:
A 30 second timeout per query
A maximum of 100 selected fields per query
● To enable collaboration & linking, the primary key field should be in a string type.
15. Authentication Mechanism
15
Authentication Mechanism
DataGraph support below list of Authentication mechanism while calling underlying APIs
No Auth
Basic Authentication
Pass-through Authentication
OAuth 2.0 Client Credentials
Client Id Enforcement via Headers
Client Id Enforcement via Query Params
Custom (Add Custom headers or Query Params)
21. Take a stand !
21
● Nominate yourself for the next meetup speaker and suggest a topic as well.
22. 22
● 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?
23. Get ready to WIN a MuleSoft Voucher from MuleSoft
Quiz Time