4 ms·
I like to run a single redis server process on each instance that's serving the webapp, and also have a shared redis cluster for shared cached state (like user
by phendrenad2 2y ago
I like to run a single redis server process on each instance that's serving the webapp, and also have a shared redis cluster for shared cached state (like user sessions). That way there's a fast local cache for people to use for caching API calls and other things where duplication is preferable to latency.
- tengbretson 2y agoIf it's purely ephemeral and not replicated between instances what are you getting from redis that couldn't be done with SQLite or even a good old hashmap in a separate thread?
- phendrenad2 2y agoRedis is probably slightly faster than sqlite, and developers are used to using redis primitives and APIs.
- ricardobeat 2y agoYou get standardized data structures and consistent operations on them for free.