Sponsored Links

Jumat, 27 April 2018

Sponsored Links

Redis Beginner Tutorial 1 - What is REDIS - YouTube
src: i.ytimg.com

Redis is an open-source in-memory database project implementing a distributed, in-memory key-value store with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, hyperloglogs, bitmaps and spatial indexes. The project is mainly developed by Salvatore Sanfilippo and is currently sponsored by Redis Labs.


Video Redis



History

The name Redis means REmote DIctionary Server. Salvatore Sanfilippo, the original developer of Redis, was hired by VMware in March, 2010. In May, 2013, Redis was sponsored by Pivotal Software (a VMware spin-off). In June 2015, development became sponsored by Redis Labs.


Maps Redis



Popularity

According to monthly rankings by DB-Engines, Redis is often ranked the most popular key-value database. Redis has also been ranked the #4 NoSQL database in user satisfaction and market presence based on user reviews, the most popular NoSQL database in containers, and the #1 NoSQL database of 2015 by ranking website stackshare.io.


Migration to Redis Cluster - The Houzz Blog
src: farm5.staticflickr.com


Supported languages

Many languages have Redis bindings, including: ActionScript, C, C++, C#, Chicken Scheme, Clojure, Common Lisp, D, Dart, Erlang, Go, Haskell, Haxe, Io, Java, JavaScript (Node.js), Julia, Lua, Objective-C, OCaml, Perl, PHP, Pure Data, Python, R, Racket, Ruby, Rust, Scala, Smalltalk, Swift, and Tcl.

Several client software programs exist in these languages.


Data Modeling With Tables and Documents vs. Redis Structures ...
src: dzone.com


Data types

Redis maps keys to types of values. An important difference between Redis and other structured storage systems is that Redis supports not only strings, but also abstract data types:

  • Lists of strings
  • Sets of strings (collections of non-repeating unsorted elements)
  • Sorted sets of strings (collections of non-repeating elements ordered by a floating-point number called score)
  • Hash tables where keys and values are strings
  • HyperLogLogs used for approximated set cardinality size estimation.
  • Geospatial data through the implementation of the geohash technique since Redis 3.2.

The type of a value determines what operations (called commands) are available for the value itself. Redis supports high-level, atomic, server-side operations like intersection, union, and difference between sets and sorting of lists, sets and sorted sets.


Redis Beginner Tutorial 6 - How to use Redis Desktop Manager - YouTube
src: i.ytimg.com


Persistence

Redis typically holds the whole dataset in memory. Versions up to 2.4 could be configured to use what they refer to as virtual memory in which some of the dataset is stored on disk, but this feature is deprecated. Persistence is now achieved in two different ways: one is called snapshotting, and is a semi-persistent durability mode where the dataset is asynchronously transferred from memory to disk from time to time, written in RDB dump format. Since version 1.1 the safer alternative is AOF, an append-only file (a journal) that is written as operations modifying the dataset in memory are processed. Redis is able to rewrite the append-only file in the background in order to avoid an indefinite growth of the journal.

By default, Redis writes data to a file system at least every 2 seconds, with more or less robust options available if needed. In the case of a complete system failure on default settings, only a few seconds of data would be lost.


Redis is an open source, advanced key-value store. It is often ...
src: s-media-cache-ak0.pinimg.com


Replication

Redis supports master-slave replication. Data from any Redis server can replicate to any number of slaves. A slave may be a master to another slave. This allows Redis to implement a single-rooted replication tree. Redis slaves can be configured to accept writes, permitting intentional and unintentional inconsistency between instances. The publish/subscribe feature is fully implemented, so a client of a slave may subscribe to a channel and receive a full feed of messages published to the master, anywhere up the replication tree. Replication is useful for read (but not write) scalability or data redundancy.


What is Redis? | Why and When to use Redis? | Tech Primers - YouTube
src: i.ytimg.com


Performance

When the durability of data is not needed, the in-memory nature of Redis allows it to perform well compared to database systems that write every change to disk before considering a transaction committed. Redis operates as a single process and is single-threaded or double-threaded when it rewrites the AOF (append-only file). Therefore, a single Redis instance cannot utilize parallel execution of tasks such as stored procedures.


Running Out of RAM on Redis? No More OOM With Hybrid Memory (RAM ...
src: dzone.com


Clustering

Redis introduced clustering in April 2015 with the release of version 3.0. The cluster specification implements a subset of Redis commands: all single-key commands are available, multi-key operations (commands related to unions and intersections) are restricted to keys belonging to the same node, and commands related to database selection operations are unavailable. A Redis cluster is able to scale up to 1,000 nodes, achieve "acceptable" write safety and to continue operations when some nodes fail.


Redis Crash Course Tutorial - YouTube
src: i.ytimg.com


Use cases

Due to the nature of the database design, typical use cases are session caching, full page cache, message queue applications, leaderboards and counting among others. Large companies such as Twitter are using Redis, Amazon Web Services is offering Redis in its portfolio and Microsoft is offering the Redis Cache in Azure.


Recommendations Using Redis - DZone - Refcardz
src: dz2cdn3.dzone.com


See also

  • NoSQL
  • Amazon ElastiCache

High Availability with Redis using Redis Enterprise - YouTube
src: i.ytimg.com


Commercial Implementations

Some companies have used Redis and created commercial offerings around it:

  • Redis Enterprise Pack from Redis Labs
  • Redis Enterprise Cloud and Redis Enterprise Cloud Private from Redis Labs
  • ElastiCache from Amazon Web Services
  • Azure Cache from Microsoft Azure

Redis Cache - PrestaShop Addons
src: addons.prestashop.com


References

Further reading

Using PostgreSQL with Redis - YouTube
src: i.ytimg.com


External links

  • Official website

Source of the article : Wikipedia

Comments
0 Comments