Throttling using message partitioning and buffering

US11157338B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11157338-B2
Application numberUS-201916669410-A
CountryUS
Kind codeB2
Filing dateOct 30, 2019
Priority dateOct 30, 2019
Publication dateOct 26, 2021
Grant dateOct 26, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Provided are techniques for throttling using message partitioning and buffering. A plurality of messages are stored in an input topics buffer, where the input topics buffer is stored in a plurality of partitions, and where each of the partitions of the plurality of partitions is associated with a tenant subgroup of a plurality of tenant subgroups of a tenant. A message of the plurality of messages from the tenant subgroup of the tenant is selected. A throttle count for the tenant subgroup is retrieved. A maximum message threshold for the tenant is retrieved. In response to determining that the throttle count is less than the maximum message threshold, the message is moved from the input topics buffer to a work topics buffer. In response to determining that the throttle count is equal to or greater than the maximum message threshold, throttling the tenant subgroup.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method, comprising operations for: storing a plurality of messages in an input topics buffer, wherein the input topics buffer is stored in a plurality of partitions, and wherein each of the partitions of the plurality of partitions is associated with a tenant subgroup of a plurality of tenant subgroups of a tenant of a plurality of tenants; selecting a message of the plurality of messages from the input topics buffer for a first tenant subgroup of the tenant; retrieving a tenant subgroup identifier of the first tenant subgroup from a message key of the message; mapping the tenant subgroup identifier to a tenant identifier of the tenant; retrieving, using the tenant subgroup identifier, a throttle count for the first tenant subgroup from a cluster-wide cache that stores a plurality of different throttle counts, wherein each of the different throttle counts is associated with different tenant subgroup of the plurality of tenant subgroups, and wherein a second tenant subgroup has another throttle count; retrieving, using the tenant identifier, a maximum message threshold for the tenant, wherein the maximum message threshold is used for each tenant subgroup of the plurality of tenant subgroups; in response to determining that the throttle count for the first tenant subgroup is less than the maximum message threshold, moving the message from the input topics buffer to a work topics buffer; and in response to determining that the throttle count for the first tenant subgroup is equal to or greater than the maximum message threshold, throttling the tenant subgroup. 2. The computer-implemented method of claim 1 , wherein messages in a first partition of the plurality of partitions are processed in an order received before messages in a next partition of the plurality of partitions are processed in the order received. 3. The computer-implemented method of claim 1 , wherein the operations further comprise: incrementing the throttle count. 4. The computer-implemented method of claim 1 , wherein a micro-service retrieves the message from the work topics buffer, processes the message, and decrements the throttle count. 5. The computer-implemented method of claim 1 , wherein a Software as a Service (SaaS) is configured to perform the operations of the method. 6. A computer program product, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable by at least one processor to perform operations for: storing a plurality of messages in an input topics buffer, wherein the input topics buffer is stored in a plurality of partitions, and wherein each of the partitions of the plurality of partitions is associated with a tenant subgroup of a plurality of tenant subgroups of a tenant of a plurality of tenants; selecting a message of the plurality of messages from the input topics buffer for a first tenant subgroup of the tenant; retrieving a tenant subgroup identifier of the first tenant subgroup from a message key of the message; mapping the tenant subgroup identifier to a tenant identifier of the tenant; retrieving, using the tenant subgroup identifier, a throttle count for the first tenant subgroup from a cluster-wide cache that stores a plurality of different throttle counts, wherein each of the different throttle counts is associated with different tenant subgroup of the plurality of tenant subgroups, and wherein a second tenant subgroup has another throttle count; retrieving, using the tenant identifier, a maximum message threshold for the tenant, wherein the maximum message threshold is used for each tenant subgroup of the plurality of tenant subgroups; in response to determining that the throttle count for the first tenant subgroup is less than the maximum message threshold, moving the message from the input topics buffer to a work topics buffer; and in response to determining that the throttle count for the first tenant subgroup is equal to or greater than the maximum message threshold, throttling the tenant subgroup. 7. The computer program product of claim 6 , wherein messages in a first partition of the plurality of partitions are processed in an order received before messages in a next partition of the plurality of partitions are processed in the order received. 8. The computer program product of claim 6 , wherein the operations further comprise: incrementing the throttle count. 9. The computer program product of claim 6 , wherein a micro-service retrieves the message from the work topics buffer, processes the message, and decrements the throttle count. 10. The computer program product of claim 6 , wherein a Software as a Service (SaaS) is configured to perform the operations of the computer program product. 11. A computer system, comprising: one or more processors, one or more computer-readable memories and one or more computer-readable, tangible storage devices; and program instructions, stored on at least one of the one or more computer-readable, tangible storage devices for execution by at least one of the one or more processors via at least one of the one or more computer-readable memories, to perform operations comprising: storing a plurality of messages in an input topics buffer, wherein the input topics buffer is stored in a plurality of partitions, and wherein each of the partitions of the plurality of partitions is associated with a tenant subgroup of a plurality of tenant subgroups of a tenant of a plurality of tenants; selecting a message of the plurality of messages from the input topics buffer for a first tenant subgroup of the tenant; retrieving a tenant subgroup identifier of the first tenant subgroup from a message key of the message; mapping the tenant subgroup identifier to a tenant identifier of the tenant; retrieving, using the tenant subgroup identifier, a throttle count for the first tenant subgroup from a cluster-wide cache that stores a plurality of different throttle counts, wherein each of the different throttle counts is associated with different tenant subgroup of the plurality of tenant subgroups, and wherein a second tenant subgroup has another throttle count; retrieving, using the tenant identifier, a maximum message threshold for the tenant, wherein the maximum message threshold is used for each tenant subgroup of the plurality of tenant subgroups; in response to determining that the throttle count for the first tenant subgroup is less than the maximum message threshold, moving the message from the input topics buffer to a work topics buffer; and in response to determining that the throttle count for the first tenant subgroup is equal to or greater than the maximum message threshold, throttling the tenant subgroup. 12. The computer system of claim 11 , wherein messages in a first partition of the plurality of partitions are processed in an order received before messages in a next partition of the plurality of partitions are processed in the order received. 13. The computer system of claim 11 , wherein the operations further comprise: incrementing the throttle count. 14. The computer system of claim 11 , wherein a micro-service retrieves the message from the work topics buffer, processes the message, and decrements the throttle count. 15. The computer system of claim 11 , wherein a Software as a Service (SaaS) is configured to perform the operations of the computer system.

Assignees

Inventors

Classifications

  • Push-based network services · CPC title

  • Partitioning or combining of resources · CPC title

  • Buffers; Shared memory; Pipes · CPC title

  • User profiles · CPC title

  • for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS] · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11157338B2 cover?
Provided are techniques for throttling using message partitioning and buffering. A plurality of messages are stored in an input topics buffer, where the input topics buffer is stored in a plurality of partitions, and where each of the partitions of the plurality of partitions is associated with a tenant subgroup of a plurality of tenant subgroups of a tenant. A message of the plurality of messa…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F9/546. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Oct 26 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 11 related publications on this page (citations in our corpus or others sharing the same primary CPC).