Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Are you Redis? Introduction to Redis.

5ff4f1dbfd3888fba963ec7cc629e6f3?s=47 mthenw
February 25, 2012

Are you Redis? Introduction to Redis.

25.02.2012, meetphp.pl #3

5ff4f1dbfd3888fba963ec7cc629e6f3?s=128

mthenw

February 25, 2012
Tweet

More Decks by mthenw

Other Decks in Technology

Transcript

  1. Are you ? Introduction to Redis meet.php #3 25.02.2012

  2. Maciej Winnicki Computer Programmer PHP at Allegro Group @mthenw

  3. advanced key-value store

  4. in-memory database

  5. memcached on steroids

  6. data structures server

  7. Author Salvatore Sanfilippo @antirez antirez.com

  8. In production

  9. In PHP github.com/nicolasff/phpredis github.com/nrk/predis

  10. Data structure server Strings SET, GET, GETRANGE, INCR, DECR Lists

    LPUSH, RPUSH, RPOP, LRANGE, RPOPLPUSH (Sorted) Sets SADD, SINTER, SMEMBERS, SCARD, ZADD, ZSCORE Hashes HSET, HMSET, HGETALL
  11. Advanced key-value store Persistence Replication Transaction Pipelining PUB/SUB

  12. Persistence snapshot (RDB) append-only file (AOF)

  13. Replication master slave slave slave with persistence

  14. Transactions MULTI EXEC

  15. Pipelining Client: INCR X Server: 1 Client: INCR X Server:

    2 Client: INCR X Server: 3 Client: INCR X Server: 4 Client: INCR X Client: INCR X Client: INCR X Client: INCR X Server: 1 Server: 2 Server: 3 Server: 4 vs.
  16. PUB/SUB Publish on PHP Subscribe on node.js

  17. None
  18. kariera.allegro.pl kariera.allegro.pl/Praca-w-Grupie-Allegro/Development/66-Programista-PHP

  19. Q&A