GraphQL
PRAVEEN SINGH BORA
What GraphQL is not?
What is GraphQL?
2
Traditional Client - Server relationship
3
App
Server
iOS
View1
Droid
View1
Web
View2
Data(id: 10)
Data(id: 10)
Data(id: 10)
Model
Model
Model
Traditional Client - Server relationship
4
App
Server
iOS
Complex View
Data1(id: 10)
Data 2(id: 10)
Data 3(id: 10)
Model 1
Model 2
Model 3
Sad Server Slow App
N + 1 Query Problem
GraphQL Client - Server relationship
5
App
Server
iOS
Complex View
Capabilities (Type System)
Requirements (data queries)
Type System
GraphQL Client - Server relationship
6
App
Server
iOS
Complex View
Data Shape
Client Specific Data
Type System
Slow App
GRAPH QL
Graph QL Query
query GetNames {
users {
firstName
lastName
}
}
type Character {
name: String!
appearsIn: [Episode]!
}
7
GraphQL Response
{
‘users’ :
[
{
firstName: ‘John’,
lastName: ‘Smith’
}
]
}
TYPE SYSTEM
Type System
Object Types and Fields
Arguments
The Query and Mutation Types
Scalar Types
Enumeration Types
Lists and Non-Null
Interfaces 8
APPLICATION DATA GRAPH - MENTAL MODEL
9
GRAPH QL
10
GRAPH QL
11
GRAPHQL QUERY
12
Parse Validate Execute
GRAPHQL SUBSCRIPTION
EVENT STREAM, RESPONSE STREAM, SOURCE STREAM, EVENT COMPLETION, SUBSCRIPTION CANCELLATION, ERROR N COMPLETION, MAPPER,
13
Parse Validate Subscribe
GRAPHQL SUBSCRIPTION
14
Parse
(AST)
Validate
Create
Source
Mapper
Execute
GRAPHQL SUBSCRIPTION
15
Create
Source
Subscribe to the pub sub service
Watch for database writes / listen for triggers
Process the Kafka Stream
Listen to incoming http calls
Incoming stock prices per tick
or anything which could create an event stream
GRAPHQL SUBSCRIPTION
16
P
a
r
s
e
V
a
li
d
a
t
e
Create
Source
Mapper
Execute
Client
Internet
17
TransportGraphQL Client
Http
Graph QL Query
GRAPHQL SUBSCRIPTION
18
I/OGraphQL
Client
I/O
GRAPHQL SUBSCRIPTION
19
I/O I/O
Web Sockets
MQTT or RabbitMQ
Post to Web hooks
Send an email etc
MULTIPLE SUBSCRIPTION ?
20
I/OGraphQL
Client
I/O
MULTIPLEXING
SCALING?
21
I/OGraphQL
Client
I/O
22
P
a
r
s
e
V
a
li
d
a
t
e
Create
Source
Mapper
Execute
Client
ExecuteExecuteExecute
23
P
a
r
s
e
V
a
li
d
a
t
e
Create
Source
Mapper
Execute
Client
ExecuteExecuteExecuteThrottling ???
THANKS
Constructive feedbacks

More Related Content

PPT
LINQ to Relational in Visual Studio 2008 SP1
PDF
PDF
GraphQL with .NET Core Microservices.pdf
PDF
Simplify Access to Data from Pivotal GemFire Using the GraphQL (G2QL) Extension
PDF
GraphQL and its schema as a universal layer for database access
PDF
Bigger, Faster, Easier: Building a Real-Time Self Service Data Analytics Ecos...
PDF
Bigger Faster Easier: LinkedIn Hadoop Summit 2015
PDF
GraphQL the holy contract between client and server
LINQ to Relational in Visual Studio 2008 SP1
GraphQL with .NET Core Microservices.pdf
Simplify Access to Data from Pivotal GemFire Using the GraphQL (G2QL) Extension
GraphQL and its schema as a universal layer for database access
Bigger, Faster, Easier: Building a Real-Time Self Service Data Analytics Ecos...
Bigger Faster Easier: LinkedIn Hadoop Summit 2015
GraphQL the holy contract between client and server

Similar to Graph ql (20)

PDF
MongoDB World 2019: Building a GraphQL API with MongoDB, Prisma, & TypeScript
PPTX
GraphQL API Gateway and microservices
PDF
How We UITest with GraphQL
PPTX
Dot net online training
PPTX
.net online training
PPTX
.NET ONLINE TRAINING COURSE CONTENT
ODP
2010 07-20 TDD with ActiveResource
PDF
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
PDF
Better APIs with GraphQL
PDF
Building Serverless GraphQL Backends
PPT
ADO.NET Entity Framework DevDays
PDF
APIdays Helsinki 2019 - GraphQL API Management with Amit P. Acharya, IBM
PDF
MongoDB.local Berlin: Building a GraphQL API with MongoDB, Prisma and Typescript
PDF
GraphQL & Relay
PDF
Data Con LA 2022 - What's new with MongoDB 6.0 and Atlas
PDF
GraphQL in an Age of REST
PPTX
Introduction to GraphQL
PPTX
Introduction to GraphQL Presentation.pptx
PDF
GraphQL이란?
PDF
The Serverless GraphQL Backend Architecture
MongoDB World 2019: Building a GraphQL API with MongoDB, Prisma, & TypeScript
GraphQL API Gateway and microservices
How We UITest with GraphQL
Dot net online training
.net online training
.NET ONLINE TRAINING COURSE CONTENT
2010 07-20 TDD with ActiveResource
GraphQL as an alternative approach to REST (as presented at Java2Days/CodeMon...
Better APIs with GraphQL
Building Serverless GraphQL Backends
ADO.NET Entity Framework DevDays
APIdays Helsinki 2019 - GraphQL API Management with Amit P. Acharya, IBM
MongoDB.local Berlin: Building a GraphQL API with MongoDB, Prisma and Typescript
GraphQL & Relay
Data Con LA 2022 - What's new with MongoDB 6.0 and Atlas
GraphQL in an Age of REST
Introduction to GraphQL
Introduction to GraphQL Presentation.pptx
GraphQL이란?
The Serverless GraphQL Backend Architecture
Ad

Recently uploaded (20)

PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PPTX
future_of_ai_comprehensive_20250822032121.pptx
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
4 layer Arch & Reference Arch of IoT.pdf
DOCX
search engine optimization ppt fir known well about this
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PPTX
Training Program for knowledge in solar cell and solar industry
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
Configure Apache Mutual Authentication
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Rapid Prototyping: A lecture on prototyping techniques for interface design
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Basics of Cloud Computing - Cloud Ecosystem
future_of_ai_comprehensive_20250822032121.pptx
Statistics on Ai - sourced from AIPRM.pdf
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
NewMind AI Weekly Chronicles – August ’25 Week IV
giants, standing on the shoulders of - by Daniel Stenberg
Co-training pseudo-labeling for text classification with support vector machi...
Consumable AI The What, Why & How for Small Teams.pdf
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
4 layer Arch & Reference Arch of IoT.pdf
search engine optimization ppt fir known well about this
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
Training Program for knowledge in solar cell and solar industry
Custom Battery Pack Design Considerations for Performance and Safety
Taming the Chaos: How to Turn Unstructured Data into Decisions
Configure Apache Mutual Authentication
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Ad

Graph ql