DFoxinator / redis-demos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redis-demos





















What is Redis?

  • In-memory data structure store
  • Robust data types: strings, hashes, lists, sets, sorted sets
  • Can use as cache, db, etc.




















Why is Redis better than Memcached?





















Redis sorted sets

  • Non-repeating collection of strings,
    each member with an integer score
  • Easy/efficient to add, remove, update elements
  • Easy/efficient to get, remove multiple items by
    score ranges, index ranges, etc.




















Architecture challenge #1:
show a near-real-time count of users
currently browsing a popular website





















Architecture challenge #2:
build an ultra-efficient way
to record client usage of an API,
then atomically consumable by a cron/processor





















About


Languages

Language:PHP 100.0%