什么是分布式队列? [英] what is distributed queue?

查看:123
本文介绍了什么是分布式队列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的理解:-分布式目标是客户端的单个逻辑(非物理)目标,客户端内部包含一组物理目标(队列或主题)。
它在高可用性(HA)和负载平衡(LB)方面有助于可扩展的应用程序。

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).

因此,当我执行 distributedQueue.put(someObject)时,分布式队列会将对象放在phyicalQueue之一上并且还维护一些元数据来记录哪个
对象位于哪个队列上

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

现在当我执行 distributedQueue.receive()时,它将引用元数据,从正确的队列中轮询数据并将其提供给客户端。

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

这是正确的吗?

推荐答案

那是实现分布式队列的一种方法,是的。

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.

这篇关于什么是分布式队列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