Skip to content

Does Ocelot support sharing routes and rate limit configurations between its instances if we deploy more than one Ocelot instance? #2098

Pinned Answered by raman-m
MMoussaSURE asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is NO.

Each Ocelot instance counts requests independently for rate limiting due to its internal cache storage. However, if you configure your instance to use a distributed cache, then the rate limiting counters will store values in this distributed cache storage.

Therefore, you should use a distributed cache, as Ocelot does not have the capability to allow one instance to share its internal cache with other instances. Nonetheless, this could be an interesting feature to explore further.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@raman-m
Comment options

@MMoussaSURE
Comment options

@MMoussaSURE
Comment options

@MMoussaSURE
Comment options

@raman-m
Comment options

Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Rate Limiting Ocelot feature: Rate Limiting Configuration Ocelot feature: Configuration Docker Something related to Docker environment
2 participants
Converted from issue

This discussion was converted from issue #2097 on June 13, 2024 09:34.