Giter Club home page Giter Club logo

myflix-graphql's Introduction

Introduction

Myflix GraphQL as the name sugest is a simple project about testing graphQL interface with AWS AppSync, and discovery the positives and negatives points about implementing this kind of technology. The main point is to mapper with resolvers some AWS Dynamodb tables and expose with a GraphQL contract, another objective is compare the performace and how dificult is the implementation/calling between API GraphQL and API Rest.

Integration

alt text

In this picture we can see how simple is the architecture, basicly was created a frontend in Angular and published in a AWS Cloudfront in front of AWS S3 Bucket, and this frontend call both paths in graphQL (AWS AppSync) and rest to get data from AWS Dynamodb. Bellow there is an image with the final frontend result, the data showed is the same, but the interface was not the same.

alt text

Conclusion

GraphQL is known about offer another way to conect services, another from most popular like gRPC and Rest, but there are some points to observe:

  • It is not easy to implement all the resolvers like queries, mutations and so on, but the result after everything done could bring agility to implement new features from the products, because all the responsability to join and chose data is from the consumer service.
  • There are less network traffic resulting in more performance
  • GraphQL could be a problem for governancy strategies

GraphQL Call alt text

Rest Call alt text

  • In these tests, we can see some comparation beetween graphQL and rest API calls.

Addition Information & Setup

  • The backend: myflix-hexagonalis used to create all data in AWS Dynamodb and the backend rules.
  • The folder graphql-config there is the schema.graphql that could be used inside AWS AppSync
  • Also the same folder, there are the resolvers that could be used in the AWS tool as well
  • It is needed to created the dynamodb connectors
  • The folder IaaC there is the the infraestructure code to S3, ECS.

myflix-graphql's People

Contributors

markoshlima avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.