3 ms·
How do you share your blacklist across servers
by mattbroekhuis 9y ago
How do you share your blacklist across servers
- DanHulton 9y agoThe same way you share any of your other data across servers. Save it in a DB or Redis instance that all your servers can reach.
- eropple 9y agoAt which point you're hitting it on every request and since it'll be a nice, fast, indexed database lookup you might as well just use session tokens instead of a back-assward blacklist. Do the simplest thing that will work.
- iEchoic 9y agoAs I mentioned, blacklists have different characteristics, some of which are desirable. A blacklist of tokens is (for the vast majority of use cases) orders of magnitude smaller than a whitelist, which means they can often be replicated into memory for in-memory lookups on the webserver. This is a complex distributed systems topic, and there are applications for both.
- eropple 9y agoThere are cases where a blacklist totally makes sense, I will agree with you on that. "I can access this thing" are totally not that for the 99.9% case. Do the simplest thing that will work--and the simplest thing so very rarely involves public-key cryptography!