News for hackers. Stuff that matters.
Re:Do you need Redis? PostgreSQL does queuing, locking, and ... by quantadev on Sunday November 03, 2024 @07:48PM (#42037407)
I have Docker running in swarm mode where it will spin up multiple load balanced instances of my web app (where requests can get routed randomly to any instance). So I use Redis to store "User Session Information" so the session can be read/written from any instance, supposedly faster than using a DB.
Re:Do you need Redis? PostgreSQL does queuing, locking, and ... by tbrownaw on Sunday November 03, 2024 @09:35PM (#42037898)
When I've used redis to store web sessions, it is in fact acting as a k/v store. The session ID is the key, and the (serialized) session state is the value.
Re:Do you need Redis? PostgreSQL does queuing, locking, and ... by quantadev on Sunday November 03, 2024 @10:25PM (#42038142)
Yep, that's what I'm doing too. I bet it's the most common use case for Redis.