web technology sharing | LRU cache elimination algorithm

Before we know about LRU, we should know about cache. We all know that the computer has cache memory and can temporarily store the most commonly used data. When the cache data exceeds a certain size, the system will recycle it to free up space to cache new data, but the cost of retrieving data from the system is relatively high. Cache requirem ...

Posted by Steppio on Tue, 23 Nov 2021 03:46:46 -0800

Second shallow encapsulation practice in microservice architecture

1, Background introduction There are many split services in the distributed system. In the process of continuous iterative upgrading, the following common thorny situations will occur: For the version upgrade of a technical component, depending on the package upgrade leads to the expiration of some syntax or API, or the component fixes urgent ...

Posted by everlifefree on Mon, 22 Nov 2021 00:07:12 -0800

Use of Redis Stream type

1, Background Recently, after looking at the knowledge of redis, I found that a new data type Stream has been generated in redis5, which is somewhat similar to the design of kafka and can be used as a simple message queue. 2, Characteristics of Stream type in redis It is persistent and can ensure no data loss. Support message multica ...

Posted by devil_online on Wed, 10 Nov 2021 03:05:20 -0800