4 ms·
Rate limiting isn't something your app should be concerned about. That should be handled a layer up, e.g. nginx. Chances are it does a much better job than wh
by xienze 12y ago
Rate limiting isn't something your app should be concerned about. That should be handled a layer up, e.g. nginx. Chances are it does a much better job than whatever you could come up with.
- danneu 12y agoMaybe if it's trivial blanket rate-limiting on a single server. Anything more complicated that needs synchronization/database access, I'd rather just read and maintain application-level middleware. It's not rocket science.
- czbond 12y agoLook at Tyk for this, it should be handled at a layer higher than any individual API IMHO.