- Why use message queues?
- What are the advantages and disadvantages of using message queues?
- What are the differences among kafka, activemq, rabbitmq, and rocketmq?
- How do you ensure the high availability of message queues?
- How to ensure that messages are not consumed repeatedly? How to ensure that consumption is idempotent?
- How to ensure reliable transmission of messages? What if the news is lost?
- How to ensure the sequence of messages?
- How to solve the problem of message queue latency and expiration expiration? What should I do when the message queue is full? There are millions of messages that have been backlog for several hours. How can we solve them?
- If you were asked to write a message queue, how would you design the architecture? Tell me your thoughts
- How do you use message queuing in your project?
- What MQ have you used and how to use it? What are the advantages and disadvantages compared to other mqs? Is MQ connection thread safe
- How to ensure that data in the MQ system is not lost
- Kafka's Three ACK Mechanisms
- Can you explain the principle of distributed architecture of ES (how does ES achieve distributed architecture)?
- How does ES write data work? How does ES query data work?
- How can ES improve query performance when there is a large amount of data (billions of levels)?
- What is the deployment architecture of the ES production cluster? What is the approximate amount of data per index? How many slices are there per index?
- What about Lucene on the bottom? Do you understand the inverted index?
- Can Redis swap memory space into disk
- Is Redis distributed for caching? Is the data stored on different servers duplicate? What about Guavacache? Repeat? Different machines store different data
- How is cache used in a project? What are the consequences of using the cache improperly?
- What is the difference between Redis and Memcached? The difference in memory management between Redis and Memcached; What is the threading model for Redis? Why is single threaded Redis much more efficient than multi threaded Memcached (why is Redis single threaded but still capable of supporting high concurrency)?
- What data types does Redis have? Which scenarios are suitable for use?
- What are the expiration policies for Redis? What are the memory obsolescence mechanisms? Handwriting LRU code implementation?
- How to ensure high concurrency and high availability of Redis? Can you introduce the principle of master slave replication for Redis? Can you introduce the Sentinel Principle of Redis?
- The relationship between Redis high concurrency and the high concurrency of the entire system
- Where is the bottleneck that Redis cannot support high concurrency?
- What should Redis do if it wants to support more than 100000+concurrency?
- Redis data structure, enabling scenarios, and Weibo scenarios enable Redis to design user relationships
- What are the ways to persist Redis? What are the advantages and disadvantages of different persistence mechanisms? How is the underlying persistence mechanism implemented? Talk about the persistence process of Redis
- Can you explain the working principle of the Redis cluster mode? How is the Redis key addressed in cluster mode? What are the algorithms for distributed addressing? Do you understand the consistent hash algorithm?
- How to ensure dual write consistency between the cache and the database?
- Understand what is the avalanche and penetration of Redis? What happens after Redis crashes? How should the system respond to this situation? How to handle Redis penetration?
- What are the concurrent competition issues with Redis? How to solve this problem? Do you understand the CAS solution for Redis transactions?
- How is Redis deployed in a production environment?
- What is the semi open and semi closed state of a connection
- If a service relies on a single point of Redis, this Redis failure will cause the service to be unavailable. How to improve Redis sharding
- When a large amount of data is required to be saved using Redis, it is difficult for a single machine to meet the needs. Therefore, a load balancing system is designed (swapped)
- The scheme of balance
- When Redis uses hash for sharding, there are now 8 nodes, and the load scheme is pos=hash (key)%
- Then save it on the pos node. What are the advantages and disadvantages of doing this? What should I do when 8 nodes need to be expanded to 10 nodes? Is there any more convenient expansion plan? (Consistency hash, presharding)
- The differences between sentinel and cluster and their respective scenarios, the Redis cluster synchronization process, why Redis single thread is fast, why multiple threads are called hot keys, the causes and consequences of hot key production, and how to resolve them, and what about the timeliness of local cache requirements
- What are the common cache strategies, what cache systems are used in your project, how to design them, what to pay attention to when using Redis, persistence methods, memory settings, clustering, and obsolescence strategies
- Explain what is the MESI protocol (cache consistency)
- Tell me about several HASH algorithms you know. Simple ones can also be used
- What is the paxos algorithm
- What are the problems with using hashmap to implement Redis (deadlock, loop, and ConcurrentHashmap are available)
- An online document system that allows documents to be edited. How to prevent multiple people from editing and updating the same document simultaneously
- What are the general methods for implementing distributed locks? How to design distributed locks using Redis? Is it okay to use zk to design distributed locks? Which of the two distributed lock implementations is more efficient?
- How to implement distributed sessions during cluster deployment?
- What are the usage scenarios for zk?
- Why should we choose this implementation for distributed locks in ZK? What is the scene like?
- What happened to ZK? Election mechanism?
- The implementation mechanism of Zookeeper, including caching, and how to store the registration service
- How to notify the consumer when a transaction, node, or service provider of a Zookeeper hangs
- How is Redis implemented? Have you ever used RedisTemplet
- What is the difference between Jedis and RedisTemplate?