SlideShare a Scribd company logo
Remote Dictionary Server 
Redis 
Presented By 
HARI 
1
Agenda 
Agenda 
I . Introduction 
Context, Popular Redis Users 
II. Basics 
How to use, Real time use cases , Data Types. 
few Advance supported features ………… 
Transactions, public/subscribe, Clusters, Replication 
2
Context 
Redis is an open source, networked, single threaded, in-memory 
Advanced key value store with optional durability . 
It is often referred to as a data structure server since keys can 
contain strings ,hashes, lists, sets, and sorted sets. 
3
Popular Redis Users 
4
No SQL Data Bases 
 Document DBs 
‣ Mongo DB, Couch DB,… 
 Graph DBs 
‣ Neo4j, Flock DB… 
Column oriented DBs 
‣ HBase, Cassandra, BigTable… 
 Key-Value DBs 
‣ Memcache, MemcacheDB, Redis,…… 
5
Few Fundamentals 
 Written in C(No external dependence) 
 Uses memory as main storage 
 Uses disk for persistence 
 Single Threaded 
 Fast performance 
 ~50k read/write operations per second 
6
How to use 
 Download Latest Version here 
Extract it And start sever 
configurations: redis.conf 
 Connect via client/s 
 For practice you can use http://try.redis.io/ 
7
Keys 
Arbitrary ASCII strings 
‣ Define some format convention and adhere to it 
‣ Key length matters! 
Multiple name spaces are available 
‣ Separate DBs indexed by an integer value 
‣ SELECT command 
Keys can expire automatically (if you specify TTL) 
8
Data Types 
9
String Commands 
• APPEND 
• GET 
• SET 
• STRLEN 
• INCR 
• DECR 
• INCRBY 
• DECRBY 
• few more #string commands 
10
• LLEN 
• LPOP 
• LPUSH 
• LRANGE 
• LREM 
• LINSERT 
• RPOP 
• RPUSH 
Lists Commands 
11
• SADD 
• SCARD 
• SDIFF 
• SMEMBERS 
• SMOVE 
• SPOP 
• SREM 
Sets Commands 
12
• ZADD 
• ZCARD 
• ZCOUNT 
• ZRANGE 
• ZRANK 
• ZREM 
• ZSCORE 
• ZSCAN 
Sorted Sets Commands 
13
Redis Clients 
C (hiredis,credis,libredis) 
C# (ServiceStack.Redis,StackExchange.Redis) 
C++(redis3m, C++ Client) 
Java(Jedis,Jredis, JDBC-Redis) 
Perl(Redis, RedisDB) 
PHP(Predis, phpredis) 
• few more 
14
Public class TestJedis { 
public static void main(String[] args) { 
Jedis jedis = new Jedis("localhost"); 
jedis.set("key", "value"); 
System.out.println(jedis.get("key")); 
} 
} 
Redis with java client (Jedis) 
15
Jedis constructor 
Jedis(String host) 
Jedis (String host, int port) 
Maven dependency 
<dependency> 
<groupId>redis.clients</groupId> 
<artifactId>jedis</artifactId> 
<version>2.5.2</version> 
</dependency> 
16
Pipe lines 
Redis pipelines are just a RTT optimization 
‣Deliver multiple commands together without 
waiting for replies 
‣Fetch all replies in a single step 
‣ Server needs to buffer all replies! 
Pipelines are NOT transactional or atomic 
‣ Much more flexible alternative 
17
Publish/Subscribe 
 Classic pattern decoupling publishers & 
subscribers 
 You can subscribe to channels; when someone 
publish in a channel matching your interests Redis 
will send it to you 
 PUBLISH 
 SUBSCRIBE, 
 UNSUBSCRIBE 
18
 Commands are executed as an atomic & single 
isolated operation 
DISCARD 
MULTI 
EXEC 
Transactions 
19
Replication 
One master — Multiple slaves 
 Scalability & redundancy 
 Client side failover, eviction, query routing… 
 Slaves are able to accept other slave connections 
Asynchronous but periodically acknowledged 
Automatic slave reconnection 
20
Redis Cluster 
Released in Redis 3.0 
 High performance & linearly scalable complex 
distributed DB 
 Sharding across multiple nodes 
 Graceful handling of network partitions 
