Giter VIP home page Giter VIP logo

rate_limiter_app's Introduction

Rate Limiter App

Build Status Maintainability Test Coverage

This is a demo application that implements a rate limiter.

A live demo of this app can be seen at https://rate-limiter-app-demo.herokuapp.com

Getting started

This application as two system dependencies.

  • Ruby 2.5.1
  • Redis

You will need this installed before you can begin.

To get started:

Clone the repository:

git clone https://github.com/lsylvester/rate_limiter_app.git
cd rate_limiter_app

And run the setup script

./bin/setup

Then start up the server

./bin/rails server

And visit

http://localhost:3000/

You will see OK for the first 100 times within the hour, but after that your responses will be rate limited.

Configuring Redis

Redis is configured per environement via the ./config/redis.yml file.

There are two specials keys in this file:

All other options are passed directly into the redis instance. If these are not set, redis can be configured via the environment varaiable REDIS_URL or the default options will be used.

rate_limiter_app's People

Contributors

lsylvester avatar

rate_limiter_app's Issues

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.