Weekend sharing seminar March 29, 2020

Application of hash

redis
Ngnix
hashmap

There are two ways to solve the hash conflict:

1. Hashmap is rehash when there is too much conflict in the hashmap of the linked list method
2. ThreadLocal uses the additional addressing method to solve the hash conflict.
Redis is to create a new array to synchronize the old one

Mobile data is not one-off, it is moved over (lazy loading) evenly

But jdk expansion is to move the data in one go

How to notify redis node

1. Redis node notifies middleware ignite

2. Subscribe to publish

Process-level cache can continue to be decentralized to thread-level cache.

Redis data should be synchronized to the local server

For example, permission data will be faster, there is no need to go to the redis server every time to request

Redis cluster method

: Master and Slave of Sentinel Sharding

Published 33 original articles · praised 37 · 110,000 views

Guess you like

Origin blog.csdn.net/hagle_wang/article/details/105188817