Tag:avalanche

  • 6、 Redis’s cache exception handling — cache avalanche, cache breakdown, cache penetration

    Time:2021-12-5

    In the process of practical application of redis, if redis is used as the cache of the database, we often encounter these problems: cache avalanche, cache breakdown, cache penetration, etc. Cache avalanche Cache avalanche means,of large numberThe application cannot be processed in the redis cache, and then a large number of requests are sent to […]

  • Redis breakdown, penetration and avalanche

    Time:2021-11-20

    Do you really know about breakdown, penetration and avalanche?I believe you will understand after reading my introduction below breakdown Generally speaking, breakdown: the premise is that a key is highly concurrent to redis. At that moment, the key disappears (expiration time / LRU / LFU). At this time, the disappearance of the key causes concurrent […]

  • Distributed service fuse downgraded current limiter to hystrix

    Time:2021-10-22

    Original address 1 Original address 2 Full text overview [TOC] Why need hystrix Hystrix official website address GitHub Hystrix is also Netfix’s contribution to distributed systems. Similarly, it has entered the non maintenance phase. Not maintaining does not mean being eliminated. It can only show that the new technology is constantly iterative. The brilliant design […]

  • Cache and database double write consistency | database

    Time:2021-10-21

    preface As we all know, when optimizing and improving the performance of the project, we introduced a concept of caching, that is, a technology for caching data, a component that will be introduced in the initial architecture planning of the project. Using cache has many advantages: speeding up the response speed of requests, reducing database […]

  • Redis series (VI) redis’s cache penetration, cache breakdown and cache avalanche

    Time:2021-9-16

    It is more or less used in NoSQL development, and it is also a necessary knowledge point for interview. I’ve asked every interview in recent days. However, I feel that the answer is not good, and there are still many knowledge points that need to be sorted out. Here, I’ll comb through several redis notes, […]

  • Avalanche cache, concurrent cache and

    Time:2021-7-26

      Cache penetration, cache concurrency and cache avalanche are common cache problems caused by large amount of concurrency. The causes and solutions are recorded here. Cache penetration is caused by malicious attack or unintentional; Cache concurrency is caused by insufficient design; Cache avalanche is caused by cache invalidation at the same time.   1、 Cache […]

  • Implementing distributed algorithms using memcached

    Time:2021-7-24

    Implementing distributed algorithms using memcached Distributed algorithm Remainder calculation dispersion method The CRC is calculated according to the key, and then the number of servers is modeled to obtain the memcached server node. When the server is unable to connect, add the number of connection attempts to the key and recalculate. Disadvantages: When adding or […]

  • Redis cache avalanche, breakdown and penetration

    Time:2021-7-9

    catalogue 1、 Three problems of cache 2、 Cache avalanche 2.1 avalanche scenario 2.1 response plan 3、 Buffer breakdown 3.1 breakdown scenarios 3.2 response plan 4、 Cache penetration 4.1 penetration scenarios 4.2 response plan 1、 Three problems of cache Once these three problems occur, it will lead to a large number of requests to enter the […]

  • Microservice War: cascading failures and avalanches

    Time:2021-6-6

    “The war of microservice” is a series of themes about microservice design thinking, mainly aiming at some contradictions / conflicts after the microservice, not involving a specific knowledge point. If you have any questions or suggestions, please feel free to communicate. stayThe war of microservices: unification and standardizationAfter several weeks of inter departmental discussions with […]

  • [actual combat problems] – differences and solutions of cache penetration, cache breakdown and cache avalanche

    Time:2021-4-21

    Usually, we use the cache scheme, which generally stores one copy in the database and synchronously stores one copy in the cache. When the request comes, you can get the data from the cache first. If there is data, you can directly return the result in the cache. If there is no data in the […]

  • Redis mind map

    Time:2021-2-8

    Frequently asked questions What are the functions of redis? Data cache function The function of distributed lock Support data persistence Support services Support message queuing Why is redis single threaded? Because CPU is not the bottleneck of redis, the bottleneck of redis is most likely machine memory or network bandwidth. Since single thread is easy […]

  • Buffer penetration, buffer breakdown, buffer avalanche solution analysis

    Time:2021-1-21

    1: Preface When designing a cache system, we have to consider the following issues: cache penetration, cache breakdown and avalanche effect in case of failure. 2: Cache penetration Cache penetration refers to querying a certain nonexistent data. Because the cache is written passively when it is not hit, and for the sake of fault tolerance, […]