Comments (4)
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.
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.
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.
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)
- Version 1.1.2 throws errors HOT 3
- Get reset time with a function HOT 4
- Ratelimit.tokenBucket default tokens value HOT 3
- Dynamic token cost on Ratelimit.tokenBucket algorithm HOT 3
- Ratelimit doesn't seem to return proper reset time HOT 4
- Ratelimit usage with ioredis HOT 4
- Question about rate limit HOT 1
- SlidingWindow dose not work properly in the latest release HOT 1
- Rate Limiter takes 5s to complete API call HOT 5
- blockUntilReady and cf workers HOT 8
- Limiting Concurrency HOT 12
- custom rates support HOT 21
- Upstash Ratelimit Error in GH Action HOT 8
- cf workers: TypeError: Cannot read properties of undefined (reading 'eval') HOT 7
- Support getting and resetting limit of a specific identifier HOT 11
- Self-hosted Redis use? HOT 4
- How to set one hour limit for sliding window? HOT 2
- Awaiting `pending` promise is required in Lambda HOT 1
- Enabling analytics leads to timeouts in response-streaming AWS Lambda HOT 7
- No TTL set for slidingWindow rate limit keys on latest version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ratelimit-js.