21
Real Time Use cases 
Need a faster response 
Need a Atomic operations 
Need a transactions 
Need a publish/subscribe model 
Support for persistence 
Job queue, session store, Real Time Ranking 
22
Redis vs Memcache 
Name Memchahe Redis 
Description In-memory key-value store, originally 
intended for caching 
In-memory database with configurable 
options performance vs. persistency 
Release : 2003 2009 
Implementation language C C 
Server-side scripts NO Lua 
Replication methods None Master-Slave 
SQL No NO 
Database model Key-value Key-value 
Database schema No NO 
Supported programming languages Net,C,C++,ColdFusion,Erlang,Java,Lis 
p 
Lua,Ocaml,Perl,PHP,Python,Ruby 
C,C#,C++,Clojure,Dart,Erlang,Go, 
Java,JavaScript,Lisp,Lua,Objective-C 
Perl,PHP,Python,Ruby,Scala,Smalltalk 
Tcl 
23
Summary 
Fast 
Simple 
Reliable 
Predictable 
Light weight 
Widely supported 
24
Ad

More Related Content

What's hot (20)

Sdc challenges-2012
Sdc challenges-2012Sdc challenges-2012
Sdc challenges-2012
Gluster.org
 
YDAL Barcelona
YDAL BarcelonaYDAL Barcelona
YDAL Barcelona
Gluster.org
 
openATTIC Technology Overview - Ceph Management
openATTIC Technology Overview - Ceph ManagementopenATTIC Technology Overview - Ceph Management
openATTIC Technology Overview - Ceph Management
it-novum
 
Dedupe nmamit
Dedupe nmamitDedupe nmamit
Dedupe nmamit
Gluster.org
 
Beyond relational database - Building high performance websites using Redis a...
Beyond relational database - Building high performance websites using Redis a...Beyond relational database - Building high performance websites using Redis a...
Beyond relational database - Building high performance websites using Redis a...
Dinh Pham
 
State of the_gluster_-_lceu
State of the_gluster_-_lceuState of the_gluster_-_lceu
State of the_gluster_-_lceu
Gluster.org
 
Dustin Black - Red Hat Storage Server Administration Deep Dive
Dustin Black - Red Hat Storage Server Administration Deep DiveDustin Black - Red Hat Storage Server Administration Deep Dive
Dustin Black - Red Hat Storage Server Administration Deep Dive
Gluster.org
 
Efficient data maintaince in GlusterFS using Databases
Efficient data maintaince in GlusterFS using DatabasesEfficient data maintaince in GlusterFS using Databases
Efficient data maintaince in GlusterFS using Databases
Joseph Elwin Fernandes
 
Disperse xlator ramon_datalab
Disperse xlator ramon_datalabDisperse xlator ramon_datalab
Disperse xlator ramon_datalab
Gluster.org
 
Hadoop at a glance
Hadoop at a glanceHadoop at a glance
Hadoop at a glance
Tan Tran
 
Ravi Namboori Hadoop & HDFS Architecture
Ravi Namboori Hadoop & HDFS ArchitectureRavi Namboori Hadoop & HDFS Architecture
Ravi Namboori Hadoop & HDFS Architecture
Ravi namboori
 
Hdfs internals
Hdfs internalsHdfs internals
Hdfs internals
Bhupesh Chawda
 
Introduction to redis
Introduction to redisIntroduction to redis
Introduction to redis
NexThoughts Technologies
 
Redis 101
Redis 101Redis 101
Redis 101
Geoff Hoffman
 
Lisa 2015-gluster fs-introduction
Lisa 2015-gluster fs-introductionLisa 2015-gluster fs-introduction
Lisa 2015-gluster fs-introduction
Gluster.org
 
Introduction of mesos persistent storage
Introduction of mesos persistent storageIntroduction of mesos persistent storage
Introduction of mesos persistent storage
Zhou Weitao
 
Ceph-Mesos framework
Ceph-Mesos frameworkCeph-Mesos framework
Ceph-Mesos framework
Zhongyue Luo
 
Storage as a Service with Gluster
Storage as a Service with GlusterStorage as a Service with Gluster
Storage as a Service with Gluster
Vijay Bellur
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
TO THE NEW | Technology
 
Red Hat Storage Server Administration Deep Dive
Red Hat Storage Server Administration Deep DiveRed Hat Storage Server Administration Deep Dive
Red Hat Storage Server Administration Deep Dive
Red_Hat_Storage
 
Sdc challenges-2012
Sdc challenges-2012Sdc challenges-2012
Sdc challenges-2012
Gluster.org
 
