SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

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
 

Tendances (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
 

En vedette

המדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלההמדריך השלם לרכישת נעלי כלה
המדריך השלם לרכישת נעלי כלה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
 

En vedette (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
 
סטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענותסטנדרטים מחודשים במידענות
סטנדרטים מחודשים במידענות
 

Similaire à 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
 

Similaire à 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
 

Dernier

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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
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
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Dernier (20)

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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

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