Several ideas for solving high concurrency problems

Several ideas to solve high concurrency

  1. What is high concurrency? High concurrency
    can be understood in this way. At the same time, a large number of users access the same URL at the same time, which can easily cause the server and database resources to be full and collapse. The storage and update results of the database are inconsistent with ideals, such as duplicate data records. , Add records multiple times and other data confusion issues.

  2. High concurrency processing strategy

  • Server The
    server can be used as a load balancing cluster to share the work of the system and reduce the resource burden of a single server

  • database

    • Prevent data confusion caused by concurrency through table design
    • The table design is divided into database and table, which reduces the burden of a single database, and prevents the performance of the database from being reduced due to the increase in data volume.
    • Database read and write separation
    • Store data in redis cache
  • programming

    • Synchronization mechanism
    • Things + locks to prevent concurrent data confusion
    • Data caching to speed up response speed

Guess you like

Origin blog.csdn.net/weixin_43941676/article/details/113845112