Method for highly concurrently accessing database based on mysql
A technology of database and incoming data, which is applied in the information field to achieve the effect of reducing the number of queries, promoting the application value, and avoiding cache avalanche
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0020] The method for accessing the database based on mysql high concurrency in the present invention adds a redis cache on the mysql, and performs cache processing first when reading and writing, and accesses the database if the cache fails, wherein multiple redis nodes are used, and the master and slave nodes are used together.
[0021] Add multiple memory queues when incoming data, and adjust dynamically to achieve load balancing. Use the hash algorithm to perform hash remainder on the id value of the incoming data, and select a specific queue. When writing, write directly to the memory queue. For read operations, the cache is accessed. The cache loop takes out the read command from the queue. If it is a write command, delete the cache first, write it to the database, and synchronize redis after writing the database, and delete the update command in the queue. When the read operation queries the cache, if the cache is found, it will be returned to the client directly. If ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com