openATTIC Technology Overview - Ceph Management
openATTIC Technology Overview - Ceph ManagementopenATTIC Technology Overview - Ceph Management
openATTIC Technology Overview - Ceph Management
it-novum
 
Beyond relational database - Building high performance websites using Redis a...
Beyond relational database - Building high performance websites using Redis a...Beyond relational database - Building high performance websites using Redis a...
Beyond relational database - Building high performance websites using Redis a...
Dinh Pham
 
State of the_gluster_-_lceu
State of the_gluster_-_lceuState of the_gluster_-_lceu
State of the_gluster_-_lceu
Gluster.org
 
Dustin Black - Red Hat Storage Server Administration Deep Dive
Dustin Black - Red Hat Storage Server Administration Deep DiveDustin Black - Red Hat Storage Server Administration Deep Dive
Dustin Black - Red Hat Storage Server Administration Deep Dive
Gluster.org
 
Efficient data maintaince in GlusterFS using Databases
Efficient data maintaince in GlusterFS using DatabasesEfficient data maintaince in GlusterFS using Databases
Efficient data maintaince in GlusterFS using Databases
Joseph Elwin Fernandes
 
Disperse xlator ramon_datalab
Disperse xlator ramon_datalabDisperse xlator ramon_datalab
Disperse xlator ramon_datalab
Gluster.org
 
Hadoop at a glance
Hadoop at a glanceHadoop at a glance
Hadoop at a glance
Tan Tran
 
Ravi Namboori Hadoop & HDFS Architecture
Ravi Namboori Hadoop & HDFS ArchitectureRavi Namboori Hadoop & HDFS Architecture
Ravi Namboori Hadoop & HDFS Architecture
Ravi namboori
 
Lisa 2015-gluster fs-introduction
Lisa 2015-gluster fs-introductionLisa 2015-gluster fs-introduction
Lisa 2015-gluster fs-introduction
Gluster.org
 
Introduction of mesos persistent storage
Introduction of mesos persistent storageIntroduction of mesos persistent storage
Introduction of mesos persistent storage
Zhou Weitao
 
Ceph-Mesos framework
Ceph-Mesos frameworkCeph-Mesos framework
Ceph-Mesos framework
Zhongyue Luo
 
Storage as a Service with Gluster
Storage as a Service with GlusterStorage as a Service with Gluster
Storage as a Service with Gluster
Vijay Bellur
 
Red Hat Storage Server Administration Deep Dive
Red Hat Storage Server Administration Deep DiveRed Hat Storage Server Administration Deep Dive
Red Hat Storage Server Administration Deep Dive
Red_Hat_Storage
 

Similar to Redis by-hari (20)

Boosting Machine Learning with Redis Modules and Spark
Boosting Machine Learning with Redis Modules and SparkBoosting Machine Learning with Redis Modules and Spark
Boosting Machine Learning with Redis Modules and Spark
Dvir Volk
 
Redis Introduction
Redis IntroductionRedis Introduction
Redis Introduction
Alex Su
 
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
Redis Labs
 
Redis
RedisRedis
Redis
Rajesh Kumar
 
What's new with enterprise Redis - Leena Joshi, Redis Labs
What's new with enterprise Redis - Leena Joshi, Redis LabsWhat's new with enterprise Redis - Leena Joshi, Redis Labs
What's new with enterprise Redis - Leena Joshi, Redis Labs
Redis Labs
 
Fun with Ruby and Redis
Fun with Ruby and RedisFun with Ruby and Redis
Fun with Ruby and Redis
javier ramirez
 
Redis. Seattle Data Science and Data Engineering Meetup
Redis. Seattle Data Science and Data Engineering MeetupRedis. Seattle Data Science and Data Engineering Meetup
Redis. Seattle Data Science and Data Engineering Meetup
Abhishek Goswami
 
What CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDWhat CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBD
ShapeBlue
 
SQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, Egypt
SQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, EgyptSQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, Egypt
SQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, Egypt
Chris Richardson
 
New York REDIS Meetup Welcome Session
New York REDIS Meetup Welcome SessionNew York REDIS Meetup Welcome Session
New York REDIS Meetup Welcome Session
Aleksandr Yampolskiy
 
A Developer Overview of Redis
A Developer Overview of RedisA Developer Overview of Redis
A Developer Overview of Redis
Yuriy Guts
 
