AWS AppSync

AWS AppSync is a fully managed service for creating GraphQL APIs and Pub/Sub APIs that natively supports DynamoDB, Aurora, AWS Lambda, and Amazon OpenSearch Service as data sources. It also supports other data sources, making it more versatile.

alt text

Supported Data Sources

  1. Amazon DynamoDB: AppSync natively integrates with DynamoDB, allowing you to use DynamoDB tables as data sources for your GraphQL API.
  2. Amazon Aurora: AppSync works with SQL databases via Aurora or any other RDS database using resolvers.
  3. AWS Lambda: You can use Lambda as a data source for custom business logic or to integrate with other AWS services or external APIs.
  4. Amazon OpenSearch Service: Allows querying and managing search indices via your GraphQL API.
  5. HTTP Endpoints: You can connect AppSync to any RESTful API or HTTP service as a data source.
  6. Custom Data Sources: With Lambda or HTTP, you can extend AppSync to support any backend system.

AppSync for GraphQL APIs and Pub/Sub APIs

  1. GraphQL APIs:
    1. AWS AppSync's primary use case is creating GraphQL APIs to interact with data sources like DynamoDB, Aurora, Lambda, and more.
    2. It includes features like schema definition, query execution, and resolvers to manage how data is fetched and returned.
  2. Pub/Sub APIs:
    1. AppSync natively supports real-time subscriptions using GraphQL subscriptions and WebSockets.
    2. Beyond GraphQL, you can use it for Pub/Sub messaging to enable real-time data updates, making it versatile for use cases like collaboration apps, live dashboards, and chat systems.