Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GraphQL + Relay + Serverless

텀블벅
November 10, 2017

GraphQL + Relay + Serverless

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

텀블벅

November 10, 2017
Tweet

Other Decks in Technology

Transcript

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

    ࢚ಿ ProductList Cart ShippingAddress ProductData ProductData
  2. REST GET /me { name: "߅ഋध", company: "థ࠶ߢ", hobby: "୷ҳ",

    favoriteColor: "౵ی࢝", country: "؀ೠ޹Ҵ", conference: "playnode 2017", cloudProvider: "IBM", age: "?^^^^", address: "??????????", cardNumber: "@#$D@#$#$%#$FD@#$@#" }
  3. ProductList Cart ProductData ProductData ShippingAddress { cart { products {

    imageUrl description price shippingCost } shippingAddress } } POST /graphql GraphQL
  4. 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 } }
  5. 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 } }
  6. 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 } }
  7. 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 } }
  8. 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 } }
  9. Pricing • IBM Cloud functions • 500ms प೯ • 512MB

    @ 5,000,000 ਃ୒ പࣻ • $14.45
  10. GraphQL API Gateway Cart Product Search Message Queue Object Storage

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