+

CN116303418A - Massive rule processing method, system and storage medium based on Internet of Things platform - Google Patents

Massive rule processing method, system and storage medium based on Internet of Things platform Download PDF

Info

Publication number
CN116303418A
CN116303418A CN202211644686.9A CN202211644686A CN116303418A CN 116303418 A CN116303418 A CN 116303418A CN 202211644686 A CN202211644686 A CN 202211644686A CN 116303418 A CN116303418 A CN 116303418A
Authority
CN
China
Prior art keywords
rule
hash
service
configuration information
distribution management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211644686.9A
Other languages
Chinese (zh)
Inventor
贲兴龙
王世杰
张婕
段鹏
丁霞
朱明�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi IoT Technology Co Ltd
Original Assignee
Tianyi IoT Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi IoT Technology Co Ltd filed Critical Tianyi IoT Technology Co Ltd
Priority to CN202211644686.9A priority Critical patent/CN116303418A/en
Publication of CN116303418A publication Critical patent/CN116303418A/en
Priority to PCT/CN2024/070262 priority patent/WO2024131990A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a mass rule processing method, a mass rule processing system and a mass rule processing storage medium based on an Internet of things platform. The method belongs to the technical field of the Internet of things, and comprises the following steps: the rule distribution management service calculates rule hash values of all rules according to the acquired user identifications and stores the rule hash values into a database rule table; the rule distribution management service generates a rule hash partition list which is required to be loaded by each rule processing service in a banding mode according to a preset hash partition rule, stores the rule configuration information to obtain, sends the rule configuration information to the corresponding rule processing service, and sends the total rule configuration information to the message dispatching service; the rule processing service obtains rules corresponding to the rule hash partition list from the database rule table according to the rule configuration information and loads the rules; and the message dispatch service distributes the received reported information according to the full rule configuration information and the user identification in the reported information. The embodiment of the application can improve the processing efficiency of the mass rules.

Description

基于物联网平台的海量规则处理方法、系统及存储介质Massive rule processing method, system and storage medium based on Internet of Things platform

技术领域technical field

本发明涉及物联网技术领域,尤其涉及一种基于物联网平台的海量规则处理方法、系统及存储介质。The present invention relates to the technical field of the Internet of Things, in particular to a massive rule processing method, system and storage medium based on the Internet of Things platform.

背景技术Background technique

物联网平台一般具备终端接入、终端管理、消息推送、规则引擎等通用基础能力。物联网终端接入物联网平台后,由消息推送模块根据用户消息推送规则,将终端上报的消息推送给物联网应用;或者由规则引擎模块基于用户定制处理规则,对终端上报信息进行清洗、过滤和处理。IoT platforms generally have common basic capabilities such as terminal access, terminal management, message push, and rule engines. After the IoT terminal is connected to the IoT platform, the message push module pushes the message reported by the terminal to the IoT application according to the user message push rules; or the rule engine module cleans and filters the information reported by the terminal based on the user-defined processing rules and processing.

物联网平台消息推送模块和规则引擎模块,一般会将用户配置的规则加载到内存来提高规则计算处理效率。随着物联网的规模化发展,接入物联网平台的终端和应用数量不断增长,终端上报消息、用户定制的消息推送规则、规则引擎处理规则都在不断增加。规则处理服务采用集群方式部署,一般会将上报消息随机发送给一个规则处理服务进行处理,为了确保业务正常,规则处理服务需要将全量规则加载到内存,而海量规则内存加载会导致服务器内存容量受限,降低规则处理的效率。The message push module and the rule engine module of the Internet of Things platform generally load the rules configured by the user into the memory to improve the efficiency of rule calculation and processing. With the large-scale development of the Internet of Things, the number of terminals and applications connected to the Internet of Things platform continues to increase, and the number of terminals reporting messages, user-customized message push rules, and rule engine processing rules are all increasing. The rule processing service is deployed in a cluster mode. Generally, the reported message is randomly sent to a rule processing service for processing. To ensure normal business, the rule processing service needs to load all the rules into the memory, and the memory loading of massive rules will cause the memory capacity of the server to be affected. limit, reducing the efficiency of rule processing.

发明内容Contents of the invention

本发明实施例提供了一种基于物联网平台的海量规则处理方法、系统及存储介质,旨在提高现有物联网平台中海量规则的处理效率。Embodiments of the present invention provide a massive rule processing method, system and storage medium based on an Internet of Things platform, aiming at improving the processing efficiency of massive rules in an existing Internet of Things platform.

第一方面,本发明实施例提供了一种基于物联网平台的海量规则处理方法,其包括:In the first aspect, the embodiment of the present invention provides a massive rule processing method based on the Internet of Things platform, which includes:

规则分发管理服务从数据库规则表中获取用户标识,并根据所述用户标识及预设规则哈希上限值计算各规则的规则哈希值,并将所述规则哈希值保存至所述数据库规则表;The rule distribution management service obtains the user ID from the database rule table, calculates the rule hash value of each rule according to the user ID and the preset rule hash upper limit value, and saves the rule hash value to the database rule table;

所述规则分发管理服务根据所述预设哈希分片规则以条带化方式生成各规则处理服务所需加载的规则哈希分区列表,并进行保存以得到规则配置信息;The rule distribution management service generates a list of rule hash partitions to be loaded by each rule processing service in a striped manner according to the preset hash sharding rules, and saves them to obtain rule configuration information;

所述规则分发管理服务将所述规则配置信息发送至相应所述规则处理服务,并将全量规则配置信息发送至消息分派服务;The rule distribution management service sends the rule configuration information to the corresponding rule processing service, and sends the full amount of rule configuration information to the message dispatch service;

所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载;The rule processing service obtains and loads rules corresponding to the rule hash partition list from the rule table of the database according to the rule configuration information;

所述消息分派服务若接收到上报信息,则根据所述全量规则配置信息及所述上报信息中的所述用户标识对所述上报信息进行分配。If the message dispatch service receives the reported information, it distributes the reported information according to the full rule configuration information and the user identifier in the reported information.

第二方面,本发明实施例还提供了一种基于物联网平台的海量规则处理系统,其包括:配置于规则分发管理服务中的获取计算单元及生成第一发送单元,配置于规则处理服务中的第一获取加载单元以及配置于消息分派服务中的分配单元,其中,In the second aspect, the embodiment of the present invention also provides a massive rule processing system based on the Internet of Things platform, which includes: an acquisition computing unit configured in the rule distribution management service and a generating first sending unit configured in the rule processing service The first acquisition and loading unit of and the allocation unit configured in the message dispatch service, wherein,

所述获取计算单元用于规则分发管理服务从数据库规则表中获取用户标识,并根据所述用户标识及预设规则哈希上限值计算各规则的规则哈希值,并将所述规则哈希值保存至所述数据库规则表;The obtaining calculation unit is used for the rule distribution management service to obtain the user identifier from the database rule table, and calculate the rule hash value of each rule according to the user identifier and the preset rule hash upper limit value, and hash the rule Save the hash value to the database rule table;

所述生成保存单元用于所述规则分发管理服务根据所述预设哈希分片规则以条带化方式生成各规则处理服务所需加载的规则哈希分区列表,并进行保存以得到规则配置信息;The generation and storage unit is used for the rule distribution management service to generate a list of rule hash partitions that need to be loaded by each rule processing service in a striped manner according to the preset hash sharding rules, and store them to obtain the rule configuration information;

所述第一发送单元用于所述规则分发管理服务将所述规则配置信息发送至相应所述规则处理服务,并将全量规则配置信息发送至消息分派服务;The first sending unit is used for the rule distribution management service to send the rule configuration information to the corresponding rule processing service, and send the full amount of rule configuration information to the message dispatch service;

所述第一获取加载单元用于所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载;The first obtaining and loading unit is used for the rule processing service to obtain and load rules corresponding to the rule hash partition list from the database rule table according to the rule configuration information;

所述分配单元用于所述消息分派服务若接收到上报信息,则根据所述全量规则配置信息及所述上报信息中的所述用户标识对所述上报信息进行分配。The allocating unit is configured to allocate the reported information according to the full rule configuration information and the user identifier in the reported information if the message dispatch service receives the reported information.

