Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In my opinion, go with MySQL.</p> <p>The two biggest points you will think about when making the decision are:</p> <p><strong>1) <em>Have you thought about your use-cases?</em></strong></p> <p>You said you want to implement a follower system. If you're only going to be displaying a list of followers which each user has, then the Redis <code>SET</code> will be enough.</p> <p>But what if you want to get a list of "A list of users which you are currently following"? You can't dig that up easily from your Redis <code>SET</code>, right? Or how about if you wanted to know if User-X is following User-A ? If User-A had 10,000 followers, this wouldn't be easy either would it?</p> <p><strong>MySQL is much more flexible when querying different types of results in different scenes.</strong></p> <p><strong>2) <em>Do you really need the performance difference?</em></strong></p> <p>As you know, Redis IS faster than MySQL in these kinds of cases. It is a simple Key-Value system, so it will exceed the performance of MySQL. Checking out performance results like these: </p> <p><a href="http://colinhowe.wordpress.com/2009/04/27/redis-vs-mysql/" rel="nofollow">http://colinhowe.wordpress.com/2009/04/27/redis-vs-mysql/</a> </p> <p><a href="http://ruturaj.net/redis-memcached-tokyo-tyrant-and-mysql-comparision/" rel="nofollow">http://ruturaj.net/redis-memcached-tokyo-tyrant-and-mysql-comparision/</a></p> <p>But the performance difference between Redis and MySQL really starts to kick in only after about 5,000request/sec . Otherwise you'd wouldn't be seeing a difference of more than 50ms.</p> <p><strong>Performance difference will not be an issue until you have a VERY large traffic.</strong></p> <p>So, after thinking about these two points, MySQL would be a better answer.</p> <p>Redis will be good only if:</p> <p>1) The purpose of the set/list is specific, and there is no need for flexibility in the future</p> <p>2) You feel that the performance difference will actually have an effect on your architecture.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload