AppSync

Icon

AppSync

About

  • 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.

Working

  • 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.

AppSync Working

Integration Diagram

  • Different integrations possible with AppSync.

    Integration

Security

  • 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

Caching

  • API Responses can be cached. Three types of caching are supported.

    • No Cache

    • Full request cache

    • Per-resolver cache

Monitoring

  • Appsync is integrated with CloudWatch and captures logs and metrics.

  • A dashboard capturing metrics is available.

Last updated