REDIS327
REDIS327REDIS327
REDIS327
Rajan Bhatt
 
Redis Everywhere - Sunshine PHP
Redis Everywhere - Sunshine PHPRedis Everywhere - Sunshine PHP
Redis Everywhere - Sunshine PHP
Ricard Clau
 
Redis tutoring
Redis tutoringRedis tutoring
Redis tutoring
Chen-Tien Tsai
 
Redis meetup
Redis meetupRedis meetup
Redis meetup
Nikhil Dole
 
KeyValue Stores
KeyValue StoresKeyValue Stores
KeyValue Stores
Mauro Pompilio
 
Developing a Redis Module - Hackathon Kickoff
 Developing a Redis Module - Hackathon Kickoff Developing a Redis Module - Hackathon Kickoff
Developing a Redis Module - Hackathon Kickoff
Itamar Haber
 
Redis_Presentation.pptx ppt on redis and
Redis_Presentation.pptx ppt on redis andRedis_Presentation.pptx ppt on redis and
Redis_Presentation.pptx ppt on redis and
tanishksaini51
 
NoSQL
NoSQLNoSQL
NoSQL
Tomas Bosak
 
Spark Summit EU talk by Shay Nativ and Dvir Volk
Spark Summit EU talk by Shay Nativ and Dvir VolkSpark Summit EU talk by Shay Nativ and Dvir Volk
Spark Summit EU talk by Shay Nativ and Dvir Volk
Spark Summit
 
Boosting Machine Learning with Redis Modules and Spark
Boosting Machine Learning with Redis Modules and SparkBoosting Machine Learning with Redis Modules and Spark
Boosting Machine Learning with Redis Modules and Spark
Dvir Volk
 
Redis Introduction
Redis IntroductionRedis Introduction
Redis Introduction
Alex Su
 
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
Redis Labs
 
What's new with enterprise Redis - Leena Joshi, Redis Labs
What's new with enterprise Redis - Leena Joshi, Redis LabsWhat's new with enterprise Redis - Leena Joshi, Redis Labs
What's new with enterprise Redis - Leena Joshi, Redis Labs
Redis Labs
 
Fun with Ruby and Redis
Fun with Ruby and RedisFun with Ruby and Redis
Fun with Ruby and Redis
javier ramirez
 
Redis. Seattle Data Science and Data Engineering Meetup
Redis. Seattle Data Science and Data Engineering MeetupRedis. Seattle Data Science and Data Engineering Meetup
Redis. Seattle Data Science and Data Engineering Meetup
Abhishek Goswami
 
What CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDWhat CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBD
ShapeBlue
 
SQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, Egypt
SQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, EgyptSQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, Egypt
SQL? NoSQL? NewSQL?!? What’s a Java developer to do? - JDC2012 Cairo, Egypt
Chris Richardson
 
New York REDIS Meetup Welcome Session
New York REDIS Meetup Welcome SessionNew York REDIS Meetup Welcome Session
New York REDIS Meetup Welcome Session
Aleksandr Yampolskiy
 
A Developer Overview of Redis
A Developer Overview of RedisA Developer Overview of Redis
A Developer Overview of Redis
Yuriy Guts
 
Redis Everywhere - Sunshine PHP
Redis Everywhere - Sunshine PHPRedis Everywhere - Sunshine PHP
Redis Everywhere - Sunshine PHP
Ricard Clau
 
Developing a Redis Module - Hackathon Kickoff
 Developing a Redis Module - Hackathon Kickoff Developing a Redis Module - Hackathon Kickoff
Developing a Redis Module - Hackathon Kickoff
Itamar Haber
 
Redis_Presentation.pptx ppt on redis and
Redis_Presentation.pptx ppt on redis andRedis_Presentation.pptx ppt on redis and
Redis_Presentation.pptx ppt on redis and
tanishksaini51
 
Spark Summit EU talk by Shay Nativ and Dvir Volk
Spark Summit EU talk by Shay Nativ and Dvir VolkSpark Summit EU talk by Shay Nativ and Dvir Volk
Spark Summit EU talk by Shay Nativ and Dvir Volk
Spark Summit
 
Ad

Recently uploaded (20)

Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Ad

