Redis
What is
Redis
Redis,
which stands for Remote Dictionary Server, is a fast,
open-source, in-memory key-value data store for use as a database, cache,
message broker, and queue. Redis able to deliver millions of requests with in sub-millisecond
response times per second. This create a huge impact in game development,
Financial services, IOT and Healthcare systems.
Mostly
impact of Redis gone through the gaming for enable Real-time leader-boards, real
time analytics, and Real-time chat/media streaming etc.
Redis
is developed using c++ language so it is cross platform. Another feature of
redis is it is a open source system.
Developer
- Salvatore SanFilippo
Release
– 2009 MAY 10
caching
Redis cloud
Ables to interact with large audience, large database requests with in small
response time. Actually, it is strange thing when we see it from normal sql
databases.
This
happened because of Cashing.
Caching is
a process of storing data in Cache. Actually, cache is a memory that works as a
ram that stores data temporary in a place which is able to access more quickly
than hard drive.
According
that it serves data faster than we think.
Redis VS Database systems
Unlike data
bases such as sql redis stores data as key value pairs. This structure also
able to read and write.
Store
data in Redis
SET “Name” “John”
Name ---à Key
John ----à Value
Redis is
No-SQL database it means redis don’t have
tables/rows/columns/functions/procedures
According
to that it doesn’t use any SELECT,UPDATE,DROP,DELETE statements.
Redis
·
Open
source in – memory data structure store which can be used as database and/or a
cache and message broker
· No-SQL key
·
Support
multiple data Structures
·
Built
in replication
Redis datatypes
- ·
String
- ·
Maps
- ·
Sets
- ·
Hashes
- ·
Lists
SQL Data Types
- ·
Numeric(int,
decimal, float)
- ·
DATE/Time
- ·
String/Char
- ·
Unicodes
- ·
Binary
Advantages of Redis
Performance
https://redis.io/
Simple and Flexible
This is
happen because redis don’t use tables, rows so there is no select,update,delete
functions. We use only read and write functions only.
Durable
Redis has
option to write data on disk and data write options are configurable.
Redis is
able to use as Cashing system or full fledged DB.
Language and platform support
As we can
see all most all the programming languages are supports. So it is an one of
main advantages of Redis.
Compatibility
Redis can
used as 2nd database to make write and read requests, queries and
transactions faster.
Master – slave Replication feature
In Redis we can use different
instances of Redis . We
can make any one as master and others as slaves.
In this
case master can write only data store where as one of the slaves can used for
read only and other slave s can used to write only data to disk syncronisely.
So one of the slave can use for read and write and other slave is writing data
to disk at the same time.
Redis Has
Single text file for all configurations
Redis is
single threaded – one action at a time.
It
eliminates all the issue with lock waiting threads and all other issue threads.
Redis Clients





Comments
Post a Comment