第三方面,本发明实施例还提供了一种基于物联网平台的海量规则处理系统,其包括规则分发管理服务、规则处理服务以及消息分派服务,所述规则分发管理服务、规则处理服务以及消息分派服务均包括存储器及处理器,所述存储器上存储有计算机程序,所述规则分发管理服务、规则处理服务以及消息分派服务的所述处理器执行所述计算机程序时实现上述方法。In the third aspect, the embodiment of the present invention also provides a massive rule processing system based on the Internet of Things platform, which includes rule distribution management service, rule processing service and message dispatch service, and the rule distribution management service, rule processing service and message The dispatch service includes a memory and a processor, the memory stores a computer program, and the processors of the rule distribution management service, rule processing service, and message dispatch service implement the above method when executing the computer program.

第四方面,本发明实施例还提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序当被处理器执行时可实现上述方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

本发明实施例提供了一种基于物联网平台的海量规则处理方法、系统及存储介质。其中,所述方法包括:规则分发管理服务从数据库规则表中获取用户标识,并根据所述用户标识及预设规则哈希上限值计算各规则的规则哈希值,并将所述规则哈希值保存至所述数据库规则表;所述规则分发管理服务根据所述预设哈希分片规则以条带化方式生成各规则处理服务所需加载的规则哈希分区列表,并进行保存以得到规则配置信息;所述规则分发管理服务将所述规则配置信息发送至相应所述规则处理服务,并将全量规则配置信息发送至消息分派服务;所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载;所述消息分派服务若接收到上报信息,则根据所述全量规则配置信息及所述上报信息中的所述用户标识对所述上报信息进行分配。本发明实施例的技术方案,规则分发管理服务根据预设规则哈希上限值生成各规则处理服务所需加载的规则哈希分区列表,并进行保存得到规则配置信息,使得各规则处理服务只需加载一部分规则到内存,无需加载全量规则;在消息分派服务接收到上报信息时,根据全量规则配置信息及上报信息中的用户标识对上报信息进行分配,使得只有具有用户标识的规则处理服务在对上报信息进行处理,因此可提高海量规则的处理效率。The embodiment of the present invention provides a massive rule processing method, system and storage medium based on the Internet of Things platform. Wherein, the method includes: the rule distribution management service obtains the user identifier from the database rule table, and calculates the rule hash value of each rule according to the user identifier and the preset rule hash upper limit value, and hashes the rule The hash value is saved to the database rule table; the rule distribution management service generates a list of rule hash partitions that each rule processing service needs to load in a striped manner according to the preset hash sharding rules, and saves them to Obtain rule configuration information; the rule distribution management service sends the rule configuration information to the corresponding rule processing service, and sends the full amount of rule configuration information to the message dispatch service; the rule processing service sends the rule configuration information from Obtain and load the rules corresponding to the rule hash partition list in the database rule table; if the message dispatch service receives the reported information, configure the information according to the full amount of rules and the described information in the reported information The user ID allocates the reported information. According to the technical solution of the embodiment of the present invention, the rule distribution management service generates the rule hash partition list required to be loaded by each rule processing service according to the preset rule hash upper limit value, and saves and obtains the rule configuration information, so that each rule processing service only Part of the rules need to be loaded into the memory instead of the full amount of rules; when the message dispatch service receives the reported information, it distributes the reported information according to the full rule configuration information and the user ID in the reported information, so that only the rule processing service with the user ID is in the The reported information is processed, so the processing efficiency of massive rules can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present invention. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.

图1为本发明实施例提供的一种基于物联网平台的海量规则处理方法的时序图;FIG. 1 is a sequence diagram of a massive rule processing method based on an Internet of Things platform provided by an embodiment of the present invention;

图2为本发明实施例提供的一种基于物联网平台的海量规则处理方法的流程示意图;FIG. 2 is a schematic flow diagram of a massive rule processing method based on an Internet of Things platform provided by an embodiment of the present invention;

图3为本发明另一实施例提供的一种基于物联网平台的海量规则处理方法的流程示意图;FIG. 3 is a schematic flow diagram of a massive rule processing method based on an Internet of Things platform provided by another embodiment of the present invention;

图4为本发明实施例提供的一种基于物联网平台的海量规则处理系统的示意性框图;以及FIG. 4 is a schematic block diagram of a massive rule processing system based on an Internet of Things platform provided by an embodiment of the present invention; and

图5为本发明实施例提供的一种计算机设备的示意性框图。Fig. 5 is a schematic block diagram of a computer device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and/or components, but do not exclude one or Presence or addition of multiple other features, integers, steps, operations, elements, components and/or collections thereof.

还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.

还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .

如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.

请参阅图1,图1是本发明实施例提供的基于物联网平台的海量规则处理方法的时序图。该基于物联网平台的海量规则处理系统包括规则分发管理服务10、规则处理服务20以及消息分派服务30。其中,所述规则分发管理服务10与所述规则处理服务30进行通信,以将规则配置信息下发至所述规则处理服务20;所述规则分发管理服务10与所述消息分派服务30进行通信,以将全量规则配置信息发送至所述消息分派服务30;所述规则处理服务20与所述消息分派服务30,以接收所述消息分派服务30下发的上报信息。Please refer to FIG. 1 . FIG. 1 is a sequence diagram of a method for processing massive rules based on an Internet of Things platform provided by an embodiment of the present invention. The massive rule processing system based on the Internet of Things platform includes a rule distribution management service 10 , a rule processing service 20 and a message dispatch service 30 . Wherein, the rule distribution management service 10 communicates with the rule processing service 30 to issue rule configuration information to the rule processing service 20; the rule distribution management service 10 communicates with the message dispatch service 30 to send the full amount of rule configuration information to the message dispatch service 30; the rule processing service 20 and the message dispatch service 30 to receive the report information sent by the message dispatch service 30.

图2是本发明实施例提供的一种基于物联网平台的海量规则处理方法的流程示意图。本发明实施例的基于物联网平台的海量规则处理方法可应用于规则处理系统中,例如可通过配置于规则处理系统上的软件程序来实现该基于物联网平台的海量规则处理方法,以提高规则处理的效率。如图2所示,该方法包括以下步骤S110-S150。Fig. 2 is a schematic flowchart of a method for processing massive rules based on an Internet of Things platform provided by an embodiment of the present invention. The massive rule processing method based on the Internet of Things platform in the embodiment of the present invention can be applied in a rule processing system, for example, the massive rule processing method based on the Internet of Things platform can be realized by a software program configured on the rule processing system, so as to improve the rule processing method. processing efficiency. As shown in Fig. 2, the method includes the following steps S110-S150.

S110、规则分发管理服务从数据库规则表中获取用户标识,并根据所述用户标识及预设规则哈希上限值计算各规则的规则哈希值,并将所述规则哈希值保存至所述数据库规则表。S110. The rule distribution management service obtains the user identifier from the database rule table, calculates the rule hash value of each rule according to the user identifier and the preset rule hash upper limit value, and saves the rule hash value to the The database rule table described above.

