GraphQL + Relay + Serverless

3a10bc081242e09952083e4c5dc2fff6?s=47 텀블벅
November 10, 2017

GraphQL + Relay + Serverless

필요한 리소스만을 요청하고 사용하는 API 만들기

3a10bc081242e09952083e4c5dc2fff6?s=128

텀블벅

November 10, 2017
Tweet

Transcript

  1. 5.

    ੢߄ҳפ ੢߄ҳפী׸ӟ࢚ಿ ࢸݺ оѺ ߓ࣠࠺ ߓ࣠઱ࣗ 25,000 12,000 2,500 2,500

    ࢚ಿ ProductList Cart ShippingAddress ProductData ProductData
  2. 9.
  3. 10.
  4. 11.
  5. 12.
  6. 14.
  7. 21.

    REST GET /me { name: "߅ഋध", company: "థ࠶ߢ", hobby: "୷ҳ",

    favoriteColor: "౵ی࢝", country: "؀ೠ޹Ҵ", conference: "playnode 2017", cloudProvider: "IBM", age: "?^^^^", address: "??????????", cardNumber: "@#$D@#$#$%#$FD@#$@#" }
  8. 25.

    ProductList Cart ProductData ProductData ShippingAddress { cart { products {

    imageUrl description price shippingCost } shippingAddress } } POST /graphql GraphQL
  9. 26.
  10. 27.
  11. 28.
  12. 29.
  13. 31.

    Types type Query { cart: Cart } type Cart {

    products: [Product]! shippingAddress: String! } type Product { imageUrl: String! description: String! price: Int! shippingCost: Int! } { cart { products { imageUrl description price shippingCost } shippingAddress } }
  14. 32.

    Types type Query { cart: Cart } type Cart {

    products: [Product]! shippingAddress: String! } type Product { imageUrl: String! description: String! price: Int! shippingCost: Int! } { cart { products { imageUrl description price shippingCost } shippingAddress } }
  15. 33.

    Types type Query { cart: Cart } type Cart {

    products: [Product]! shippingAddress: String! } type Product { imageUrl: String! description: String! price: Int! shippingCost: Int! } { cart { products { imageUrl description price shippingCost } shippingAddress } }
  16. 34.

    Types type Query { cart: Cart } type Cart {

    products: [Product]! shippingAddress: String! } type Product { imageUrl: String! description: String! price: Int! shippingCost: Int! } { cart { products { imageUrl description price shippingCost } shippingAddress } }
  17. 35.

    Types type Query { cart: Cart } type Cart {

    products: [Product]! shippingAddress: String! } type Product { imageUrl: String! description: String! price: Int! shippingCost: Int! } { cart { products { imageUrl description price shippingCost } shippingAddress } }
  18. 40.
  19. 41.
  20. 42.
  21. 43.
  22. 44.
  23. 45.
  24. 46.
  25. 47.
  26. 48.
  27. 55.
  28. 56.
  29. 57.
  30. 63.

    Pricing • IBM Cloud functions • 500ms प೯ • 512MB

    @ 5,000,000 ਃ୒ പࣻ • $14.45
  31. 67.
  32. 68.

    GraphQL API Gateway Cart Product Search Message Queue Object Storage

    ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ ⚡ Email Authentication