Managing dynamic messaging using a Kafka-based monitoring application
Abstract
A method and system performing a method for managing dynamic messaging using a Kafka-based monitoring application deployed within a cloud environment having at least one software application in operation is provided. The Kafka-based monitoring application monitors consumer lag for a specific topic associated with the software application, schedules queries to detect consumer lag for the specific topic at predetermined intervals. detects, via an application programming interface in communication with the Kafka-based monitoring application, any consumer lag and retrieves a list of any affected consumers and associated consumer information; and determines one or more pools of the affected consumers, and performs a scaling operation to scale up or down consumers on the one or more pools based on the consumer lag detected.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for managing dynamic messaging using a Kafka-based monitoring application deployed within a cloud environment having at least one software application in operation, the method comprising: monitoring, via the Kafka-based monitoring application, consumer lag for a specific topic associated with the at least one software application; scheduling queries, via the Kafka-based monitoring application, to detect consumer lag for the specific topic at predetermined intervals; detecting, via an application programming interface in communication with the Kafka-based monitoring application, any consumer lag and retrieving a list of any affected consumers and associated consumer information; and determining one or more pools of the affected consumers, and performing a scaling operation to scale up or down consumers on the one or more pools based on the consumer lag detected.
- Claim 2Depends on #1
The method of claim 1, wherein detection of any consumer lag further comprises: determining whether the consumer lag exceeds a pre-configured lag threshold associated with the at least one software application.
- Claim 3Depends on #1
The method of claim 1, wherein when no consumer lag is detected, determining, via the Kafka-based monitoring application whether to scale down a number of consumers at the one or more pools, and scaling down the number of consumers when determined.
- Claim 4Depends on #1
The method of claim 1, wherein when consumer lag is detected on the one or more pools, shutting down any affected consumers on the one or more pools and adding an equivalent number of consumers to one or more unaffected pools.
- Claim 5Depends on #4
The method of claim 4, further comprising detecting actual consumer lag, and adding a number of new consumer instances based on the actual consumer lag detected.
- Claim 6Depends on #1
The method of claim 1, further comprising: performing auto-scaling up and down of consumers, via the Kafka-based monitoring application, within one or more pools when consumer lag exists.
- Claim 7Depends on #1
The method of claim 1, further comprising: performing schedule-based auto-scaling of consumers, via the Kafka-based monitoring application, to scale consumer instances up and down to accommodate any event traffic on the at least one software application, wherein when a burst of events is expected during a predetermined period of time, scheduling the scaling up of new consumer instances during that predetermined period of time; and automatically scaling down any consumers associated with the new consumer instances when the predetermined period of time lapses.
- Claim 8Depends on #5
The method of claim 5, further comprising: performing intelligent-based scaling, via the Kafka-based monitoring application, based on the actual consumer lag by determining and adding a number of new consumer instances required to remove the actual consumer lag.
- Claim 9Depends on #8
The method of claim 8, further comprising: performing downscaling once the actual consumer lag goes down by shutting down the number of new consumer instances added, to return the at least one software application back to an original configuration.
- Claim 10Depends on #9
The method of claim 9, further comprising: adding new pools, via the Kafka-based monitoring application, where the at least one software application is not already deployed, when it is determined that there is not sufficient capacity on the one or more pools to add the number of new consumer instances.
- Claim 11Depends on #1
The method of claim 1, further comprising: storing historical data associated with actions taken by the Kafka-based monitoring application within a database, and training a machine language model to predict actions to be taken by the Kafka-based monitoring application, based on the historical data stored; and performing a scaling operation based on the predicted actions to be taken.
- Claim 12Independent Claim
A system for managing dynamic messaging within a cloud environment having at least one software application in operation comprising: a processor; and a Kafka-based monitoring application performing operations via the processor, the processor being configured to: monitor consumer lag for a specific topic associated with the at least one software application; schedule queries to detect consumer lag for the specific topic at predetermined intervals; detecting, via an application programming interface in communication with the Kafka-based monitoring application, any consumer lag and retrieve a list of any affected consumers and associated consumer information; and determine one or more pools of the affected consumers, and perform a scaling operation to scale up or down consumers on the one or more pools based on the consumer lag detected.
- Claim 13Depends on #12
The system of claim 12, wherein the processor is further configured to: determine whether the consumer lag exceeds a pre-configured lag threshold associated with the at least one software application.
- Claim 14Depends on #12
The system of claim 12, wherein when no consumer lag is detected, the processor is further configured to: determine whether to scale down a number of consumers at the one or more pools, and scaling down the number of consumers when determined.
- Claim 15Depends on #12
The system of claim 12, wherein when consumer lag is detected on the one or more pools, the processor is further configured to: shut down any affected consumers on the one or more pools and adding an equivalent number of consumers to one or more unaffected pools.
- Claim 16Depends on #15
The system of claim 15, wherein the processor is further configured to perform auto-scaling up and down of consumers within the one or more pools when consumer lag exists.
- Claim 17Depends on #12
The system of claim 12, wherein the processor is further configured to: perform schedule-based auto-scaling of consumers, to scale consumer instances up and down to accommodate any event traffic on the at least one software application, wherein when a burst of events is expected during a predetermined period of time, scheduling the scaling up new consumer instances during that predetermined period of time; and automatically scaling down any consumers associated with the new of consumer instances when the predetermined period time lapses.
- Claim 18Depends on #12
The system of claim 12, wherein the processor is further configured to perform intelligent-based scaling, based on actual consumer lag by determining and adding a number of new consumer instances required to remove the actual consumer lag; and perform downscaling once the actual consumer lag goes down by shutting down the number of new consumer instances added, to return the at least one software application back to an original configuration.
- Claim 19Independent Claim
A non-transitory computer-readable medium having stored thereon, computer executable instructions that, if executed by a computing device, cause the computing device to perform a method for managing dynamic messaging using a Kafka-based monitoring application deployed within a cloud environment having at least one software application in operation, the method comprising: monitoring, via the Kafka-based monitoring application, consumer lag for a specific topic associated with the at least one software application; scheduling queries, via the Kafka-based monitoring application, to detect consumer lag for the specific topic at predetermined intervals; detecting, via an application programming interface in communication with the Kafka-based monitoring application, any consumer lag and retrieving a list of any affected consumers and associated consumer information; and determining one or more pools of the affected consumers, and performing a scaling operation to scale up or down consumers on the one or more pools based on the consumer lag detected.
- Claim 20Depends on #19
The non-transitory computer-readable medium of claim 19, wherein detection of any consumer lag further comprises: determining whether the consumer lag exceeds a pre-configured lag threshold associated with the at least one software application.
Technical Overview & Description
FIELD OF TECHNOLOGY The present disclosure relates generally to machine learning (ML) and, in particular, to dynamic messaging using a Kafka-based monitoring application. BACKGROUND Kafka is a stream processing system used, for example, for messaging, event sourcing, and data analytics. In Kafka-based systems, real-time flows are widely employed for event-based architectures. Kafka is architecturally divided into producers, platforms, brokers, and consumers. The producer is responsible for producing messages to the platform that is responsible for hosting messages, and the load balancing of production and consumption, and the consumer pulls the messages required by the consumer from the platform. Events that are created by producers and are sent to the brokers for specific topics. When a consumer receives an event from a broker, they process it and inform the broker the event has been committed. Applications or services that need to receive messages will use a consumer to receive messages for the specific topics. During a burst of events received by the broker, when a consumer cannot process the events quickly, this results in an increased lag time at the consumer level that affects both the functionality of the applications and the efficiency of the overall eco-system. Currently, GAIA marketplace offers an auto-scale service for GAIA applications, however it can only scale certain applications based on a limited set of application metrics such as central processor unit (CPU) utilization, HTTP throughput and HTTP latency. In Kafka-based monitoring applications which are based on event-driven architecture, problems exists such as the consumers not being able to keep up with the rate a producer is producing events resulting in significant lag time on the messaging broker, thereby creating serious risks to the application infrastructure and production stability. As such, a need exists for systems and methods that to manage the dynamic messaging by matching the pace of
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (8)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (1)
- English Translation of CN110633151, 10 pages, published Dec. 2019.