what is distributed queue?

旧城冷巷雨未停 提交于 2019-12-12 03:56:06

问题


My Understanding :- A distributed destination is a single, logical(not physical) destination to a client which internally contains set of physical destinations (queues or topics) . It helps in scalable applications in terms of High availability(HA) and Load Balancing(LB).

So when i do distributedQueue.put(someObject), distributed queue will put the object on one of the phyicalQueue and also maintains some meta data to record which object lies on which on which queue

Now when i do distributedQueue.receive() , it will refer metadata , poll the data from right queue and serve it to client.

Is that correct ?


回答1:


That would be one way of implementing a distributed queue, yes.

However, in your implementation the metadata store will very quickly become a bottleneck/hot-spot.



来源:https://stackoverflow.com/questions/41878393/what-is-distributed-queue

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