5 ms·
ACLatraz: Redis-powered access control for your ruby apps
- deleted 16y ago[deleted]
- timmorgan 16y agoCan someone explain why Redis? Would one run a Redis server just for ACLs (separate from your existing db, say MySQL), or does this really only make sense if you're already using Redis? Edit: Looks to me like the store is programmable (http://github.com/nu7hatch/aclatraz/blob/master/lib/aclatraz/store/redis.rb http://github.com/nu7hatch/aclatraz/blob/master/lib/aclatraz...) -- I suppose one could build one for MySQL, or for Riak, or whatever. So, back to my original question... is Redis superior for this sort of thing?
- snissn 16y agoyou don't want things like ACL hitting disk if you can avoid it, however if you're already on rails i don't even know :) Although the opposite response may be that you definitely want things like ACL to be transactional / persistent which may be a strong reason to specifically not use something like redis and use SQL, to each their own however
- apgwoz 16y agoRedis is persistent, though it doesn't, but can, write every write to disk right away.
- timmorgan 16y agoI hacked up a Riak store for this for anyone who is interested: http://github.com/seven1m/aclatraz/blob/master/lib/aclatraz/store/riak.rb http://github.com/seven1m/aclatraz/blob/master/lib/aclatraz/...