タグ

redisに関するledsunのブックマーク (5)

  • Twitterのキャッシュを支えるRedis - ワザノバ | wazanova

    https://www.youtube.com/watch?v=rP9EKvWt0zo 1 comment | 0 points | by WazanovaNews ■ comment by Jshiike | 約1時間前 TwitterのYao Yuが、大規模サービスのキャッシュにおいてRedisを活用する取組みについて紹介しています。 1) Redisを採用している理由 キャッシュだけで、ストレージとしては利用していない。 主なところでは、Twitterのタイムラインで利用している。ホーム画面であれ、ユーザ画面であれ、タイムラインはTweetのインデックスなので、key/valueストア型のRedisを利用するケースとして最適。 以前はmemcachedを使っていたが、問題になったのは、タイムラインでおきるread/writeは、(ユーザが閲覧している範囲に追加反映するということなの

    ledsun
    ledsun 2014/09/20
    リストの変更が多い時はmemcachedよりRedisが向いている。べき等性がない変更があるときは、writeの分散はやめた方がいい。
  • Node.jsってなんじゃ?(redisでSocket.IOをスケール)

    前回は、redisをインストールして生でつかってみました。 今回はnode.jsでredisを利用してみたいと思います。 マルチユーザーのサーバーでのプッシュ配信はSocket.IOが定番ですが、 サーバーが増えた時にある問題が生じます。 例えばサーバーを2つに増やして、サーバーAでブロードキャストしても サーバーBのクライアントでは受信できないのです。 以前の記事で作成したチャットプログラムを例にしてみます。 サーバー側のjs $ cat /home/appadmin/chat/node/chat.js var server = require('http').createServer(function(req, res){ res.writeHead(200, {'Content-Type': 'text/html'}); res.end('server connected'); })

    Node.jsってなんじゃ?(redisでSocket.IOをスケール)
    ledsun
    ledsun 2014/08/07
    “Socket.IOにはRedisStoreというredisに接続情報を保存するオプションも存在します”
  • How to keep redis server running

    I am using redis for session support in nodejs app. I have installed redis server and it works when I run redis-server, but when I close terminal redis stops and does not work. How do I keep redis server running after closing the terminal?

    How to keep redis server running
    ledsun
    ledsun 2014/08/07
    “daemonize yes”
  • Command reference – Redis

    ACL CAT Lists the ACL categories, or the commands inside a category. Read more ACL DELUSER Deletes ACL users, and terminates their connections. Read more ACL DRYRUN Simulates the execution of a command by a user, without executing the command. Read more ACL GENPASS Generates a pseudorandom, secure password that can be used to identify ACL users. Read more ACL GETUSER Lists the ACL rules of a user.

    ledsun
    ledsun 2014/08/06
    memo
  • MacにRedisをインストールする - Qiita

    ==> Downloading http://redis.googlecode.com/files/redis-2.6.10.tar.gz ######################################################################## 100.0% ==> make -C /private/tmp/redis-e09G/redis-2.6.10/src CC=cc ==> Caveats To have launchd start redis at login: ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents Then to load redis now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis

    MacにRedisをインストールする - Qiita
    ledsun
    ledsun 2014/08/05
    brew install redis
  • 1