AppSync
Last updated
Last updated
It is a managed service, that helps to built GraphQL
APIs.
GraphQL
makes it easy for application to get exactly the data they need, using GraphQL
queries (another way of making API).
This includes combining data from one or more sources.
NoSQL
data stores, Relational database, HTTP APIs.
It integrates with DynamoDB
, Aurora
, OpenSearch
and others.
Custom sources can also used with AWS Lambda.
Retrieve data in real-time with WebSocket or MQTT on Websocket.
For mobile apps if you need local data access and data synchronization, (its basically a replacement for Cognito Sync
)
GraphQL
schema is required to get started with AppSync
.
For custom domain && HTTPs, use CloudFront in front of AppSync
.
AppSync
receives GraphQL
queries send by clients and forwards it to resolver like DynamoDb
resolver.
AppSync
knows how to return all the query details as per query in json
form.
Different integrations possible with AppSync
.
There are four ways one can authorize applications to interact with your AWS AppSync
GraphQL API.
API KEY
AWS IAM
: Use roles, users, cross-account access
OPENID_CONNECT
: Using OpenID connect provider/JSON Web Token
AMAZON_COGNITO_USER_POOLS
Lambda authorizor
API Responses can be cached. Three types of caching are supported.
No Cache
Full request cache
Per-resolver cache
Appsync
is integrated with CloudWatch
and captures logs and metrics.
A dashboard capturing metrics is available.