Giter VIP home page Giter VIP logo

potd-node.js-service's Introduction

Hi, I am Akash ๐Ÿ‘‹

I am a software engineer with a love for chai and a passion for writing code.

Socials: LinkedIn โ€ข Twitter โ€ข Peerlist โ€ข Mail


๐Ÿ I am currently a part of the Order Search Team at Dell Inc.

โš—๏ธ You'd mostly find me fiddling around with Node.js, Go, C++, Docker or building CI/CD pipelines with Actions or Travis CI.

Feel free to reach out and connect with me.

~ akashchouhan16

potd-node.js-service's People

Contributors

akashchouhan16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gamethapcam

potd-node.js-service's Issues

To add caching to reduce the number of network requests to the DB.

  • Currently, the server makes a query to the DB with the iterator value to fetch the problem of the day, for every request made by the client on /problemoftheday.
  • This is not at all scalable and it also leads to very high latencies to process each request. Caching the problem of the day to the server memory itself with the first request. ~600-1200ms. Further get requests made by the client could directly access the problem of the day from the server cache, hence reducing latency to less than ~50-60ms.
  • Add Caching onto the server, to avoid network requests to DB for every client-side request.

Migrate Instance from Heroku

  • Current version is running on Heroku's free tier instance
  • Migrate to DigitalOcean droplet or any low-latency deployment service.

Introduce Rate Limiter

  • Implement API rate limiter for /problemoftheday api
  • Expected Config
const limitConfig = {
    windowMs: 5*60*1000,                    // 5min window
    max: 7                                 //max no of requests per window
};

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.