Mobile Services | AWS AppSync Flashcards
What is AWS AppSync?
General
AWS AppSync | Mobile Services
AWS AppSync is a new service that enables developers to manage and synchronize mobile app data in real time across devices and users, but still allows the data to be accessed and altered when the mobile device is in an offline state.
The service further allows developers to optimize the user experience by selecting which data is automatically synchronized to each user’s device when changes are made, minimizing storage and bandwidth requirements, with a query language called GraphQL.
Using these capabilities, developers can, in minutes, build real time collaborative experiences spanning browsers, mobile apps, Alexa skills, and IoT devices that remain usable when network connectivity is lost.
What types of apps can I build using the features released today?
General
AWS AppSync | Mobile Services
AWS AppSync can be used to build mobile apps that would benefit from being able to synchronize user and app data across devices, continue functioning when disconnected, and offer real-time collaboration experiences. There are applications across all verticals. Examples include:
Gaming apps with real-time scoreboards
News feeds and financial data
Customer service dashboards
Shared wallet, travel or itinerary tracking with offline usage
Social Media with content feeds and search/discovery/messaging
Dating apps with likes, messaging and geo/proximity awareness
Field service apps that need to allow for querying and CRUD operations, even when disconnected
Document collaboration
3D collaboration such as shared whiteboards
AR/VR with multiple actors (doctors in surgery with observers, teachers and students)
Multi-device (e.g., Alexa, mobile, web, IoT) and multi-modal applications (e.g., task list) that need to work offline yet reflect the same eventually consistent state
Chat apps, including presence indicators and conversation history
What application developer languages are supported in AWS AppSync?
General
AWS AppSync | Mobile Services
AWS AppSync SDKs support iOS, Android, and JavaScript. The JavaScript support spans web frameworks such as React and Angular as well as technologies such as React Native and Ionic. You can also use open source clients to connect to the AppSync GraphQL endpoint for using other platform such as generic HTTP libraries or even a simple CURL commands.
What is GraphQL ?
General
AWS AppSync | Mobile Services
GraphQL is a data language to enable client apps to fetch, change and subscribe to data from servers. In a GraphQL query, the client specifies how the data is to be structured when it is returned by the server. This makes it possible for the client to query only for the data it needs, in the format that it needs it in.
What is a GraphQL Schema?
General
AWS AppSync | Mobile Services
A GraphQL schema is a definition of what data capabilities are available for the client application to operate on. For example, a schema might say what queries are available or how an app can subscribe to data without needing to know about the underlying data source. Schemas are defined by a type system, which an applications data model can leverage.
Can AWS AppSync create a database for me?
General
AWS AppSync | Mobile Services
Customers can create a GraphQL schema, either by hand or using the console, and AWS AppSync can automatically provision Amazon DynamoDB tables and appropriate indexes for you. Additionally, it will connect the data sources to “GraphQL resolvers” allowing you to just focus on your application code and data structures.
Can I use AWS AppSync with my existing AWS resources?
General
AWS AppSync | Mobile Services
Yes. With AWS AppSync you can use existing tables, functions, and domains from Amazon DynamoDB, AWS Lambda and Amazon Elasticsearch Service with a GraphQL schema. AWS AppSync allows you to create data sources using existing AWS resources and configure the interactions using Mapping Templates.
What is a Mapping Template?
General
AWS AppSync | Mobile Services
GraphQL requests execute as “resolvers” and need to be converted into the appropriate message format for the different AWS Services that AWS AppSync integrates. For example, a GraphQL query on a field will need to be converted into a unique format for Amazon DynamoDB, AWS Lambda, and Amazon Elasticsearch Service respectively. AWS AppSync provides Mapping Templates for this, which are written in Apache Velocity Template Language (VTL) allowing you to provide custom logic to meet your needs. AWS AppSync also provides built-in templates for the different services and utility functions for enhanced usability.
How is data secured with AWS AppSync?
General
AWS AppSync | Mobile Services
Application data is stored at rest in your AWS account and not in the AWS AppSync service. You can protect access to this data from applications by using security controls with AWS AppSync including AWS Identity and Access Management (IAM), as well as Amazon Cognito User Pools. Additionally, user context can be passed through for authenticated requests so that you can perform fine-grained access control logic against your resources with Mapping Templates in AWS AppSync.
Can I make my data real-time with AWS AppSync?
General
AWS AppSync | Mobile Services
Yes. Subscriptions are supported with AWS AppSync against any of the data sources, so that when a mutation occurs, the results can be passed down to clients subscribing to the event stream immediately using a MQTT over Websockets.
How can I do complex queries with AWS AppSync?
General
AWS AppSync | Mobile Services
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. Use cases such as fuzzy searches, geo searches and more that Amazon Elasticsearch Service offers are available to your application. Finally, Lambda can be used for serial or batched requests to return data from other sources such as Amazon Aurora.
What AWS Regions are available for AWS AppSync?
General
AWS AppSync | Mobile Services
AWS AppSync is available in US East (N. Virginia), US West (Oregon), and US East (Ohio), EU (Ireland), Asia Pacific (Tokyo), and Asia Pacific (Sydney) regions.