本发明实施例中,在数据库服务中创建数据库规则表,主要包含流水号、用户标识、规则信息、更新时间、hashTag等字段,其中,hashTag用于保存规则对应的hashValue值,该hashValue值是基于用户标识进行计算得到的。具体地,规则分发管理服务从数据库规则表中获取用户标识,并根据所述用户标识及预设规则哈希上限值计算各规则的规则哈希值。更为具体地,获取用户标识,通过哈希算法对所述用户标识进行哈希计算得到第一哈希值;将取绝对值后的所述第一哈希值对预设规则哈希上限值进行取余计算得到第二哈希值,并将所述第二哈希值作为规则哈希值。为方便理解,假设规则处理服务实例的最大数为SNmax;所述预设规则哈希上限值为hashMax,为提高后续规则分布均衡率,设置预设规则哈希上限值不小于10倍的规则处理服务,即设置hashMax>=10*SNmax,所述用户标识为uId,各规则的规则哈希值为hashValue,hashValue=|hashCode(uId)|%hashMax,其中,hashValue取值空间为[0,hashMax),hashCode(uId)为所述第一哈希值,|hashCode(uId)|为取绝对值后的所述第一哈希值。计算出所述规则哈希值之后,将所述规则哈希值保存至所述数据库规则表中的hashTag字段。需要说明的是,在本实施例中,所述数据库规则表中的规则信息字段中存储着与hashValue值对应的规则,可理解地,在本实施例中,之所以需要计算hashValue值,是为了方便后续对hashValue值进行切分分区。In the embodiment of the present invention, the database rule table is created in the database service, mainly including fields such as serial number, user ID, rule information, update time, hashTag, etc., wherein, hashTag is used to save the hashValue value corresponding to the rule, and the hashValue value is based on User ID is calculated. Specifically, the rule distribution management service obtains the user identifier from the database rule table, and calculates the rule hash value of each rule according to the user identifier and the preset rule hash upper limit. More specifically, the user ID is obtained, and a hash calculation is performed on the user ID by a hash algorithm to obtain a first hash value; The remainder is calculated to obtain a second hash value, and the second hash value is used as a regular hash value. For the convenience of understanding, it is assumed that the maximum number of rule processing service instances is SNmax; the upper limit value of the preset rule hash value is hashMax. Rule processing service, that is, set hashMax>=10*SNmax, the user identifier is uId, the rule hash value of each rule is hashValue, hashValue=|hashCode(uId)|% hashMax, wherein, the value space of hashValue is [0 , hashMax), hashCode(uId) is the first hash value, |hashCode(uId)| is the first hash value after taking the absolute value. After the rule hash value is calculated, the rule hash value is stored in the hashTag field in the rule table of the database. It should be noted that, in this embodiment, the rules corresponding to the hashValue value are stored in the rule information field in the database rule table. Understandably, in this embodiment, the reason why the hashValue needs to be calculated is to It is convenient for subsequent segmentation and partitioning of the hashValue value.

S120、所述规则分发管理服务根据所述预设哈希分片规则以条带化方式生成各规则处理服务所需加载的规则哈希分区列表,并进行保存以得到规则配置信息。S120. The rule distribution management service generates a list of rule hash partitions to be loaded by each rule processing service in a striped manner according to the preset hash sharding rule, and saves the list to obtain rule configuration information.

本发明实施例中,所述规则分发管理服务对n个规则处理服务进行标识,并将所述预设规则哈希上限值的范围划分为M个规则哈希分区列表,其中,m≥n;将m个所述规则哈希分区列表以条带化方法配置到n个所述规则处理服务;针对每一个所述规则处理服务,将所述规则处理服务与所述规则哈希分区列表的对应关系进行保存以得到规则配置信息。为方便理解,现将生成所述规则哈希分区列表的步骤具体介绍如下:In the embodiment of the present invention, the rule distribution management service identifies n rule processing services, and divides the range of the preset rule hash upper limit value into M rule hash partition lists, where m≥n ; configure m rule hash partition lists to n rule processing services in a striping method; for each rule processing service, combine the rule processing service and the rule hash partition list Save the corresponding relationship to obtain the rule configuration information. For the convenience of understanding, the steps of generating the rule hash partition list are described in detail as follows:

(a)对规则处理服务进行标识,假设有n个规则处理服务,则各规则处理服务分别标识为S0、S1、S2......Sn,其中n<=SNmax,SNmax为规则处理服务实例的最大数;(a) Identify the rule processing service, assuming that there are n rule processing services, each rule processing service is respectively marked as S0, S1, S2...Sn, where n<=SNmax, SNmax is the rule processing service the maximum number of instances;

(b)将hashValue取值空间[0,hashMax)切分为M个hashRange,其中,M>=SNmax,hashMax为所述预设规则哈希上限值,hashRange为所述规则哈希分区列表,可理解地,(b) segment the hashValue value space [0, hashMax) into M hashRange, wherein, M>=SNmax, hashMax is the hash upper limit value of the preset rule, and hashRange is the hash partition list of the rule, Understandably,

hashRange[0]=[0,hashMax/M];hashRange[0]=[0,hashMax/M];

hashRange[1]=[hashMax/M+1,2*hashMax/M];以此类推,直至hashRange[M]。hashRange[1]=[hashMax/M+1, 2*hashMax/M]; and so on until hashRange[M].

(c)将M个hashRange以条带化方式,配置到n个规则处理服务,即hashRange[0]分配到S0,hashRange[1]分配到S1,hashRange[n]分配到Sn,hashRange[n+1]循环分配到S1,依此类推,直至hashRange[M]配置完成为止,每个规则处理服务都将至少分配到一个hashRange列表。(c) Configure M hashRange to n rule processing services in a striped manner, that is, hashRange[0] is allocated to S0, hashRange[1] is allocated to S1, hashRange[n] is allocated to Sn, hashRange[n+ 1] Circular allocation to S1, and so on, until the configuration of hashRange[M] is completed, each rule processing service will be allocated to at least one hashRange list.

(d)将各规则处理服务和其hashRange列表关系保存为规则配置信息。(d) Save the relationship between each rule processing service and its hashRange list as rule configuration information.

需要说明的是,在本实施例中,规则分发管理服务中设置有规则处理服务列表,通过规则处理服务列表对n个规则处理服务标识进行管理,且方便后续规则处理服务的扩容;通过对规则进行切分和分片处理得到M个hashRange,并将各个处理服务相应的hashRange进行分发,使得各规则处理服务只需加载一部分规则到内存,无需加载全量规则,避免了规则处理服务在处理海量规则时的内存容量限制。It should be noted that, in this embodiment, a rule processing service list is set in the rule distribution management service, and n rule processing service identifiers are managed through the rule processing service list, which facilitates the expansion of subsequent rule processing services; Segmentation and sharding are performed to obtain M hashRange, and the corresponding hashRange of each processing service is distributed, so that each rule processing service only needs to load a part of the rules into the memory, without loading all the rules, and avoids the rule processing service from processing massive rules. When the memory capacity limit.

S130、所述规则分发管理服务将所述规则配置信息发送至相应所述规则处理服务,并将全量规则配置信息发送至消息分派服务。S130. The rule distribution management service sends the rule configuration information to the corresponding rule processing service, and sends the full amount of rule configuration information to the message dispatch service.

本发明实施例中,所述规则分发管理服务计算得到各规则处理服务的规则配置信息之后,会将所述规则配置信息发送至相应所述规则处理服务,并将全量规则配置信息发送至消息分派服务。可理解地,所述全量规则配置信息为所述规则配置信息的总和。In the embodiment of the present invention, after the rule distribution management service calculates and obtains the rule configuration information of each rule processing service, it will send the rule configuration information to the corresponding rule processing service, and send the full amount of rule configuration information to the message dispatching Serve. Understandably, the full amount of rule configuration information is the sum of the rule configuration information.

S140、所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载。S140. The rule processing service obtains and loads the rules corresponding to the rule hash partition list from the database rule table according to the rule configuration information.

本发明实施例中,所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载。具体地,所述规则处理服务从所述规则配置信息中获取所述规则哈希分区列表;从所述数据库规则表的预设字段中获取与所述规则哈希分区列表相对应的规则进行加载,其中,所述预设字段为hashTag。可理解地,所述规则哈希分区列表中包含多个hashValue值,所述规则处理服务由多个hashValue值可获取多条规则进行加载。In the embodiment of the present invention, the rule processing service obtains and loads the rule corresponding to the rule hash partition list from the rule table of the database according to the rule configuration information. Specifically, the rule processing service obtains the rule hash partition list from the rule configuration information; obtains the rule corresponding to the rule hash partition list from a preset field of the rule table of the database and loads , wherein the preset field is hashTag. Understandably, the rule hash partition list includes multiple hashValue values, and the rule processing service can obtain multiple rules based on multiple hashValue values for loading.

S150、所述消息分派服务若接收到上报信息,则根据所述全量规则配置信息及所述上报信息中的所述用户标识对所述上报信息进行分配。S150. If the message dispatch service receives the reported information, distribute the reported information according to the full rule configuration information and the user identifier in the reported information.

本发明实施例中,所述消息分派服务若接收到物联网终端发送的上报信息,则从所述上报信息获取所述用户标识,并通过哈希算法对所述用户标识进行哈希计算得到所述规则哈希值;将所述规则哈希值与所述全量规则配置信息中的规则哈希分区列表进行逐一比对,以确定所述规则哈希值所在的所述规则哈希分区列表;将所述上报信息分配至与所述规则哈希分区列表相对应的所述规则处理服务。具体地,所述消息分派服务对所述上报信息的分配如下:In the embodiment of the present invention, if the message dispatch service receives the reported information sent by the Internet of Things terminal, it will obtain the user ID from the reported information, and perform hash calculation on the user ID through a hash algorithm to obtain the The rule hash value; comparing the rule hash value with the rule hash partition list in the full rule configuration information one by one to determine the rule hash partition list where the rule hash value is located; Distributing the reported information to the rule processing service corresponding to the rule hash partition list. Specifically, the distribution of the reported information by the message dispatch service is as follows:

