官术网_书友最值得收藏!

Queue-based load leveling pattern

There are times when the load on an application cannot be determined at all times. Although there is consistent and predictable demand for application for most of the times, there are times when this load can go very high leading to failure of service or providing reduced performance or non-availability. Queue-based load leveling pattern can help during such scenarios. In this pattern, a queue is maintained and all request for the service is stored as messages within this queue. The queue acts as a highly available and durable temporary storage that then sends messages to service at a controlled speed thereby reducing disruption at the service end. The same has been shown in next image. There are multiple tasks sending messages to message queue. The queue stores the messages and ensures that the service gets these messages at a speed consistent with the resources available at the service end.

This pattern ensures that there is no unnecessary scaling up and out of resources by provisioning more instances to meet higher service demand. It has a direct impact on cost as well due to predictable usage and instances of resources.

High availability and better scalability are other advantages derived by implementing this pattern.

主站蜘蛛池模板: 正定县| 安陆市| 上饶市| 建水县| 黎平县| 南开区| 宕昌县| 绩溪县| 赣州市| 南郑县| 汤阴县| 丹凤县| 奎屯市| 吉安市| 渭源县| 芒康县| 溧阳市| 吉隆县| 宝应县| 如皋市| 南澳县| 曲松县| 九台市| 昌黎县| 浦城县| 合水县| 廉江市| 正镶白旗| 阿拉善右旗| 怀集县| 蒙自县| 宣威市| 濮阳县| 南召县| 永丰县| 清镇市| 安国市| 修武县| 株洲县| 嘉鱼县| 湟源县|