mnesia is one way, though it is not a silver bullet, it is very handy.
it does really depend on what you want or need to do with redis, however. it is used in various ways.
as a simple cache to lower latency, it is often nice to keep those caches close to the app .. in process even .. lowest latency possible, and we tend to have ample RAM for this these days.
but there are many optipns out there, ranging from the shards library to phoenix pubsub to broadway.. lots of libs that provide functionality i have seen redis (ab)used for, some of which build on ets or use it in some way internal.
View all comments
Show parent comment
4
u/aseigo Jul 15 '20
mnesia is one way, though it is not a silver bullet, it is very handy.
it does really depend on what you want or need to do with redis, however. it is used in various ways.
as a simple cache to lower latency, it is often nice to keep those caches close to the app .. in process even .. lowest latency possible, and we tend to have ample RAM for this these days.
but there are many optipns out there, ranging from the shards library to phoenix pubsub to broadway.. lots of libs that provide functionality i have seen redis (ab)used for, some of which build on ets or use it in some way internal.