Redis by-hari

  • 1. Remote Dictionary Server Redis Presented By HARI 1
  • 2. Agenda Agenda I . Introduction Context, Popular Redis Users II. Basics How to use, Real time use cases , Data Types. few Advance supported features ………… Transactions, public/subscribe, Clusters, Replication 2
  • 3. Context Redis is an open source, networked, single threaded, in-memory Advanced key value store with optional durability . It is often referred to as a data structure server since keys can contain strings ,hashes, lists, sets, and sorted sets. 3
  • 5. No SQL Data Bases  Document DBs ‣ Mongo DB, Couch DB,…  Graph DBs ‣ Neo4j, Flock DB… Column oriented DBs ‣ HBase, Cassandra, BigTable…  Key-Value DBs ‣ Memcache, MemcacheDB, Redis,…… 5
  • 6. Few Fundamentals  Written in C(No external dependence)  Uses memory as main storage  Uses disk for persistence  Single Threaded  Fast performance  ~50k read/write operations per second 6
  • 7. How to use  Download Latest Version here Extract it And start sever configurations: redis.conf  Connect via client/s  For practice you can use http://try.redis.io/ 7
  • 8. Keys Arbitrary ASCII strings ‣ Define some format convention and adhere to it ‣ Key length matters! Multiple name spaces are available ‣ Separate DBs indexed by an integer value ‣ SELECT command Keys can expire automatically (if you specify TTL) 8
  • 10. String Commands • APPEND • GET • SET • STRLEN • INCR • DECR • INCRBY • DECRBY • few more #string commands 10
  • 11. • LLEN • LPOP • LPUSH • LRANGE • LREM • LINSERT • RPOP • RPUSH Lists Commands 11
  • 12. • SADD • SCARD • SDIFF • SMEMBERS • SMOVE • SPOP • SREM Sets Commands 12
  • 13. • ZADD • ZCARD • ZCOUNT • ZRANGE • ZRANK • ZREM • ZSCORE • ZSCAN Sorted Sets Commands 13
  • 14. Redis Clients C (hiredis,credis,libredis) C# (ServiceStack.Redis,StackExchange.Redis) C++(redis3m, C++ Client) Java(Jedis,Jredis, JDBC-Redis) Perl(Redis, RedisDB) PHP(Predis, phpredis) • few more 14
  • 15. Public class TestJedis { public static void main(String[] args) { Jedis jedis = new Jedis("localhost"); jedis.set("key", "value"); System.out.println(jedis.get("key")); } } Redis with java client (Jedis) 15
  • 16. Jedis constructor Jedis(String host) Jedis (String host, int port) Maven dependency <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.5.2</version> </dependency> 16
  • 17. Pipe lines Redis pipelines are just a RTT optimization ‣Deliver multiple commands together without waiting for replies ‣Fetch all replies in a single step ‣ Server needs to buffer all replies! Pipelines are NOT transactional or atomic ‣ Much more flexible alternative 17
  • 18. Publish/Subscribe  Classic pattern decoupling publishers & subscribers  You can subscribe to channels; when someone publish in a channel matching your interests Redis will send it to you  PUBLISH  SUBSCRIBE,  UNSUBSCRIBE 18
  • 19.  Commands are executed as an atomic & single isolated operation DISCARD MULTI EXEC Transactions 19
  • 20. Replication One master — Multiple slaves  Scalability & redundancy  Client side failover, eviction, query routing…  Slaves are able to accept other slave connections Asynchronous but periodically acknowledged Automatic slave reconnection 20
  • 21. Redis Cluster Released in Redis 3.0  High performance & linearly scalable complex distributed DB  Sharding across multiple nodes  Graceful handling of network partitions 21
  • 22. Real Time Use cases Need a faster response Need a Atomic operations Need a transactions Need a publish/subscribe model Support for persistence Job queue, session store, Real Time Ranking 22
  • 23. Redis vs Memcache Name Memchahe Redis Description In-memory key-value store, originally intended for caching In-memory database with configurable options performance vs. persistency Release : 2003 2009 Implementation language C C Server-side scripts NO Lua Replication methods None Master-Slave SQL No NO Database model Key-value Key-value Database schema No NO Supported programming languages Net,C,C++,ColdFusion,Erlang,Java,Lis p Lua,Ocaml,Perl,PHP,Python,Ruby C,C#,C++,Clojure,Dart,Erlang,Go, Java,JavaScript,Lisp,Lua,Objective-C Perl,PHP,Python,Ruby,Scala,Smalltalk Tcl 23
  • 24. Summary Fast Simple Reliable Predictable Light weight Widely supported 24