Q1. What is Redis?
Redis is an open-source, advanced key-value data store and cache. It is also referred to as a data structure server in which keys not only contain strings, but also hashes, sets, lists, and sorted sets.
Q2. What is the meaning of Redis?
Redis stands for REmote DIctionary Server.
Q3. What are the limitations Of Redis?
The whole dataset has to be kept in memory - so the space is limited
Single-threaded
It has got limited client support for consistent hashing
It has a significant overhead for persistence
It is not deployed widely
Q4. Is using Redis together with an on-disk database a good idea?
Yes, a common design pattern involves taking very write-heavy small data in Redis (and data you need the Redis data structures to model your problem in an efficient way), and big blobs of data into an SQL or eventually consistent on-disk database.
Q5. Is Redis also Durable besides fast?
No. Redis compromises with durability to enhance the speed. In Redis, in the case of system failure or crash, it writes to disk but may fall behind and lose the data which is not stored.
Q6. How is Redis different from other databases?
Redis is a NoSQL, Opensource, in-memory data-structure store. It follows the principle of a key-value store.
Q7. In which language Redis is written?
Redis is written in ANSI C and is mostly used for cache solutions and session management. It creates unique keys for store values.
Q8. What is the usage of Redis?
Redis is a unique key-value store database that can function as a NoSQL database or as a memory-cache store to improve performance when serving data that is stored in system memory.
Q9. What are the main features of Redis?
Redis is very simple to install set up and manage.
Redis is very fast. It can execute 100000 queries per second.
Redis is fast because data is persistent in memory as well as stored on the disk.
Redis is very fast because it loads the whole dataset in primary memory.
Redis operations working on different data types are atomic so these operations can be accomplished safely i.e. to set or increase a key, add or remove elements from a set or increase a counter.
It supports various types of data structures such as strings, hashes, sets, lists, sorted sets, etc.
Redis supports simple master-to-slave replication.
Redis is portable.
Q10. What are the advantages of using Redis?
Redis is very fast.
It supports server-side locking.
It has a rich client-side library.
It is a good counter.
It supports Atomic Operation.
Q11. What is the difference between Redis and RDBMS?
Redis is a NoSQL database while RDBMS is an SQL database.
Redis follows the key-value structure while RDBMS follows the table structure.
Redis is extremely fast while RDBMS is comparatively slow.
Redis stores all the datasets in primary memory while RDBMS stores its dataset in secondary memory.
Redis is generally used to store small and frequently used files while RDBMS is used to store big files.
Q12. Which are the different data types used in Redis?
Strings
Hashes
Lists
Sets
Sorted Sets
Q13. How can you improve the durability in Redis?
To improve the durability of Redis “append only file” can be configured by using fsync data on disk.
Fsync () every time a new command is added to the append log file: It is safe but very slow
Fysnc() one time every second: It is fast, but you may lose 1 second of data if the system fails
Never fsync(): It is an unsafe method, and your data is in hands of the Operating System
Redis Commands
More Interview Questions
Exception Handling Interview Questions
DBMS Interview Questions Set -1
DBMS Interview Questions Set -2
JPA Interview Questions Set -1
Spring Boot Interview Questions Set 1
Spring Boot Interview Questions Set 2
Core Java Interview Questions Set -1
Docker interview question Set -1
Docker interview question Set -2
No comments:
Post a Comment