Skip to content

Instantly share code, notes, and snippets.

@hideo55
Created April 5, 2012 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hideo55/2312264 to your computer and use it in GitHub Desktop.
Save hideo55/2312264 to your computer and use it in GitHub Desktop.
Hachioji.pmで作るYet another IRCについての設計案

AP

  • サーバサイドはとにかくAPIに徹する感じ
  • レンダリングはクライアントで

フロント

メセージ交換サーバ

  • Twiggy
  • PocketIO
  • Tatsumaki使ってもいいけど、生Plack + P::Middlewareくらいでも
  • AnyEventでひたすら頑張る

ログサーバ

  • 単純なWeb-API
  • Starman or Starlet
  • PlackベースのWAF

DB

用途的にはレンジアクセスが得意なものが望ましい

Redis + groonga

  • Redis
    • メッセージ交換サーバ用
    • Pub/Subの利用でAPサーバのスケールアウトもできる
    • タグに対応するメッセージIDをリスト型に入れていく
    • http://redis.shibu.jp/tutorial/index.html
  • groonga
    • ログ用
    • 全文検索

MySQL

  • 使い慣れている人が多い
  • mroongaで全文検索
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment