Can you say the specific usage scenarios in the e-commerce system?
Originally using MySQL
Now change to Redis's usage scenario
Reply content:
Can you say the specific usage scenarios in the e-commerce system?
Originally using MySQL
Now change to Redis's usage scenario
Read/write separation
For example, the product details, the homepage of this rarely edited page, can do cache. Because who is going to check is the same as the return result.
can refer to: 11 Applications of Redis
Without interactivity, pages that involve only data reading can be optimized for caching using Redis.
Does Redis conflict with MySQL?
With Redis, you can use MySQL as well.
In the case of small concurrency, and do not feel how much difference, MySQL, the number of concurrent queries not to a certain level, the speed is not slow ... When the concurrency is large, MySQL query is getting slower, then you can use Redis cache optimization, do not need to directly query the database, the database of the concurrency down, it feels big
E-commerce means selling things like that? That is, according to the size of the memory of the frequently accessed data into Redis.
How can I feel that? Do the performance test, or find an old machine to replace the mechanical hard drive solid can also have the same feeling
See Microtime ()
Using ConnectionPool can improve performance.