Advertisement
Advertisement

More Related Content

Advertisement

Úvod do AWS AppSync

  1. Introduction to AWS AppSync A Powerful and Serverless ⚡ GraphQL solution Serverless Brno #1 - 24/11/2021 https://unsplash.com/photos/ZdiTUdJ3KBU
  2. About me ● Serverless Developer At Serverless Guru ● Using Serverless Since 2018 ● AWS Community Builder ● Contributor & maintainer of the appsync plugin & simulator for the Serverless Framework ● @Benoit_Boure ● https://github.com/bboure ● https://benoitboure.com/
  3. Topics - Into to GraphQL - AWS AppSync
  4. GraphQL
  5. GraphQL - Query language for APIs - Explore your data as a graph - GraphQL !== Graph Database
  6. Traditional (REST) APIs /users/1 /addresses/456 /images/123
  7. GraphQL
  8. Schema - Base of GraphQL - Defines shape, type of the data - It validates the data at runtime
  9. Types of queries Queries Mutations Subscriptions
  10. AWS AppSync
  11. What is AWS AppSync (and why you should use it)? - Fully managed GraphQL service by AWS - It’s Serverless! (Don’t pay for idle) - It scales!
  12. Principal aspects and features of AWS AppSync - Data Sources - Resolvers (+Pipeline Resolvers) - Authentication & Authorization - Subscriptions (Real-time pub/sub) - Cache
  13. Data sources DynamoDB OpenSearch (ElasticSearch) Aurora Lamda HTTP None (Local resolver)
  14. Resolvers DynamoDB Lamda
  15. Pipeline resolvers Lamda DynamoDB GraphQL AppSync
  16. Authentication & Authorization Lamda API Key OIDC IAM Cognito
  17. Subscriptions Source: https://aws.amazon.com/blogs/mobile/appsync-realtime/
  18. Cache - In-memory caching capability - Full request or per-resolver - Caching keys - TTL: up to 1 hour
  19. Limitations - No custom scalars - No custom domain (There are workarounds, but again, with limitations) - No schema federation - Not compliant with the latest GraphQL specs (June 2018)
  20. Development - Purple stack 💜! Client-side libraries - AmplifyJS - Apollo Client - graphql-code-generator Deployment - Amplify CLI - AWS SAM - CDK - Serverless Framework - CloudFormation Developer tools
  21. Thank you! Děkuji!
Advertisement