一种基于Kafka实现全自动负载均衡消费消息的方法及系统

By adding dynamic listening and automatic load balancing modules to Kafka and dynamically adjusting consumer processes, the load balancing problem of Kafka message middleware in the era of big data is solved, achieving efficient and automated resource utilization and message processing.

CN115934252BActive Publication Date: 2026-07-17HAINA ZHIYUAN DIGITAL TECH (SHANGHAI) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HAINA ZHIYUAN DIGITAL TECH (SHANGHAI) CO LTD
Filing Date
2022-12-08
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing Kafka message middleware struggles to achieve efficient and automated load balancing for message consumption in the era of big data, resulting in underutilization of resources, low development efficiency, and poor system stability.

Method used

By adding a dynamic listening module and an automatic load balancing consumer module to the application server, and using a visual configuration module to manage Kafka topic information and dynamically adjust consumer processes, fully automatic load balancing can be achieved.

Benefits of technology

The load balancing method has been optimized, improving message processing capabilities and resource utilization, enhancing development efficiency and system stability, and making it suitable for diverse big data processing and cleaning scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115934252B_ABST
    Figure CN115934252B_ABST
Patent Text Reader

Abstract

本发明提供了一种基于Kafka实现全自动负载均衡消费消息的方法及系统,该方法包括步骤:S1、对kafka对应主题topic信息进行可视化管理;S2、应用服务器启动时,获取本地IP信息,标记该应用服务器在集群内在线运行;S3、每间隔第一特定时间,集群内应用服务器的其中一个在线运行的应用服务器负责检查所有kafka的topic信息表变动情况,并更新topic消费者表;S4、每间隔第二特定时间,所有集群内应用服务器基于topic信息表变动情况按照负载均衡算法进行负载均衡kafka消费者进程并同步更新topic消费者表。本申请集群应用服务器自动化读取并按照动态变化的topic信息进行启停服务器,应用系统不再需要通过新增代码去触发创建消费者进程,高效提高了开发的工作效率和系统的稳定性。
Need to check novelty before this filing date? Find Prior Art