Faye or Redis Pubsub

后端 未结 2 1642
伪装坚强ぢ
伪装坚强ぢ 2021-02-02 02:08

I thought I understood this technology, but maybe I don\'t. What\'s the difference between the two? Why would you choose one over the other?

Usecase: ~Realtime updates.

2条回答
  •  一生所求
    2021-02-02 03:00

    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.

提交回复
热议问题