-
In the docs, it says in-memory storage is "only meant for testing/development and should be replaced with an appropriate storage of your choice before moving to production". Why is that? Is it because, if you have multiple workers, then the rate limiting will only be on a per-worker basis (given a worker can only see its own memory)? I'd prefer not to have to make a round-trip network call. So, I'm fine with the rate not being exact, i.e. being a per-worker rate limit. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
There have been issues raised in the past around accidentally shipping the in-memory storage since it is the default and not getting the expected rate limits since "1/hour/user" distributed across n worker processes ends up meaning ~ "n/hour/user". The warning is simply there to ensure everyone gets a heads up early on. Additionally, the in-memory storage implementation was mostly intended to be a reference implementation and is probably not as optimized as it could be. |
Beta Was this translation helpful? Give feedback.
-
I just remembered that I had put this in - if you explicitly set |
Beta Was this translation helpful? Give feedback.
-
Makes sense, thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
There have been issues raised in the past around accidentally shipping the in-memory storage since it is the default and not getting the expected rate limits since "1/hour/user" distributed across n worker processes ends up meaning ~ "n/hour/user".
The warning is simply there to ensure everyone gets a heads up early on.
Additionally, the in-memory storage implementation was mostly intended to be a reference implementation and is probably not as optimized as it could be.