タグ

2016年5月3日のブックマーク (2件)

  • File: SPEC — Documentation for rack/rack (master)

    This specification aims to formalize the Rack protocol. You can (and should) use Rack::Lint to enforce it. When you develop middleware, be sure to add a Lint before and after to catch all mistakes. Rack applications A Rack application is a Ruby object (not a class) that responds to call. It takes exactly one argument, the environment and returns an Array of exactly three values: The status, the he

    willnet
    willnet 2016/05/03
  • NOTIFY

    説明NOTIFYコマンドは、現在のデータベース内で事前にその指定チャネル名についてLISTEN channelコマンドを実行したクライアントアプリケーションに省略可能な"ペイロード"を持つ通知イベントを送ります。 通知はすべてのユーザから可視です。 NOTIFYは同一のPostgreSQLデータベースにアクセスするプロセスの集合に対する単純なプロセス間通信の仕組みを提供します。 通知の際にペイロード文字列を送信することができます。 また、データベース内のテーブルを使用して通知者から(1つまたは複数の)リスナに追加的なデータを渡すことにより、構造化されたデータを渡す高度な仕組みを構築することができます。 通知イベントとしてクライアントに渡される情報には、通知チャネル名と通知を行うセッションのサーバプロセスのPID、ペイロード文字列(指定されていなければ空文字列)が含まれます。 与えられたデー