Home > Back-end >  The interview was asked about Redis
The interview was asked about Redis

Time:11-23

If asked what Redis is your interview? What is the role? Answer how to clean a fix that, want to see you is how to answer)

CodePudding user response:

CodePudding user response:

1. Redis can be seen as a database, but different from traditional database is redis data exists in memory, so read/write speed is very fast, so the redis is widely used in cache direction,
2. The role from the high performance, high concurrency this two ways,
The high performance: the data found in the cache, so that next time again to access these data can be directly obtained from the cache, so quite fast,
Cache can withstand high concurrency: direct operation request is far greater than direct access to the database, so we can transfer part of the data in the database to the cache, this part of the request directly to the cache without going through the database here,

Reference: https://blog.csdn.net/qq_34337272/article/details/80012284? Utm_medium=distribute. Pc_relevant_bbs_down. None - task - blog - baidujs - 1. Nonecase& Depth_1 - utm_source=distribute. Pc_relevant_bbs_down. None - task - blog - baidujs - 1. Nonecase

CodePudding user response:

https://blog.csdn.net/qq_43762191/article/details/108109523? Utm_medium=distribute. Pc_feed. None - task - blog - personrec_tag - 11. Nonecase& Depth_1 - utm_source=distribute. Pc_feed. None - task - blog - personrec_tag - 11. Nonecase& F43988ecea070620e93ee97 request_id=5

CodePudding user response:

Cache database, used as a cache

CodePudding user response:

First you tell me what is the manner in which data is stored inside redis store data of five major types: why do we use redis is good

CodePudding user response:

Redis is an in-memory database with mysql, Oracle relational database, such as he was loading the whole database in memory

CodePudding user response:

Upstairs said all right

CodePudding user response:

I say is can be used as a database and cache, I had to use redis as a cache of experience, and then the said application scenarios

CodePudding user response:

The most important is definitely improve performance, reduce the pressure of the database.
And redis atomic operation some functions of distributed system is very helpful.

CodePudding user response:

Can speak Redis application scenarios, as long as the scene probably say a few more, the use of each scenario can be clear, basically the interviewer won't have too many problems

Reference I wrote three years ago the PPT:
https://download.csdn.net/download/youbl/11161417

Mainly include: cache, sharing Session, PV/UV statistical counting, distributed lock, and draw/SEC kill, integral/sales list, Bitmap, etc
  • Related