Redis vs Service Bus for pub/sub scenario

孤人 提交于 2019-12-07 00:30:20

问题


I have several services in Azure and i would like to sync changes between them using some kind of pub/sub service.

I am looking into Redis and Azure Service Bus.

The data to be synced is very simple - mostly strings up to 100 characters

I would like to know what is the preferred choice for me - or if i am in the right direction..

My requirements are simple:

  1. Low latency - Many small operations
  2. optional - be able to install the solution on-premise and not in Azure

回答1:


Don't use Redis for this. Redis PubSub isn't reliable (it's fire-and-forget). What would happen if no one is listening when Redis publishes a message? It's lost forever, and this means that your services won't be synchronized...

Maybe you didn't hear about Azure Pack. It's not a full Azure on-premises, but it includes Service Bus. It should be no issue if you use it from the public or private cloud.

Note that you might be able to implement reliable messaging using Redis, but not on top of default pubsub.

A possible alternative to both Redis and Service Bus should be RabbitMQ.



来源:https://stackoverflow.com/questions/35122005/redis-vs-service-bus-for-pub-sub-scenario

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!