SlideShare ist ein Scribd-Unternehmen logo
1 von 14
REDIS – Letem světem

      Robert Havelka
What?

 „key-value” or „key-datastructure” storage
 string, hash, list, set a sorted set
 master - slave
 transactions
What REDIS means?

 It means REmote DIctionary Server
 It is a joke on the word Redistribute (instead to
 use just a Relational DB redistribute your
 workload among Redis servers)
String

 binary safe (JPEG, serialized objects)
 max 512M
 atomic counters
   INCR, DECR (64bit signed int)
 random access vector
   GETRANGE, SETRANGE


 http://redis.io/commands/#string
List

 list of Strings
 ordered
 max length of a List is 232-1
 B(L|R)POP




 http://redis.io/commands#list
Set

 set of Strings
 max members in a Set is 232-1
 extract elements at random
      SPOP, SRANDMEMBER




 http://redis.io/commands#set
Hash

 map between String fields and String values
 Hash can store up to 232-1 field-value pairs




 http://redis.io/commands#hash
Sorted set

 set of Strings
 members with score
 „most advanced Redis data types“




 http://redis.io/commands#sorted_set
Transaction

 WATCH – check and set
 UNWATCH
 MULTI – start transaction block
 EXEC – commit transaction, unWATCH all
 DISCARD – rollback
Expiration

 EXPIRE (s)
 EXPIREAT (timestamp)
 PERSIST(cancel)
Persistence

 RDB
   memory snapshot
   key changes


 AOF
   fast (~1s)
   redis-check-aof + diff
Replication

 master – multiple slaves
   slave – slave
   graph-like structure



 cluster
Clients

 C – hiredis
 Java – Jedis
 LUA – redis-lua
 Perl – Redis
 PHP – Predis
 Python – redis-py
 Ruby – redis-rb
Sources

 http://redis.io
 Interactive tutorial - http://try.redis-db.com

Weitere ähnliche Inhalte

Was ist angesagt?

Redis 101 Data Structure
Redis 101 Data StructureRedis 101 Data Structure
Redis 101 Data StructureIsmaeel Enjreny
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commandsSagar Kumar
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testingGaruda Trainings
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic CommandsHanan Nmr
 
NoSQL Couchbase Lite & BigData HPCC Systems
NoSQL Couchbase Lite & BigData HPCC SystemsNoSQL Couchbase Lite & BigData HPCC Systems
NoSQL Couchbase Lite & BigData HPCC SystemsFujio Turner
 
Redis Introduction
Redis IntroductionRedis Introduction
Redis IntroductionAlex Su
 
Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Isham Rashik
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformaticsBonnie Ng
 
Basic command ppt
Basic command pptBasic command ppt
Basic command pptRohit Kumar
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examplesabclearnn
 
What is a domain name system(dns)?
What is a domain name system(dns)?What is a domain name system(dns)?
What is a domain name system(dns)?Abhishek Mitra
 
DNS – Domain Name Service
DNS – Domain Name ServiceDNS – Domain Name Service
DNS – Domain Name ServiceJohnny Fortune
 
Introduction to redis
Introduction to redisIntroduction to redis
Introduction to redisTanu Siwag
 

Was ist angesagt? (20)

Redis 101 Data Structure
Redis 101 Data StructureRedis 101 Data Structure
Redis 101 Data Structure
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Unix commands in etl testing
Unix commands in etl testingUnix commands in etl testing
Unix commands in etl testing
 
Red Hat Linux cheat sheet
Red Hat Linux cheat sheetRed Hat Linux cheat sheet
Red Hat Linux cheat sheet
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
NoSQL Couchbase Lite & BigData HPCC Systems
NoSQL Couchbase Lite & BigData HPCC SystemsNoSQL Couchbase Lite & BigData HPCC Systems
NoSQL Couchbase Lite & BigData HPCC Systems
 
Redis Introduction
Redis IntroductionRedis Introduction
Redis Introduction
 
DNS resolution
DNS resolutionDNS resolution
DNS resolution
 
Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet Linux Commands - Cheat Sheet
Linux Commands - Cheat Sheet
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Basic
BasicBasic
Basic
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Basic linux day 3
Basic linux day 3Basic linux day 3
Basic linux day 3
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
What is a domain name system(dns)?
What is a domain name system(dns)?What is a domain name system(dns)?
What is a domain name system(dns)?
 
DNS – Domain Name Service
DNS – Domain Name ServiceDNS – Domain Name Service
DNS – Domain Name Service
 
Introduction to redis
Introduction to redisIntroduction to redis
Introduction to redis
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Basic Linux day 2
Basic Linux day 2Basic Linux day 2
Basic Linux day 2
 

Andere mochten auch

המדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלההמדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלהshim0207
 
העלייה על הקרקע
העלייה על הקרקעהעלייה על הקרקע
העלייה על הקרקעruti regev
 
מצגת 1 קורס סטיילינג
מצגת 1 קורס סטיילינגמצגת 1 קורס סטיילינג
מצגת 1 קורס סטיילינגstylingwizo
 
