GithubHelp home page GithubHelp logo

kettanaito / graphql-server Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 3.0 607 KB

Production-ready setup of GraphQL Express server based on Apollo Server.

JavaScript 100.00%
express-js graphql node

graphql-server's People

Contributors

kettanaito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

graphql-server's Issues

Add logging

What

Need to add scalable logging system to the server.

Why

To write the request/response logs, including errors for better monitoring and debugging.

How

  1. Introduce a logging abstraction above controllers.
  2. Make a configurable pool of dynamic log files, depending on their file size.
  3. Write incoming requests and responses to the logs.
  4. Write meaningful errors to the logs.

Refine resolver/controller contract

What

I propose to define a clear resolver/controlled contract.

Why

At the moment different resolvers ping different controllers differently. I want to have a unified interface of controllers calls to make a more intuitive usage of both.

Export like a middleware

What

Need to export the main functionality like an Express middleware.

Why

So there would be two options: standalone server, and a middleware establishing the same functionality on the given route of the existing server.

Introduce requests query (i.e. RabbitMQ)

What

I suggest to add a request query to the server setup.

Why

Request query allows to accumulate and resolve high load of requests on the server. It also improves server's scalability.

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.