Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Serverless Days Milano - Developing Serverless applications with GraphQL

212 views

Published on

This is the presentation that I gave at Serverless Days Milano 2019. Its a 10-minute presentation with lots of videos.

If you want to learn more about AppSync check my playlist on how to get started with this. https://www.youtube.com/playlist?list=PLGyRwGktEFqdX2cjO5xQVKb96q2DpwASR

Published in: Technology
  • Be the first to comment

Serverless Days Milano - Developing Serverless applications with GraphQL

  1. 1. Serverless 💚 GraphQL Marcia Villalba @mavi888uy A Match make in heaven
  2. 2. What is graphql? Let’s talk about the most important concepts
  3. 3. Marcia VillalbaServerless Days Milan GraphQL is a specification Not a framework Not a database Not a server
  4. 4. Marcia VillalbaServerless Days Milan noSQL DB HTTP service SQL DB Client GraphQL
  5. 5. Marcia VillalbaServerless Days Milan noSQL DB HTTP service SQL DB Client GraphQL Schema
  6. 6. Marcia VillalbaServerless Days Milan noSQL DB HTTP service SQL DB Client GraphQL Schema Resolver
  7. 7. Marcia VillalbaServerless Days Milan Graphql Describe what you can do using a type system
  8. 8. Marcia VillalbaServerless Days Milan Graphql Ask for what you need an get exactly that
  9. 9. Marcia VillalbaServerless Days Milan Graphql Get many resources in one request
  10. 10. Marcia VillalbaServerless Days Milan Serverless promise No managing infrastructure Pay for what you use Automagical scale
  11. 11. Marcia VillalbaServerless Days Milan Graphql & serverless Implement your own GraphQL server Use an existing GraphQL server library Use an existing GraphQL platform
  12. 12. AWS AppSync A Serverless GraphQL platform
  13. 13. Marcia VillalbaServerless Days Milan appSync •Provides authentication •Visual tool for queries •Different datasources - AWS Lambda, Elastic Search, RDS, HTTP •Real time and off-line support
  14. 14. Marcia VillalbaServerless Days Milan AWS Cloud Client AWS AppSync AWS Lambda Amazon DynamoDB VLT mappers for request and response VLT mappers for request and response
  15. 15. Marcia VillalbaServerless Days Milan
  16. 16. Marcia VillalbaServerless Days Milan
  17. 17. Marcia VillalbaServerless Days Milan
  18. 18. Marcia VillalbaServerless Days Milan Infrastructure as code •Serverless Framework •Serverless Framework plugin for AppSync (https:// github.com/sid88in/serverless-appsync-plugin)
  19. 19. Lets go to the code…
  20. 20. Marcia VillalbaServerless Days Milan How the client uses this? •AWS Amplify •Client library for building cloud apps •More info: https://aws-amplify.github.io/docs/js/ api#aws-appsync-sdk
  21. 21. Marcia VillalbaServerless Days Milan Configure the client
  22. 22. Marcia VillalbaServerless Days Milan Run a query
  23. 23. Marcia VillalbaServerless Days Milan Things to have in mind •If you do a DynamoDB scan be careful of performance •Calling a cold AWS Lambda •Doing an HTTP call ads latency to the response •Think about when calling other services from AWS Lambda how much latency you are adding to the whole system
  24. 24. Marcia VillalbaServerless Days Milan Thanks! You can ask questions Marcia Villalba @mavi888uy

×