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

GraphQL in e-commerce: Building for the next billion users

Fred
September 29, 2020

GraphQL in e-commerce: Building for the next billion users

This talk highlights the benefits of building scalable applications using GraphQL, the challenges that come with it and how you can better manage these as your application scales to an increasing number of users.

Fred

September 29, 2020
Tweet

More Decks by Fred

Other Decks in Programming

Transcript

  1. GraphQL in e-commerce: Building for the next billion users Fredrick

    Mgbeoma Tuesday, 29. September 2020 Tweet: @fuchodeveloper #GraphQLBerlin
  2. About Fredrick • Software Engineer • Blog - codeisbae.com •

    Twitter - @fuchodeveloper • GitHub -github.com/fuchodeveloper • Web accessibility advocate • Open Source lover Tweet: @fuchodeveloper #GraphQLBerlin
  3. • 2012 - Created by Facebook • 2015 - Released

    to the public • 2016 - Adopted at commercetools. GraphQL API made public • 2018 - 33% coverage at commercetools • 2020 - 81% coverage of the core commerce APIs at commercetools • Present - Moving to achieve 100% coverage* * commercetools has the highest GraphQL coverage in the e-commerce industry with a goal to reach 100%
  4. Performance • Reduced network usage • Consumes less resources for

    your users • Great when building for mobile clients
  5. Speed • Huge speed gains low-end devices and wearable •

    Goodbye to unnecessary payloads • Improved overall user experience
  6. New products Average loading time reduced from 3100ms to 1000ms

    Apple Watch Series 2, loading new products using REST vs GraphQL API
  7. Facebook: About 260 billion requests per day - Nick Schrock

    Source: https://www.b2bnn.com/2015/09/how-facebook-moved-from-the-desktop-to-mobile-with-graphql/ https://twitter.com/reactnewsletter/status/635909339748798464
  8. Cost calculator • Compute how expensive requests are and if

    not performant, it is rejected • Complexity limit of 20000 • Sangria default complexity, can be customised per field
  9. Resources • https:/ /medium.com/@oleg.ilyenko/profiling-graphql-6733 0511f09c • https:/ /www.apollographql.com/blog/securing-your-graph ql-api-from-malicious-queries-16130a324a6b/ •

    https:/ /docs.github.com/en/free-pro-team@latest/graphql /overview/resource-limitations • https:/ /techblog.commercetools.com/building-an-ecomme rce-graphql-api-the-challenges-6d652a95f478