質問

私はこのテクノロジーを理解していると思いましたが、理解していないかもしれません。2つの違いは何ですか?なぜあなたはどちらか一方を選ぶのですか?

ユースケース:〜リアルタイムの更新。

役に立ちましたか?

解決

私はフェイの作者です。概念的には、FayeとRedis pub / subは非常によく似た動作をします。実際、Fayeの最新リリースではRedisをバックエンドとして使用できます。トムが言うように、RedisクライアントはRedisデータベース全体にアクセスできるため、Redisはサーバークラスター内のプロセス間メッセージングに適しています。

Fayeは、たとえばWebサイトのUIを強化するために、Webを介して一般にアクセス可能なpub / subサービスを提供する場合に適しています。pub / subのみを実行し、Redisが提供する他のストレージは実行せず、生のTCPソケットではなくHTTPおよびWebSocketを介して動作します。また、ユーザー定義のクライアント側およびサーバー側の拡張機能を使用して、使用するメッセージングプロトコルを拡張することもできます。

他のヒント

Redis publish/subscribe is a very simple system for internal use in a server cluster - it requires an open connection to redis (unauthenticated and giving complete access to everything in redis).

Obviously this is the most efficient way to handle scenarios where this is appropriate, but if you need authentication, reliable delivery, or http connections you will need to add a more complete messaging system on top of redis. Faye is one of the options in this space.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top