3 ms·
You can use an in memory LRU cache of request orgin+count. You can also periodically take that data and do an INCREMENT against your DB to get fairly scalable r
by winrid 5y ago
You can use an in memory LRU cache of request orgin+count. You can also periodically take that data and do an INCREMENT against your DB to get fairly scalable rate limiting.