Code Monkey home page Code Monkey logo

Comments (4)

chronark avatar chronark commented on August 27, 2024

Hey,
unfortunately our redis service is not available for self hosting.
Rate limiting does not add any extra cost, but you pay for the underlying database.

How much traffic do you forsee? Generally the feedback we received is it's very cheap even for larger projects. Can you share a little more about your work?

from ratelimit-js.

trompx avatar trompx commented on August 27, 2024

Thanks for the fast answer @chronark.
We hit multiple APIs where we have a per request cost, besides they have their own rate limits. We don't have specific burst but aim to have a constant 500 maybe scaling to 2000 rps. We should be able to handle that load on very small redis instances maybe for less than 20$/mo after some tests but were considering a more future proof scalable solution.
Correct me if I am wrong but migrating our load to upstash, let's say for 1000 rps would be approximatly 2b requests per month, would cost around 4000$ using your service? And 16000$ if we'd actually use the slidingWindow algorithm (well it would be more as we use redis for more than rate-limit).

Also could you clarify the following please?

Rate limiting does not add any extra cost

from ratelimit-js.

chronark avatar chronark commented on August 27, 2024

The pay as you go plan is nice to get started but for higher loads we offer fixed cost plans as well.
you can go to the PRO tier for a fixed price of $280 per month and handles 2k rps. see here

Like I said, using the @upstash/ratelimit library does not add any cost by itself to your upstash bill. It does however make requests to your database which you will be charged for.

from ratelimit-js.

chronark avatar chronark commented on August 27, 2024

There's also an open source wrapper for redis with upstash compatible rest api.
That way you can use @upstash/ratelimit with your own redis db
https://github.com/mna/upstashdis

from ratelimit-js.

Related Issues (20)

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.