3 ms·
I added a few more notes on when/why to use Redis and when to use something else: https://github.com/fpereiro/backendlore#redis https://github.com/fpereiro/back
by fpereiro 7y ago
I added a few more notes on when/why to use Redis and when to use something else: https://github.com/fpereiro/backendlore#redis https://github.com/fpereiro/backendlore#redis . Redis can take you surprisingly far as a general purpose database. I prefer to use either Redis or a relational database, but I'm in no position to tell you that you should do that too, particularly if MongoDB works well for you.
- mercer 7y agoCould you elaborate on why your first choice would be Redis? I tend to go for Postgres, but mostly out of habit and familiarity.
- fpereiro 7y agoI love working with fundamental data structures (sets, lists, hashes) much more than working with relational databases. I feel I'm more productive and my code is shorter. It does, however, require far stricter validations in the code; in general a lot of what a relational database does for you (in terms of type validation, schemas and even data consistency), you must do yourself in code or by using redis carefully.