(a)从上报消息中获取用户标识uId;(a) Obtain the user identifier uId from the reported message;

(b)hashValue=|hashCode(uId)|%hashMax;(b) hashValue=|hashCode(uId)|%hashMax;

(c)通过规则服务中的规则配置信息,逐个比对各规则处理服务的hashRange列表,查询到hashRange范围包含该hashValue的规则处理服务Sa;(c) Through the rule configuration information in the rule service, compare the hashRange list of each rule processing service one by one, and query the rule processing service Sa whose hashRange range includes the hashValue;

(d)消息分派服务将消息发送到规则处理服务Sa进行处理。(d) The message dispatch service sends the message to the rule processing service Sa for processing.

图3为本发明另一实施例提供的基于物联网平台的海量规则处理方法的流程示意图,如图3所示,在本实施例中,所述方法包括步骤S110-S190。也即,在本实施例中,所述方法在上述实施例的步骤S150之后,还包括步骤S160-S190。FIG. 3 is a schematic flowchart of a method for processing massive rules based on an Internet of Things platform provided by another embodiment of the present invention. As shown in FIG. 3 , in this embodiment, the method includes steps S110-S190. That is, in this embodiment, the method further includes steps S160-S190 after step S150 in the above embodiment.

S160、所述规则分发管理服务对所述规则处理服务进行扩容得到变更规则配置信息列表;S160. The rule distribution management service expands the rule processing service to obtain a change rule configuration information list;

S170、所述规则分发管理服务将所述变更规则配置信息列表中的变更规则配置信息发送至相应的所述规则处理服务,并将变更全量规则配置信息发送至所述消息分派服务;S170. The rule distribution management service sends the change rule configuration information in the change rule configuration information list to the corresponding rule processing service, and sends the full change rule configuration information to the message dispatch service;

S180、所述规则处理服务根据所述变更规则配置信息从所述数据库规则表中获取与所述规则哈希值相对应的规则进行加载;S180. The rule processing service obtains a rule corresponding to the rule hash value from the database rule table according to the change rule configuration information, and loads it;

S190、所述消息分派服务根据所述变更全量规则配置信息中的内容对所述全量规则配置信息进行更新。S190. The message dispatch service updates the full rule configuration information according to the content in the modified full rule configuration information.

本发明实施例中,若新增一规则处理服务,所述规则分发管理服务对所述规则处理服务进行扩容得到变更规则配置信息列表,具体地,所述规则分发管理服务对新增的所述规则处理服务进行标识,并计算新增后的所述规则处理服务所能承载的平均规则哈希分区列表个数;根据各所述规则处理服务中的规则哈希分区列表数量对所述规则处理服务从大到小进行排序得到规则处理服务排序列表;所述规则分发管理服务根据所述平均规则哈希分区列表个数将满足预设条件的所述规则处理服务排序列表上的规则哈希分区列表迁移至新增的所述规则处理服务上,直至新增的所述规则处理服务上的规则哈希分区列表不小于所述平均规则哈希分区列表个数为止,其中,预设条件为所述规则处理服务上的规则哈希分区列表的个数大于所述平均规则哈希分区列表个数;所述规则分发管理服务对迁移过所述规则哈希分区列表的所述规则处理服务所对的规则配置信息进行保存得到变更规则配置信息列表。所述规则分发管理服务将所述变更规则配置信息列表中的变更规则配置信息发送至相应的所述规则处理服务,并将变更全量规则配置信息发送至所述消息分派服务;所述规则处理服务根据所述变更规则配置信息从所述数据库规则表中获取与所述规则哈希值相对应的规则进行加载;所述消息分派服务根据所述变更全量规则配置信息中的内容对所述全量规则配置信息进行更新。为方便理解,现以新增一个规则处理服务为例,对扩容方法的步骤具体介绍如下:In the embodiment of the present invention, if a new rule processing service is added, the rule distribution management service expands the rule processing service to obtain a list of changed rule configuration information. Specifically, the rule distribution management service adds the newly added The rule processing service identifies, and calculates the average number of rule hash partition lists that the newly added rule processing service can carry; and processes the rule according to the number of rule hash partition lists in each of the rule processing services. The services are sorted from large to small to obtain a rule processing service sorting list; the rule distribution management service divides the rules on the rule processing service sorting list that meet the preset conditions according to the average number of rule hash partition lists The list is migrated to the newly added rule processing service until the rule hash partition list on the newly added rule processing service is not less than the number of the average rule hash partition lists, wherein the preset condition is The number of rule hash partition lists on the rule processing service is greater than the number of the average rule hash partition lists; Save the rule configuration information to get the change rule configuration information list. The rule distribution management service sends the change rule configuration information in the change rule configuration information list to the corresponding rule processing service, and sends the full change rule configuration information to the message dispatch service; the rule processing service Obtain and load the rule corresponding to the rule hash value from the database rule table according to the changed rule configuration information; the message dispatch service performs the full rule according to the content in the changed full rule configuration information The configuration information is updated. For the convenience of understanding, now take adding a rule processing service as an example, and introduce the steps of the expansion method in detail as follows:

(a)将新增的规则处理服务标识为Sx,x为当前规则处理服务总数在加1;(a) The newly added rule processing service is identified as Sx, where x is the total number of current rule processing services plus 1;

(b)在规则分发管理服务的规则处理服务列表中添加新加入的规则处理服务Sx;(b) Add the newly added rule processing service Sx in the rule processing service list of the rule distribution management service;

(c)计算新增后的规则处理服务S1、S2、......、Sx承载的平均规则哈希分区列表个数avgHashRange,其中,avgHashRange=M/总的规则处理服务数,M为hash Range的个数;(c) Calculate the number of average rule hash partition lists avgHashRange carried by the newly added rule processing services S1, S2, ..., Sx, wherein, avgHashRange=M/total number of rule processing services, M is The number of hash Range;

(d)按照各规则处理服务承载的hashRange数对规则处理服务从大到小排序,得到规则处理服务排序列表listS;(d) sort the rule processing services from large to small according to the hashRange number carried by each rule processing service, and obtain the rule processing service sorting list listS;

(e)从规则处理服务排序列表listS中的第一个规则处理服务开始,循环将其上的hashRange逐个往Sx迁移,直至满足条件fx:Sx上的hashRange数>=avgHashRa nge或者该规则处理服务上的hashRange数<=avgHashRange;(e) Starting from the first rule processing service in the rule processing service sorting list listS, the hashRange on it is migrated to Sx one by one in a loop until the condition fx is satisfied: the number of hashRange on Sx >= avgHashRange or the rule processing service The number of hashRange on <= avgHashRange;

(f)若条件fx无法满足,则继续从规则处理服务排序列表listS中选择下一个规则处理服务,进行e)中的处理步骤,直至fx满足或listS中无规则处理服务为止;(f) If the condition fx cannot be satisfied, continue to select the next rule processing service from the rule processing service ranking list listS, and perform the processing steps in e), until fx is satisfied or there is no rule processing service in listS;

(g)将hashRange数发生过变化的规则处理服务标识到列表listSc,并变化后的规则处理配置信息;(g) mark the rule processing service whose hashRange number has changed to the list listSc, and change the rule processing configuration information;

(h)将listSc中各规则处理服务的规则处理配置信息逐个下发到相应规则处理服务,将listSc中的所有规则处理配置信息下发到消息分派服务;(h) sending the rule processing configuration information of each rule processing service in the listSc to the corresponding rule processing service one by one, and sending all the rule processing configuration information in the listSc to the message dispatching service;

(i)收到规则配置信息的规则处理服务按照接收到的规则配置信息对规则进行加载更新,消息分派服务根据listSc中的规则内容对全量规则配置信息进行更新。(i) The rule processing service that receives the rule configuration information loads and updates the rules according to the received rule configuration information, and the message dispatch service updates the full rule configuration information according to the rule content in listSc.

