Code Monkey home page Code Monkey logo

basic-caching-demo-nodejs's Introduction

Basic Redis Caching Demo

This app returns the number of repositories a Github account has. When you first search for an account, the server calls Github's API to return the response. This can take 100s of milliseconds. The server then adds the details of this slow response to Redis for future requests. When you search again, the next response comes directly from Redis cache instead of calling Github. The responses are usually returned in a millisecond or so making it blazing fast.

Overview video

Here's a short video that explains the project and how it uses Redis:

Watch the video on YouTube

Try it out

Deploy to Heroku

Deploy to Heorku

Deploy to Vercel:

Deploy with Vercel

Deploy to Google Cloud

Run on Google Cloud

How it works?

How it works

1. How the data is stored:

SETEX microsoft 3600 1000

2. How the data is accessed:

GET microsoft

How to run it locally?

Copy .env.sample to create .env. And provide the values for environment variables

- REDIS_ENDPOINT_URI: Redis server URI
- REDIS_PASSWORD: Password to the server

Run frontend

cd client
yarn
yarn serve

Run backend

yarn
yarn start

basic-caching-demo-nodejs's People

Contributors

ajeetraina avatar dougtidwell avatar itsolution-git avatar prasankumar93 avatar simonzsolt avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

basic-caching-demo-nodejs's Issues

Docker file error

"failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 5: COPY requires at least two arguments, but only one was provided. Destination could not be determined."

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.