Bibliotecas De Lujo En Europa
Bibliotecas De Lujo En EuropaBibliotecas De Lujo En Europa
Bibliotecas De Lujo En Europaguest0f8f511
 
מצגת ועדת חברים
מצגת ועדת חבריםמצגת ועדת חברים
מצגת ועדת חבריםEli Vogman
 
Another Introduce to Redis
Another Introduce to RedisAnother Introduce to Redis
Another Introduce to Redisjiaqing zheng
 
The Best Members Use Shared Branching
The Best Members Use Shared BranchingThe Best Members Use Shared Branching
The Best Members Use Shared Branchingtdgd
 
Cristina y sus amigos
Cristina y sus amigosCristina y sus amigos
Cristina y sus amigosagurmg
 
ימי הערכות תשעג יהודה פרנקל
ימי הערכות תשעג   יהודה פרנקלימי הערכות תשעג   יהודה פרנקל
ימי הערכות תשעג יהודה פרנקלנטע לב
 
מהלכים מרכזים בשנת הלימודית תשע"ב
מהלכים מרכזים בשנת הלימודית תשע"במהלכים מרכזים בשנת הלימודית תשע"ב
מהלכים מרכזים בשנת הלימודית תשע"בGideon Saar
 
אנשי קשר נטעים
אנשי קשר נטעיםאנשי קשר נטעים
אנשי קשר נטעיםגן רווה
 
פלייר יום צופה 2012
פלייר יום צופה 2012פלייר יום צופה 2012
פלייר יום צופה 2012גן רווה
 
סטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענותסטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענותronit2107
 

Andere mochten auch (20)

המדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלההמדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלה
 
העלייה על הקרקע
העלייה על הקרקעהעלייה על הקרקע
העלייה על הקרקע
 
Archivo10
Archivo10Archivo10
Archivo10
 
מצגת 1 קורס סטיילינג
מצגת 1 קורס סטיילינגמצגת 1 קורס סטיילינג
מצגת 1 קורס סטיילינג
 
Bibliotecas De Lujo En Europa
Bibliotecas De Lujo En EuropaBibliotecas De Lujo En Europa
Bibliotecas De Lujo En Europa
 
מצגת ועדת חברים
מצגת ועדת חבריםמצגת ועדת חברים
מצגת ועדת חברים
 
Another Introduce to Redis
Another Introduce to RedisAnother Introduce to Redis
Another Introduce to Redis
 
Actividad 13
Actividad 13Actividad 13
Actividad 13
 
Angulos
AngulosAngulos
Angulos
 
2011 love yall
2011 love yall2011 love yall
2011 love yall
 
The Best Members Use Shared Branching
The Best Members Use Shared BranchingThe Best Members Use Shared Branching
The Best Members Use Shared Branching
 
Cristina y sus amigos
Cristina y sus amigosCristina y sus amigos
Cristina y sus amigos
 
ימי הערכות תשעג יהודה פרנקל
ימי הערכות תשעג   יהודה פרנקלימי הערכות תשעג   יהודה פרנקל
ימי הערכות תשעג יהודה פרנקל
 
First civilizations
First civilizationsFirst civilizations
First civilizations
 
מהלכים מרכזים בשנת הלימודית תשע"ב
מהלכים מרכזים בשנת הלימודית תשע"במהלכים מרכזים בשנת הלימודית תשע"ב
מהלכים מרכזים בשנת הלימודית תשע"ב
 
Sistemas
SistemasSistemas
Sistemas
 
אנשי קשר נטעים
אנשי קשר נטעיםאנשי קשר נטעים
אנשי קשר נטעים
 
Sistemas1
Sistemas1Sistemas1
Sistemas1
 
פלייר יום צופה 2012
פלייר יום צופה 2012פלייר יום צופה 2012
פלייר יום צופה 2012
 
סטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענותסטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענות
 

Ähnlich wie Robert Havelka: REDIS – Letem světem

Chicago Data Summit: Apache HBase: An Introduction
Chicago Data Summit: Apache HBase: An IntroductionChicago Data Summit: Apache HBase: An Introduction
Chicago Data Summit: Apache HBase: An IntroductionCloudera, Inc.
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to RedisItamar Haber
 
Fun with Ruby and Redis
Fun with Ruby and RedisFun with Ruby and Redis
Fun with Ruby and Redisjavier ramirez
 
quickguide-einnovator-9-redis
quickguide-einnovator-9-redisquickguide-einnovator-9-redis
quickguide-einnovator-9-redisjorgesimao71
 
Redis Installation Configuration And Implementation
Redis Installation Configuration And ImplementationRedis Installation Configuration And Implementation
Redis Installation Configuration And ImplementationAbhijeet Shekhar
 
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020Andrew Lavers
 
Map-Reduce and Apache Hadoop
Map-Reduce and Apache HadoopMap-Reduce and Apache Hadoop
Map-Reduce and Apache HadoopSvetlin Nakov
 
Etu L2 Training - Hadoop 企業應用實作
Etu L2 Training - Hadoop 企業應用實作Etu L2 Training - Hadoop 企業應用實作
Etu L2 Training - Hadoop 企業應用實作James Chen
 