需要说明的是,在本实施例中,通过上述扩容方法可对规则处理服务进行扩容,进而进一步提高规则处理的效率。还需要说明的是,在本实施例中的数据库服务、规则分发管理服务、消息分派服务以及各个规则处理服务均部署至不同的虚拟机上。It should be noted that, in this embodiment, the rule processing service can be expanded through the above expansion method, thereby further improving the efficiency of rule processing. It should also be noted that in this embodiment, the database service, rule distribution management service, message dispatch service, and each rule processing service are all deployed on different virtual machines.

图4是本发明实施例提供的一种基于物联网平台的海量规则处理系统200的示意性框图。如图4所示,对应于以上应用于所述规则分发管理服务10、规则处理服务20以及消息分派服务30的基于物联网平台的海量规则处理方法,该基于物联网平台的海量规则处理系统200包括用于执行上述基于物联网平台的海量规则处理方法的单元。具体地,请参阅图4,该基于物联网平台的海量规则处理系统200包括配置于规则分发管理服务10中的获取计算单元101、生成保存单元102以及第一发送单元103,配置于规则处理服务20中的第一获取加载单元201以及配置于消息分派服务30中的分配单元301。FIG. 4 is a schematic block diagram of a massive rule processing system 200 based on an Internet of Things platform provided by an embodiment of the present invention. As shown in FIG. 4, corresponding to the massive rule processing method based on the Internet of Things platform applied to the rule distribution management service 10, rule processing service 20, and message dispatch service 30 above, the massive rule processing system 200 based on the Internet of Things platform It includes a unit for executing the above-mentioned massive rule processing method based on the Internet of Things platform. Specifically, please refer to FIG. 4 , the massive rule processing system 200 based on the Internet of Things platform includes an acquisition and calculation unit 101 configured in the rule distribution management service 10, a generation and storage unit 102, and a first sending unit 103, which are configured in the rule processing service The first acquisition and loading unit 201 in 20 and the distribution unit 301 configured in the message distribution service 30 .

其中,所述获取计算单元101用于规则分发管理服务从数据库规则表中获取用户标识,并根据所述用户标识及预设规则哈希上限值计算各规则的规则哈希值,并将所述规则哈希值保存至所述数据库规则表;所述生成保存单元102用于所述规则分发管理服务根据所述预设哈希分片规则以条带化方式生成各规则处理服务所需加载的规则哈希分区列表,并进行保存以得到规则配置信息;所述第一发送单元103用于所述规则分发管理服务将所述规则配置信息发送至相应所述规则处理服务,并将全量规则配置信息发送至消息分派服务;所述第一获取加载单元201用于所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载;所述分配单元301用于所述消息分派服务若接收到上报信息,则根据所述全量规则配置信息及所述上报信息中的所述用户标识对所述上报信息进行分配。Wherein, the acquisition calculation unit 101 is used for the rule distribution management service to acquire the user identifier from the database rule table, and calculate the rule hash value of each rule according to the user identifier and the preset rule hash upper limit value, and convert the The rule hash value is stored in the database rule table; the generation and storage unit 102 is used for the rule distribution management service to generate the load required for each rule processing service in a striped manner according to the preset hash sharding rule The rule hash partition list, and save it to obtain the rule configuration information; the first sending unit 103 is used for the rule distribution management service to send the rule configuration information to the corresponding rule processing service, and send all rules The configuration information is sent to the message dispatching service; the first obtaining and loading unit 201 is used for the rule processing service to obtain the rules corresponding to the rule hash partition list from the database rule table according to the rule configuration information to perform Loading; the allocating unit 301 is used for the message dispatch service to allocate the reported information according to the full rule configuration information and the user identifier in the reported information if the message dispatch service receives the reported information.

在某些实施例,例如本实施例中,所述获取计算单元101包括第一计算单元及第二计算单元。In some embodiments, such as this embodiment, the acquisition calculation unit 101 includes a first calculation unit and a second calculation unit.

其中,所述第一计算单元用于获取用户标识,通过哈希算法对所述用户标识进行哈希计算得到第一哈希值;所述第二计算单元用于将取绝对值后的所述第一哈希值对预设规则哈希上限值进行取余计算得到第二哈希值,并将所述第二哈希值作为规则哈希值。Wherein, the first computing unit is used to obtain the user ID, and performs hash calculation on the user ID through a hash algorithm to obtain a first hash value; the second computing unit is used to obtain the absolute value of the The second hash value is obtained by calculating the modulus of the preset regular hash upper limit value from the first hash value, and the second hash value is used as the regular hash value.

在某些实施例,例如本实施例中,所述生成保存单元102包括标识单元、配置单元以及第一保存单元。In some embodiments, such as this embodiment, the generation and storage unit 102 includes an identification unit, a configuration unit, and a first storage unit.

其中,所述标识单元用于所述规则分发管理服务对n个规则处理服务进行标识,并将所述预设规则哈希上限值的范围划分为M个规则哈希分区列表,其中,m≥n;所述配置单元用于将m个所述规则哈希分区列表以条带化方法配置到n个所述规则处理服务;所述第一保存单元用于针对每一个所述规则处理服务,将所述规则处理服务与所述规则哈希分区列表的对应关系进行保存以得到规则配置信息。Wherein, the identification unit is used for the rule distribution management service to identify n rule processing services, and divides the range of the preset rule hash upper limit value into M rule hash partition lists, where m ≥n; the configuration unit is used to configure m rule hash partition lists to n rule processing services in a striping method; the first storage unit is used for each rule processing service , saving the correspondence between the rule processing service and the rule hash partition list to obtain rule configuration information.

在某些实施例,例如本实施例中,所述第一获取加载单元201包括获取单元及加载单元。In some embodiments, such as this embodiment, the first acquiring and loading unit 201 includes an acquiring unit and a loading unit.

其中,所述获取单元用于所述规则处理服务从所述规则配置信息中获取所述规则哈希分区列表;所述加载单元用于从所述数据库规则表的预设字段中获取与所述规则哈希分区列表相对应的规则进行加载。Wherein, the obtaining unit is used for the rule processing service to obtain the rule hash partition list from the rule configuration information; The rules corresponding to the rule hash partition list are loaded.

在某些实施例,例如本实施例中,所述分配单元301包括第三计算单元、比对单元以及分配子单元。In some embodiments, such as this embodiment, the allocating unit 301 includes a third computing unit, a comparing unit, and an allocating subunit.

其中,所述第三计算单元用于从所述上报信息获取所述用户标识,并通过哈希算法对所述用户标识进行哈希计算得到所述规则哈希值;所述比对单元用于将所述规则哈希值与所述全量规则配置信息中的规则哈希分区列表进行逐一比对,以确定所述规则哈希值所在的所述规则哈希分区列表;所述分配子单元用于将所述上报信息分配至与所述规则哈希分区列表相对应的所述规则处理服务。Wherein, the third calculation unit is used to obtain the user ID from the reported information, and perform hash calculation on the user ID through a hash algorithm to obtain the regular hash value; the comparison unit is used to comparing the rule hash value with the rule hash partition list in the full rule configuration information one by one to determine the rule hash partition list where the rule hash value is; Distributing the reported information to the rule processing service corresponding to the rule hash partition list.

本发明另一实施例的基于物联网平台的海量规则处理系统200是在上述实施例的基础上增加了配置于所述规则分发管理服务10的扩容单元104及第二发送单元105、配置于所述规则处理服务20的第二获取加载单元202以及配置于消息分派服务中的更新单元302。The massive rule processing system 200 based on the Internet of Things platform in another embodiment of the present invention is based on the above embodiment, adding the expansion unit 104 and the second sending unit 105 configured in the rule distribution management service 10, and configured in the rule distribution management service 10. The second acquiring and loading unit 202 of the rule processing service 20 and the updating unit 302 configured in the message dispatch service.

