What to choose MySQl or Redis

Please explain their difference for a biginner.

I had an experience with MySQL, when I was a beginner. It’s actually not hard to learn MySQL basics, there are tons of good resources on the web. Redis isn’t typically used as the main database. Indexes and foreign keys for tables are not handled by it. It’s not quite a relational database, but it is a little more advanced than a cache engine like Memcache. Redis is frequently used as a form of cache in conjunction with MySQL or another main database, in my experience. Redis’ persistence system is also not very complex. Since Redis is a single threaded server and can be I/O intensive, I usually create secondary Redis instances and let them handle persisting.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.