Scaling Redis To 1M Ops/Sec: Jane Paek
Scaling Redis To 1M Ops/Sec: Jane PaekScaling Redis To 1M Ops/Sec: Jane Paek
Scaling Redis To 1M Ops/Sec: Jane PaekRedis Labs
 
Domain Name Server
Domain Name ServerDomain Name Server
Domain Name Servervipulvaid
 
Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)Itamar Haber
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNSAkshay Tiwari
 
You know, for search. Querying 24 Billion Documents in 900ms
You know, for search. Querying 24 Billion Documents in 900msYou know, for search. Querying 24 Billion Documents in 900ms
You know, for search. Querying 24 Billion Documents in 900msJodok Batlogg
 
Hadoop and big data training
Hadoop and big data trainingHadoop and big data training
Hadoop and big data trainingagiamas
 
Hands on Hadoop and pig
Hands on Hadoop and pigHands on Hadoop and pig
Hands on Hadoop and pigSudar Muthu
 

Ähnlich wie Robert Havelka: REDIS – Letem světem (20)

Chicago Data Summit: Apache HBase: An Introduction
Chicago Data Summit: Apache HBase: An IntroductionChicago Data Summit: Apache HBase: An Introduction
Chicago Data Summit: Apache HBase: An Introduction
 
Redis introduction
Redis introductionRedis introduction
Redis introduction
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
 
Redis
RedisRedis
Redis
 
Fun with Ruby and Redis
Fun with Ruby and RedisFun with Ruby and Redis
Fun with Ruby and Redis
 
quickguide-einnovator-9-redis
quickguide-einnovator-9-redisquickguide-einnovator-9-redis
quickguide-einnovator-9-redis
 
Redis Installation Configuration And Implementation
Redis Installation Configuration And ImplementationRedis Installation Configuration And Implementation
Redis Installation Configuration And Implementation
 
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020
Redis is not just a cache, Andrew Lavers, ConFoo Montreal 2020
 
Map-Reduce and Apache Hadoop
Map-Reduce and Apache HadoopMap-Reduce and Apache Hadoop
Map-Reduce and Apache Hadoop
 
Etu L2 Training - Hadoop 企業應用實作
Etu L2 Training - Hadoop 企業應用實作Etu L2 Training - Hadoop 企業應用實作
Etu L2 Training - Hadoop 企業應用實作
 
Scaling Redis To 1M Ops/Sec: Jane Paek
Scaling Redis To 1M Ops/Sec: Jane PaekScaling Redis To 1M Ops/Sec: Jane Paek
Scaling Redis To 1M Ops/Sec: Jane Paek
 
Domain Name Server
Domain Name ServerDomain Name Server
Domain Name Server
 
Python redis talk
Python redis talkPython redis talk
Python redis talk
 
Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)
 
Redis
RedisRedis
Redis
 
Nextag talk
Nextag talkNextag talk
Nextag talk
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNS
 
You know, for search. Querying 24 Billion Documents in 900ms
You know, for search. Querying 24 Billion Documents in 900msYou know, for search. Querying 24 Billion Documents in 900ms
You know, for search. Querying 24 Billion Documents in 900ms
 
Hadoop and big data training
Hadoop and big data trainingHadoop and big data training
Hadoop and big data training
 
Hands on Hadoop and pig
Hands on Hadoop and pigHands on Hadoop and pig
Hands on Hadoop and pig
 

Kürzlich hochgeladen

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 

Kürzlich hochgeladen (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Robert Havelka: REDIS – Letem světem

  • 1. REDIS – Letem světem Robert Havelka
  • 2. What? „key-value” or „key-datastructure” storage string, hash, list, set a sorted set master - slave transactions
  • 3. What REDIS means? It means REmote DIctionary Server It is a joke on the word Redistribute (instead to use just a Relational DB redistribute your workload among Redis servers)
  • 4. String binary safe (JPEG, serialized objects) max 512M atomic counters INCR, DECR (64bit signed int) random access vector GETRANGE, SETRANGE http://redis.io/commands/#string
  • 5. List list of Strings ordered max length of a List is 232-1 B(L|R)POP http://redis.io/commands#list
  • 6. Set set of Strings max members in a Set is 232-1 extract elements at random SPOP, SRANDMEMBER http://redis.io/commands#set
  • 7. Hash map between String fields and String values Hash can store up to 232-1 field-value pairs http://redis.io/commands#hash
  • 8. Sorted set set of Strings members with score „most advanced Redis data types“ http://redis.io/commands#sorted_set
  • 9. Transaction WATCH – check and set UNWATCH MULTI – start transaction block EXEC – commit transaction, unWATCH all DISCARD – rollback
  • 10. Expiration EXPIRE (s) EXPIREAT (timestamp) PERSIST(cancel)
  • 11. Persistence RDB memory snapshot key changes AOF fast (~1s) redis-check-aof + diff
  • 12. Replication master – multiple slaves slave – slave graph-like structure cluster
  • 13. Clients C – hiredis Java – Jedis LUA – redis-lua Perl – Redis PHP – Predis Python – redis-py Ruby – redis-rb
  • 14. Sources http://redis.io Interactive tutorial - http://try.redis-db.com