其中,所述扩容单元104用于所述规则分发管理服务对所述规则处理服务进行扩容得到变更规则配置信息列表;所述第二发送单元105用于所述规则分发管理服务将所述变更规则配置信息列表中的变更规则配置信息发送至相应的所述规则处理服务,并将变更全量规则配置信息发送至所述消息分派服务;所述第二获取加载单元202用于所述规则处理服务根据所述变更规则配置信息从所述数据库规则表中获取与所述规则哈希值相对应的规则进行加载;所述更新单元302用于所述消息分派服务根据所述变更全量规则配置信息中的内容对所述全量规则配置信息进行更新。Wherein, the expansion unit 104 is used for the rule distribution management service to expand the rule processing service to obtain a change rule configuration information list; the second sending unit 105 is used for the rule distribution management service to convert the change rule The change rule configuration information in the configuration information list is sent to the corresponding rule processing service, and the full change rule configuration information is sent to the message dispatch service; the second acquisition and loading unit 202 is used for the rule processing service according to The change rule configuration information is loaded from the rule table of the database corresponding to the rule corresponding to the rule hash value; the update unit 302 is used for the message dispatch service according to The content updates the full rule configuration information.

在某些实施例,例如本实施例中,所述扩容单元104包括标识计算单元、排序单元、迁移单元以及第二保存单元。In some embodiments, such as this embodiment, the expansion unit 104 includes an identification calculation unit, a sorting unit, a migration unit, and a second storage unit.

其中,所述标识计算单元用于所述规则分发管理服务对新增的所述规则处理服务进行标识,并计算新增后的所述规则处理服务所能承载的平均规则哈希分区列表个数;所述排序单元用于根据各所述规则处理服务中的规则哈希分区列表数量对所述规则处理服务从大到小进行排序得到规则处理服务排序列表;所述迁移单元用于所述规则分发管理服务根据所述平均规则哈希分区列表个数将满足预设条件的所述规则处理服务排序列表上的规则哈希分区列表迁移至新增的所述规则处理服务上,直至新增的所述规则处理服务上的规则哈希分区列表不小于所述平均规则哈希分区列表个数为止;所述第二保存单元用于所述规则分发管理服务对迁移过所述规则哈希分区列表的所述规则处理服务所对的规则配置信息进行保存得到变更规则配置信息列表。Wherein, the identification calculation unit is used for the rule distribution management service to identify the newly added rule processing service, and calculate the average number of rule hash partition lists that the newly added rule processing service can carry The sorting unit is used to sort the rule processing services from large to small according to the number of rule hash partition lists in each of the rule processing services to obtain a rule processing service sorting list; the migration unit is used for the rule The distribution management service migrates the rule hash partition list on the sorted list of the rule processing service that meets the preset condition to the newly added rule processing service according to the number of the average rule hash partition list, until the newly added The rule hash partition list on the rule processing service is not less than the number of the average rule hash partition list; the second storage unit is used for the rule distribution management service to migrate the rule hash partition list The rule processing service saves the rule configuration information to obtain a change rule configuration information list.

需要说明的是,所属领域的技术人员可以清楚地了解到,上述基于物联网平台的海量规则处理系统200和各单元的具体实现过程,可以参考前述方法实施例中的相应描述,为了描述的方便和简洁,在此不再赘述。It should be noted that those skilled in the art can clearly understand that the above-mentioned massive rule processing system 200 based on the Internet of Things platform and the specific implementation process of each unit can refer to the corresponding descriptions in the foregoing method embodiments. For the convenience of description and brevity, will not be repeated here.

上述基于物联网平台的海量规则处理系统可以实现为一种计算机程序的形式,该计算机程序可以在如图5所示的计算机设备上运行。The above-mentioned massive rule processing system based on the Internet of Things platform can be realized in the form of a computer program, and the computer program can run on the computer device as shown in FIG. 5 .

请参阅图5,图5是本申请实施例提供的一种计算机设备的示意性框图。该计算机设备900为搭建有规则分发管理服务、规则处理服务以及消息分派服务的设备。Please refer to FIG. 5 . FIG. 5 is a schematic block diagram of a computer device provided by an embodiment of the present application. The computer device 900 is a device built with rule distribution management service, rule processing service and message dispatch service.

参阅图5,该计算机设备900包括通过系统总线901连接的处理器902、存储器和接口907,其中,存储器可以包括存储介质903和内存储器904。Referring to FIG. 5 , the computer device 900 includes a processor 902 connected through a system bus 901 , a memory and an interface 907 , where the memory may include a storage medium 903 and an internal memory 904 .

该存储介质903可存储操作系统9031和计算机程序9032。该计算机程序9032被执行时,可使得处理器902执行一种基于物联网平台的海量规则处理方法。The storage medium 903 can store an operating system 9031 and a computer program 9032 . When the computer program 9032 is executed, the processor 902 can execute a massive rule processing method based on the Internet of Things platform.

该处理器902用于提供计算和控制能力,以支撑整个计算机设备900的运行。The processor 902 is used to provide computing and control capabilities to support the operation of the entire computer device 900 .

该内存储器904为存储介质903中的计算机程序9032的运行提供环境,该计算机程序9032被处理器902执行时,可使得处理器902执行一种基于物联网平台的海量规则处理方法。The internal memory 904 provides an environment for running the computer program 9032 in the storage medium 903. When the computer program 9032 is executed by the processor 902, the processor 902 can execute a massive rule processing method based on the Internet of Things platform.

该接口905用于与其它设备进行通信。本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备900的限定,具体的计算机设备900可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The interface 905 is used to communicate with other devices. Those skilled in the art can understand that the structure shown in FIG. 5 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the computer device 900 on which the solution of this application is applied. The specific computer device 900 may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.

其中,所述规则分发管理服务、规则处理服务以及消息分派服务各自的所述处理器902用于运行存储在存储器中的计算机程序9032,以实现上述方法的实施例的流程步骤。Wherein, the respective processors 902 of the rule distribution management service, rule processing service and message dispatch service are configured to run a computer program 9032 stored in a memory, so as to realize the process steps of the embodiments of the above method.

