用于高效异步队列的松弛
Relaxation for Efficient Asynchronous Queues
AI总结:
针对异步计算环境中的共享数据结构实现问题,提出通过松弛Queue数据类型的顺序保证,使大多数Dequeue实例仅需本地计算即可返回,从而在数据顺序与访问速度间实现可调的权衡。
摘要:
我们探讨了在异步计算环境中高效实现共享数据结构的问题。我们从一个传统的FIFO队列开始,表明在每次操作的调用与响应之间,仅通过单次往返消息的延迟即可实现完全复制。这对于Dequeue操作而言是最优或接近最优的运行时间。随后我们考虑了规避这一性能限制的方法。尽管我们无法改善单个操作实例的最坏情况时间,但我们表明,松弛(即削弱Queue数据类型的顺序保证)允许大多数Dequeue实例在仅经过本地计算后即返回,从而给出了每个实例较低的摊销成本。这种性能是可调的,在数据顺序与访问速度之间提供了可定制的权衡。
英文摘要:
We explore the problem of efficiently implementing shared data structures in an asynchronous computing environment. We start with a traditional FIFO queue, showing that full replication is possible with a delay of only a single round-trip message between invocation and response of each operation. This is optimal, or near-optimal, runtime for the Dequeue operation. We then consider ways to circumvent this limitation on performance. Though we cannot improve the worst-case time per operation instance, we show that relaxation, weakening the ordering guarantees of the Queue data type, allows most Dequeue instances to return after only local computation, giving a low amortized cost per instance. This performance is tunable, giving a customizable tradeoff between the ordering of data and the speed of access
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。