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