How can you feel the noticeable performance gains from Redis

Source: Internet
Author: User
Keywords Php
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.