80 points · by candresbolanos · 10y ago · 9 comments
AFAIK, ETS tables can't be sharded.
IMHO, they are similar libs/tools, which drives similar issues, but depending on the case, one tool can fits better to solve a set of problems than the other and viceverza. For example, the typical case, caching and/or distributed caching, here you want to be able not only to get the best performance, but also scale-out over the write-locks and contention, without compromise performance – as much as possible. In this case, ETS or Shards might be a better option. But suppose that you want to be able to handle RAM and Disk persistence transparently, you want to do it configurable, besides, be able to handle transaction, well, in that case, go for mnesia might be better option. But in general, if you always gonna have memory storage, might be better option go for ETS or in this case Shards, which add the ability to scale linearly over locks and contention issues.
Thanks!!