logoalt Hacker News

9devyesterday at 2:20 PM2 repliesview on HN

Sure the data is lost. A session commonly holds arbitrary state, and even if it’s just the login information. This is ridiculous.


Replies

tossandthrowyesterday at 4:34 PM

Obviously these are application decisions.

You, obviously, don't commit important data only to a session that you can loose, if the application does not allow it.

We use redis as infrastructure. To route events and as a cache.

For us redis could go down and we would merely see a degradation of our service with no data loss.

I recommend using redis like that. And then use a database that supports transactions for real data problems.

But we are different. And that's OK.

show 1 reply
trumpdongyesterday at 3:09 PM

If you consider it important, you have to store it in a real database. No buts. If you don't consider it important, sharded redis works fine.

show 1 reply