应当理解,在本申请实施例中,处理器902可以是中央处理单元(CentralProcessing Unit,CPU),该处理器902还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(终端lication Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor 902 may be a central processing unit (Central Processing Unit, CPU), and the processor 902 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated integrated Circuit (terminal lication Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Wherein, the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

本领域普通技术人员可以理解的是实现上述实施例的方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成。该计算机程序可存储于一存储介质中,该存储介质为计算机可读存储介质。该计算机程序被该无线通信系统中的至少一个处理器执行,以实现上述方法的实施例的流程步骤。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer programs. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the wireless communication system, so as to implement the process steps of the above method embodiments.

因此,本发明还提供一种存储介质。该存储介质可以为计算机可读存储介质。该存储介质存储有计算机程序。该计算机程序被处理器执行时使处理器执行上述基于物联网平台的海量规则处理方法的任意实施例。Therefore, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. When the computer program is executed by the processor, the processor executes any embodiment of the above-mentioned massive rule processing method based on the Internet of Things platform.

所述存储介质可以是U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的计算机可读存储介质。The storage medium may be various computer-readable storage media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk, or an optical disk.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、无线通信软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, wireless communication software, or a combination of the two. In order to clearly illustrate the hardware and software In the above description, the components and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的。例如,各个单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiments described above are illustrative only. For example, the division of each unit is only a logical function division, and there may be another division method in actual implementation. For example, several units or components may be combined or integrated into another system, or some features may be omitted, or not implemented.

本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。本发明实施例系统中的单元可以根据实际需要进行合并、划分和删减。另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。The steps in the methods of the embodiments of the present invention can be adjusted, combined and deleted according to actual needs. The units in the system of the embodiment of the present invention can be merged, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该无线通信软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人无线通信,终端,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the wireless communication software product is stored in a storage In the medium, several instructions are included to make a computer device (which may be a personal wireless communication device, a terminal, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,尚且本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, even if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention is also intended to include these modifications and variations.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the technical scope disclosed in the present invention. Modifications or replacements shall all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1.一种基于物联网平台的海量规则处理方法,其特征在于,包括:1. A massive rule processing method based on the Internet of Things platform, characterized in that, comprising: 规则分发管理服务从数据库规则表中获取用户标识,并根据所述用户标识及预设规则哈希上限值计算各规则的规则哈希值,并将所述规则哈希值保存至所述数据库规则表;The rule distribution management service obtains the user ID from the database rule table, calculates the rule hash value of each rule according to the user ID and the preset rule hash upper limit value, and saves the rule hash value to the database rule table; 所述规则分发管理服务根据所述预设哈希分片规则以条带化方式生成各规则处理服务所需加载的规则哈希分区列表,并进行保存以得到规则配置信息;The rule distribution management service generates a list of rule hash partitions to be loaded by each rule processing service in a striped manner according to the preset hash sharding rules, and saves them to obtain rule configuration information; 所述规则分发管理服务将所述规则配置信息发送至相应所述规则处理服务,并将全量规则配置信息发送至消息分派服务;The rule distribution management service sends the rule configuration information to the corresponding rule processing service, and sends the full amount of rule configuration information to the message dispatch service; 所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载;The rule processing service obtains and loads rules corresponding to the rule hash partition list from the rule table of the database according to the rule configuration information; 所述消息分派服务若接收到上报信息,则根据所述全量规则配置信息及所述上报信息中的所述用户标识对所述上报信息进行分配。If the message dispatch service receives the reported information, it distributes the reported information according to the full rule configuration information and the user identifier in the reported information. 2.根据权利要求1所述的基于物联网平台的海量规则处理方法,其特征在于,所述根据所述用户标识及预设规则哈希上限值计算规则哈希值的步骤,包括:2. The massive rule processing method based on the Internet of Things platform according to claim 1, wherein the step of calculating the rule hash value according to the user identification and the preset rule hash upper limit value includes: 获取用户标识,通过哈希算法对所述用户标识进行哈希计算得到第一哈希值;Obtain a user ID, and perform hash calculation on the user ID by a hash algorithm to obtain a first hash value; 将取绝对值后的所述第一哈希值对预设规则哈希上限值进行取余计算得到第二哈希值,并将所述第二哈希值作为规则哈希值。The second hash value is obtained by taking the remainder of the first hash value after taking the absolute value and the preset regular hash upper limit value, and using the second hash value as the regular hash value. 3.根据权利要求1所述的基于物联网平台的海量规则处理方法,其特征在于,所述规则分发管理服务根据所述预设哈希分片规则以条带化方式生成各规则处理服务所需加载的规则哈希分区列表,并进行保存以得到规则配置信息的步骤,包括:3. The massive rule processing method based on the Internet of Things platform according to claim 1, wherein the rule distribution management service generates each rule processing service station in a striped manner according to the preset hash fragmentation rules. The steps to load the hash partition list of rules and save them to obtain the rule configuration information include: 所述规则分发管理服务对n个规则处理服务进行标识,并将所述预设规则哈希上限值的范围划分为M个规则哈希分区列表,其中,m≥n;The rule distribution management service identifies n rule processing services, and divides the range of the preset rule hash upper limit into M rule hash partition lists, where m≥n; 将m个所述规则哈希分区列表以条带化方法配置到n个所述规则处理服务;configuring the m rule hash partition lists to the n rule processing services in a striping method; 针对每一个所述规则处理服务,将所述规则处理服务与所述规则哈希分区列表的对应关系进行保存以得到规则配置信息。For each rule processing service, the corresponding relationship between the rule processing service and the rule hash partition list is stored to obtain rule configuration information. 4.根据权利要求1所述的基于物联网平台的海量规则处理方法,其特征在于,所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载的步骤,包括:4. The massive rule processing method based on the Internet of Things platform according to claim 1, wherein the rule processing service obtains the hash partition list of the rule from the database rule table according to the rule configuration information The steps for loading the corresponding rules include: 所述规则处理服务从所述规则配置信息中获取所述规则哈希分区列表;The rule processing service obtains the rule hash partition list from the rule configuration information; 从所述数据库规则表的预设字段中获取与所述规则哈希分区列表相对应的规则进行加载。Obtain and load the rule corresponding to the rule hash partition list from the preset field of the database rule table. 5.根据权利要求1所述的基于物联网平台的海量规则处理方法,其特征在于,根据所述全量规则配置信息及所述上报信息中的所述用户标识对所述上报信息进行分配的步骤,包括:5. The massive rule processing method based on the Internet of Things platform according to claim 1, characterized in that, the step of distributing the reported information according to the full amount of rule configuration information and the user identification in the reported information ,include: 从所述上报信息获取所述用户标识,并通过哈希算法对所述用户标识进行哈希计算得到所述规则哈希值;Obtain the user ID from the reported information, and perform hash calculation on the user ID by a hash algorithm to obtain the regular hash value; 将所述规则哈希值与所述全量规则配置信息中的规则哈希分区列表进行逐一比对,以确定所述规则哈希值所在的所述规则哈希分区列表;comparing the rule hash value one by one with the rule hash partition list in the full rule configuration information to determine the rule hash partition list where the rule hash value is located; 将所述上报信息分配至与所述规则哈希分区列表相对应的所述规则处理服务。Distributing the reported information to the rule processing service corresponding to the rule hash partition list. 6.根据权利要求1所述的基于物联网平台的海量规则处理方法,其特征在于,所述方法还包括:6. the massive rule processing method based on the Internet of Things platform according to claim 1, is characterized in that, described method also comprises: 所述规则分发管理服务对所述规则处理服务进行扩容得到变更规则配置信息列表;The rule distribution management service expands the rule processing service to obtain a change rule configuration information list; 所述规则分发管理服务将所述变更规则配置信息列表中的变更规则配置信息发送至相应的所述规则处理服务,并将变更全量规则配置信息发送至所述消息分派服务;The rule distribution management service sends the change rule configuration information in the change rule configuration information list to the corresponding rule processing service, and sends the full change rule configuration information to the message dispatch service; 所述规则处理服务根据所述变更规则配置信息从所述数据库规则表中获取与所述规则哈希值相对应的规则进行加载;The rule processing service obtains and loads the rule corresponding to the rule hash value from the rule table of the database according to the change rule configuration information; 所述消息分派服务根据所述变更全量规则配置信息中的内容对所述全量规则配置信息进行更新。The message dispatch service updates the full rule configuration information according to the content in the changed full rule configuration information. 7.根据权利要求6所述的基于物联网平台的海量规则处理方法,其特征在于,所述规则分发管理服务对所述规则处理服务进行扩容得到变更规则配置信息列表的步骤,包括:7. The massive rule processing method based on the Internet of Things platform according to claim 6, wherein the rule distribution management service expands the rule processing service to obtain the step of changing the rule configuration information list, comprising: 所述规则分发管理服务对新增的所述规则处理服务进行标识,并计算新增后的所述规则处理服务所能承载的平均规则哈希分区列表个数;The rule distribution management service identifies the newly added rule processing service, and calculates the average number of rule hash partition lists that the newly added rule processing service can carry; 根据各所述规则处理服务中的规则哈希分区列表数量对所述规则处理服务从大到小进行排序得到规则处理服务排序列表;Sorting the rule processing services from large to small according to the number of rule hash partition lists in each of the rule processing services to obtain a rule processing service sorting list; 所述规则分发管理服务根据所述平均规则哈希分区列表个数将满足预设条件的所述规则处理服务排序列表上的规则哈希分区列表迁移至新增的所述规则处理服务上,直至新增的所述规则处理服务上的规则哈希分区列表不小于所述平均规则哈希分区列表个数为止;The rule distribution management service migrates the rule hash partition list on the sorted list of the rule processing service that meets the preset condition to the newly added rule processing service according to the average number of rule hash partition lists, until The newly added rule hash partition list on the rule processing service is not less than the number of the average rule hash partition list; 所述规则分发管理服务对迁移过所述规则哈希分区列表的所述规则处理服务所对的规则配置信息进行保存得到变更规则配置信息列表。The rule distribution management service saves the rule configuration information of the rule processing service that has been migrated from the rule hash partition list to obtain a changed rule configuration information list. 8.一种基于物联网平台的海量规则处理系统,其特征在于,包括:配置于规则分发管理服务中的获取计算单元、生成保存单元以及第一发送单元,配置于规则处理服务中的第一获取加载单元以及配置于消息分派服务中的分配单元,其中,8. A massive rule processing system based on the Internet of Things platform, characterized in that it includes: an acquisition calculation unit configured in the rule distribution management service, a generation storage unit and a first sending unit, and a first sending unit configured in the rule processing service Obtain the loading unit and the allocation unit configured in the message dispatch service, wherein, 所述获取计算单元用于规则分发管理服务从数据库规则表中获取用户标识,并根据所述用户标识及预设规则哈希上限值计算各规则的规则哈希值,并将所述规则哈希值保存至所述数据库规则表;The obtaining calculation unit is used for the rule distribution management service to obtain the user identifier from the database rule table, and calculate the rule hash value of each rule according to the user identifier and the preset rule hash upper limit value, and hash the rule Save the hash value to the database rule table; 所述生成保存单元用于所述规则分发管理服务根据所述预设哈希分片规则以条带化方式生成各规则处理服务所需加载的规则哈希分区列表,并进行保存以得到规则配置信息;The generation and storage unit is used for the rule distribution management service to generate a list of rule hash partitions that need to be loaded by each rule processing service in a striped manner according to the preset hash sharding rules, and store them to obtain the rule configuration information; 所述第一发送单元用于所述规则分发管理服务将所述规则配置信息发送至相应所述规则处理服务,并将全量规则配置信息发送至消息分派服务;The first sending unit is used for the rule distribution management service to send the rule configuration information to the corresponding rule processing service, and send the full amount of rule configuration information to the message dispatch service; 所述第一获取加载单元用于所述规则处理服务根据所述规则配置信息从所述数据库规则表中获取与所述规则哈希分区列表相对应的规则进行加载;The first obtaining and loading unit is used for the rule processing service to obtain and load rules corresponding to the rule hash partition list from the database rule table according to the rule configuration information; 所述分配单元用于所述消息分派服务若接收到上报信息,则根据所述全量规则配置信息及所述上报信息中的所述用户标识对所述上报信息进行分配。The allocating unit is configured to allocate the reported information according to the full rule configuration information and the user identifier in the reported information if the message dispatch service receives the reported information. 9.一种基于物联网平台的海量规则处理系统,其特征在于,包括规则分发管理服务、规则处理服务以及消息分派服务,所述规则分发管理服务、规则处理服务以及消息分派服务均包括存储器及处理器,所述存储器上存储有计算机程序,所述规则分发管理服务、规则处理服务以及消息分派服务的所述处理器执行所述计算机程序时实现如权利要求1-7中任一项所述的方法。9. A massive rule processing system based on the Internet of Things platform, characterized in that it includes rule distribution management services, rule processing services, and message dispatch services, and the rule distribution management services, rule processing services, and message dispatch services all include memory and A processor, a computer program is stored on the memory, and when the processor of the rule distribution management service, rule processing service, and message dispatch service executes the computer program, it realizes any one of claims 1-7 Methods. 10.一种计算机可读存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序当被处理器执行时可实现如权利要求1-7中任一项所述的方法。10. A computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1-7 can be implemented.
CN202211644686.9A 2022-12-20 2022-12-20 Massive rule processing method, system and storage medium based on Internet of Things platform Pending CN116303418A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211644686.9A CN116303418A (en) 2022-12-20 2022-12-20 Massive rule processing method, system and storage medium based on Internet of Things platform
PCT/CN2024/070262 WO2024131990A1 (en) 2022-12-20 2024-01-03 Internet of things platform-based mass rule processing method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211644686.9A CN116303418A (en) 2022-12-20 2022-12-20 Massive rule processing method, system and storage medium based on Internet of Things platform

Publications (1)

Publication Number Publication Date
CN116303418A true CN116303418A (en) 2023-06-23

Family

ID=86802046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211644686.9A Pending CN116303418A (en) 2022-12-20 2022-12-20 Massive rule processing method, system and storage medium based on Internet of Things platform

Country Status (2)

Country Link
CN (1) CN116303418A (en)
WO (1) WO2024131990A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024131990A1 (en) * 2022-12-20 2024-06-27 天翼物联科技有限公司 Internet of things platform-based mass rule processing method, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427427A (en) * 2011-12-06 2012-04-25 中国科学院计算机网络信息中心 Method for querying parsing server and index server in hash network
WO2021082073A1 (en) * 2019-10-30 2021-05-06 平安科技(深圳)有限公司 Method and system for dynamic selection of storage partitions, computer device, and storage medium
CN112988385A (en) * 2021-03-19 2021-06-18 北京京东拓先科技有限公司 Request processing method, device, system, storage medium and electronic equipment
CN114222004A (en) * 2021-12-14 2022-03-22 平安壹钱包电子商务有限公司 Service data distribution execution method and device, computer equipment and storage medium
CN114461407A (en) * 2022-04-13 2022-05-10 杭州涂鸦信息技术有限公司 Data processing method, device, distribution server, system and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299758B (en) * 2008-05-21 2011-05-11 网御神州科技(北京)有限公司 Well-regulated group system for cosmically processing event as well as processing method
CN107645403B (en) * 2016-07-22 2020-07-03 阿里巴巴集团控股有限公司 Terminal rule engine device and terminal rule operation method
CN108959562B (en) * 2018-07-04 2020-06-30 北京京东尚科信息技术有限公司 Massive regular data processing method and system applied to block chain
CN111639101B (en) * 2020-04-27 2022-12-06 浙江时空道宇科技有限公司 Method, device and system for correlating rule engine system of internet of things and storage medium
CN113384899B (en) * 2021-07-05 2022-10-04 在线途游(北京)科技有限公司 Rule-based operation method and system
CN115145552A (en) * 2022-05-23 2022-10-04 深圳市云恋科技有限公司 Execution method, apparatus, device and computer-readable storage medium for rule engine
CN116303418A (en) * 2022-12-20 2023-06-23 天翼物联科技有限公司 Massive rule processing method, system and storage medium based on Internet of Things platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427427A (en) * 2011-12-06 2012-04-25 中国科学院计算机网络信息中心 Method for querying parsing server and index server in hash network
WO2021082073A1 (en) * 2019-10-30 2021-05-06 平安科技(深圳)有限公司 Method and system for dynamic selection of storage partitions, computer device, and storage medium
CN112988385A (en) * 2021-03-19 2021-06-18 北京京东拓先科技有限公司 Request processing method, device, system, storage medium and electronic equipment
CN114222004A (en) * 2021-12-14 2022-03-22 平安壹钱包电子商务有限公司 Service data distribution execution method and device, computer equipment and storage medium
CN114461407A (en) * 2022-04-13 2022-05-10 杭州涂鸦信息技术有限公司 Data processing method, device, distribution server, system and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024131990A1 (en) * 2022-12-20 2024-06-27 天翼物联科技有限公司 Internet of things platform-based mass rule processing method, system and storage medium

Also Published As

Publication number Publication date
WO2024131990A1 (en) 2024-06-27

Similar Documents

Publication Publication Date Title
CN108427684B (en) Data query method and device and computing equipment
CN111930770A (en) Data query method and device and electronic equipment
CN111723073B (en) Data storage processing method, device, processing system and storage medium
CN106933891A (en) Access the method for distributed data base and the device of Distributed database service
WO2022111313A1 (en) Request processing method and micro-service system
CN113596094B (en) Load balancing method and device based on cloud cluster
US20170279654A1 (en) Data Processing System and Data Processing Method
CN114442952B (en) Cold data migration method, device, storage medium and electronic device
CN117806546B (en) Data processing methods and related products
CN116028196A (en) Data processing method, device and storage medium
CN115237595A (en) Data processing method, data processing device, distribution server, data processing system, and storage medium
CN118656198A (en) Data processing method, device, electronic device and storage medium
CN115481295A (en) Data storage method, device, equipment and storage medium based on distributed system
CN105975614B (en) Cluster configuration device, and method and device for updating data
WO2024131990A1 (en) Internet of things platform-based mass rule processing method, system and storage medium
CN110912967A (en) Service node scheduling method, device, equipment and storage medium
CN110955664A (en) Method and device for routing messages in different banks and tables
CN111008071A (en) Task scheduling system, method and server
CN115729693A (en) Data processing method, device, computer equipment, and computer-readable storage medium
CN118296081A (en) Graph data writing method and device for distributed graph database
CN115587122A (en) Message data partition query method and device, computer equipment and storage medium
CN118075272A (en) Data processing method, device, electronic equipment and readable storage medium
CN108718285A (en) Flow control methods, device and the server of cloud computing cluster
CN116226071A (en) Data statistics method, device, equipment and storage medium
CN104112025A (en) Partitioning method for processing virtual asset data based on perception of node computing power

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载