How to put requests from one consumer in queue (Lock feature) #7272
Replies: 3 comments
-
Interesting use case. How should this work on a Kong cluster? Ideas? |
Beta Was this translation helpful? Give feedback.
-
I imagine the second case would be very straightforward to do via Queueing up requests would take a bit more logic, again, pretty easy to do with a local redis queue used and Kong consuming that queue. Either option requires a custom plugin :) |
Beta Was this translation helpful? Give feedback.
-
@lavernyer to be clear, neither of these options is possible today. However, it's possible to extend Kong via plugins (see https://docs.konghq.com/1.1.x/plugin-development/), so you can develop the business logic you need here and implement it via a plugin for Kong. |
Beta Was this translation helpful? Give feedback.
-
I'm using kong as API gateway for frontend. How can I prevent multiple requests from frontend at the same time?
Expected options:
Example:
Consumer do 5 POST requests to the route '/api/order'.
Beta Was this translation helpful? Give feedback.
All reactions