logoalt Hacker News

jchwtoday at 4:45 PM2 repliesview on HN

I am not aware of an in-process alternative similar to what Redis offers.


Replies

WJWtoday at 6:05 PM

Well the most basic redis replacement would be just a global hashmap to replace GET and SET, possibly with a background thread to periodically delete expired keys. But obviously that stops working as soon as you get a second node.

The entire value of redis IMO is that is ISN'T inside your normal application, but rather some shared storage that all nodes can use to coordinate and that survives deploys, but that provides more ergonomic data structures than SQL databases. Caches are only one type of such shared data, but things like feature flags, circuit breakers and rate limiters are also super common (and super useful).

s_trumpettoday at 5:08 PM

Mnesia, if you’re using Erlang or Elixir.

show 1 reply