Redis essential interview questions "and difficult chapter"

Date:2019-11-12

Thinking before reading:

    redis each will ask the question, inside the brain to recall, can know the result of twelve?

      

Question 1: Redis avalanche understand it?

 

Question 2: Learn to penetrate and breakdown Redis cache it?

 

Problem 3: You know Redis cache avalanche breakdown between the three types of penetration and it can be combined with specific business application scenarios it said? How to avoid cache avalanche, penetration and breakdown of it?

 

Question 4: Can you talk about the difference in the relational database Redis with nature?

 

5 questions: What is redis sentry mode? What can solve the problem?

 

6 questions: What programs have redis persistence? How they implement redis persistence? What is the role of persistent redis? How to choose a persistence solution?

   What redis persistence program:

     RDB persistent manner capable of storing snapshots can be recorded .AOF persistence of your data every time the server write operations, when the server restart will re-execute these commands to restore the original data in a specified time interval, AOF command redis additional protocol to save each write operation to the end of the file .Redis also on the AOF files for background rewritten, so that the volume AOF files will not be too large. If you just want your data exists at the time the server is running, you may not use any persistent way. you can also open simultaneously two kinds of persistent way, in this case, when redis restart priority load AOF file to restore the original data, because in normal circumstances documents AOF save the file to save the data set than the RDB data set to be complete. the most important thing is to understand the RDB and AOF persistence of different ways, let us RDB persistent way to start.
     How to achieve redis persistence:
 
   redis persistent effect:
 
    How to choose a persistence solution:
     In general, if you want to achieve comparable PostgreSQL data security, you should use both persistent feature. If you are very concerned about your data, but you can still withstand the loss of data within a few minutes, then you can just use RDB persistence. AOF many users use only persistent, but does not recommend this approach: since the timing generating RDB Snapshot (Snapshot) is very easy database backup and recovery speed RDB data set than AOF is also faster recovery, in addition to addition to this, the use of RDB also avoid bug AOF programs mentioned earlier.

 

Question 7: You can say redis master-slave model? Master-slave mode can solve the problem?

 

Guess you like

Origin www.cnblogs.com/weigy/p/11848610.html