Data caching: Agents or ETS?

ConCache, ETS, CacheX (I used it over ConCache due to a few features that were useful to me) and so forth are, as most of their names imply, good to cache data. If you are storing data that should be serialized out then definitely should use something else, like Mnesia, a database, etc… I have ConCache in front of my permissions table on my database for example. I hit it to get a list of permissions for a user quite often and randomly through-out code, it has a time-out of 5 minutes and anytime a permission is changed for a user it is cleared, improved through-put quite nicely and reduced database access substantially.

4 Likes