Because I was going to interview Dachang, after staying up late and finishing this Redis note, I finally got Dachang interviewer to shut up

Today, I overtly interviewed for a java development position in a big factory. A middle-aged man walked up to me with a Mac with the screen on. He smiled politely at me. Then he said "I'm sorry, I made you wait for a long time", and then motioned to me to sit down and said: "Let's get started. After reading your resume, I think you should have a good grasp of redis. Let's discuss redis today. ...". I thought: "Come on, soldiers come to cover the water and earth."

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

What is Redis

Interviewer: Let's talk about what Redis is first!

Me: (Isn’t this summarizing the definition and characteristics of Redis?) Redis is an open source (complied with the BSD protocol) high-performance key-value in-memory database developed by the C language. It can be used as a database, cache, Message middleware, etc.

It is a NoSQL (not-only sql, generally refers to a non-relational database) database.

I paused, and then said that Redis as an in-memory database:

  • Excellent performance, data is in memory, read and write speed is very fast, support concurrent 10W QPS.
  • Single process and single thread are thread safe and use IO multiplexing mechanism.
  • Abundant data types, support strings, hashes, lists, sets, sorted sets, etc.
  • Support data persistence. You can save the data in the memory to the disk and load it when restarting.
  • Master-slave replication, sentinel, high availability.
  • Can be used as a distributed lock.
  • It can be used as a message middleware and supports publish and subscribe.

Interviewer : It's a good summary. It seems to be well prepared.

After dealing with the interviewer a few times...

  • Interviewer: Yes, I didn't work less before the interview. Come to work tomorrow. (With a relieved smile)
  • I'm OK.

As Redis that must be asked in interviews , redis's powerful and practical functions are like a huge treasure trove. With the increase in system access and complexity, response performance has become a key concern. The use of cache has become an important point. As a leader in caching middleware, redis has become a must-question item for interviews.

Here I will share with you a Redis core notes and Redis high-frequency interview questions , with pictures and texts, very suitable for friends who need to learn Redis and are preparing for an interview ! Due to space reasons, there is a need for Redis core notes and Redis high-frequency interview questions. The complete document can be obtained for free at the end of the article!

The information contains all the core knowledge points of Redis, the characteristics and functions of Redis, the use of Redis cache, why Redis can be so fast, the elimination strategy of Redis cache, the two ways of persistence, the master-slave replication and sentinel of the high-availability part of Redis The basic principle and so on. Friends in need click here to get it for free https://docs.qq.com/doc/DTlpqcU53c0JtdkZx

No nonsense, go to the catalog

Redis core notes

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

Redis high-frequency interview questions

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

Redis core notes

1. Redis basic data structure and actual combat scenarios

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

Two, Redis common exceptions and solutions

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

3. Common application scenarios in a distributed environment

 

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

Four, Redis cluster mode

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

Five, Redis common interview questions in detail

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

Redis high-frequency interview questions analysis

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

Only 14 questions are shown here, and there are a total of 75 analysis questions. Friends in need please forward them and poke here for free https://docs.qq.com/doc/DTlpqcU53c0JtdkZx

In order to interview a large company, after staying up late and finishing this Redis note, I finally "hardened" it.

 

Final words

It includes the features and functions of Redis, the use of Redis cache, why Redis can be so fast, the elimination strategy of Redis cache, the two methods of persistence, the basic principles of master-slave replication and sentinel in the high-availability part of Redis. As long as the skill is deep, the iron pestle is ground into a needle, and you are usually ready for the interview. Although the interview may not be asked like this, it is always the same.

Say the important thing a billion times: forward! Click here to get it for free https://docs.qq.com/doc/DTlpqcU53c0JtdkZx

Guess you like

Origin blog.csdn.net/python8989/article/details/108718239