Jay
Jay

Reputation: 2875

Users table - redis or postgres

Redis persists data and works on key value stores with a great feature called Hashsets.

Should redis be used to store information like 'customer, user, product, order' or is this the job of a relational database?

Upvotes: 0

Views: 690

Answers (1)

yojimbo87
yojimbo87

Reputation: 68383

If your data requires relations and you don't need to cache it for performance reasons then PostgreSQL will probably suite you more. Redis is mostly used for it's speed capabilities and support for advanced (mostly key-value based) data structures, but RDBMS like Postgres are better to use for scenarios with relationships and ACID requirements.

Upvotes: 2

Related Questions