Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How does aws appsync work with amazon dynamodb?


Asked by Robin Merritt on Nov 28, 2021 FAQ



AWS AppSync integrates with Amazon DynamoDB, Amazon Aurora, Amazon Elasticsearch, AWS Lambda, and other AWS services, enabling you to create sophisticated applications, with virtually unlimited throughput and storage, that scale according to your business needs.
In this manner,
The data sources available to AWS AppSync allow you to take full advantage of capabilities provided by Amazon DynamoDB, Amazon Elasticsearch Service, and AWS Lambda when using GraphQL. Features such as indexing and conditional checks, along with Mapping Templates, return comprehensive results from DynamoDB.
And, You can build applications with virtually unlimited throughput and storage. DynamoDB global tables replicate your data across multiple AWS Regions to give you fast, local access to data for your globally distributed applications.
Thereof,
The Lambda function executes an AWS AppSync GraphQL mutation that updates Amazon DynamoDB and broadcasts the changed data to mobile application subscribers. The mobile application receives the data and updates the screen values in real time. The full source code and instructions for deploying the solution can be found at the end of the post.
Also,
The mobile app is written in React Native. A screen in the app connects to the AWS AppSync GraphQL endpoint and initiates a subscription. Just as the Lambda function publishes data to the API, the mobile app subscribes to the API for changes and receives them in real time.