CN115379012A - Industrial interconnection platform message queue deployment method and device based on identification analysis - Google Patents

Industrial interconnection platform message queue deployment method and device based on identification analysis Download PDF

Info

Publication number
CN115379012A
CN115379012A CN202211307858.3A CN202211307858A CN115379012A CN 115379012 A CN115379012 A CN 115379012A CN 202211307858 A CN202211307858 A CN 202211307858A CN 115379012 A CN115379012 A CN 115379012A
Authority
CN
China
Prior art keywords
identification analysis
message
message queue
identification
preset
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.)
Granted
Application number
CN202211307858.3A
Other languages
Chinese (zh)
Other versions
CN115379012B (en
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.)
Aerospace Cloud Network Data Research Institute Guangdong Co ltd
Original Assignee
Aerospace Cloud Network Data Research Institute Guangdong 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 Aerospace Cloud Network Data Research Institute Guangdong Co ltd filed Critical Aerospace Cloud Network Data Research Institute Guangdong Co ltd
Priority to CN202211307858.3A priority Critical patent/CN115379012B/en
Publication of CN115379012A publication Critical patent/CN115379012A/en
Application granted granted Critical
Publication of CN115379012B publication Critical patent/CN115379012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application is applicable to the technical field of industrial interconnection, and provides an industrial interconnection platform message queue deployment method and device based on identification analysis, wherein the method comprises the following steps: writing the identification analysis message into an identification analysis message queue; responding to a preset consumption condition, analyzing the identification analysis message consumed and stored in the identification analysis message queue by a consumer group by using a label and outputting the identification analysis message through a preset interface; according to the method and the system, the producers and the message queues are grouped, and the messages generated by the identification analysis producers are loaded in the identification analysis message queues in a balanced manner, so that the message accumulation capacity is improved, the identification analysis task can be completed more reliably, and a good basis is provided for accurate butt joint, product full-life-cycle management and intelligent service of a subsequent supply chain system and an enterprise production system.

Description

Industrial interconnection platform message queue deployment method and device based on identification analysis
Technical Field
The application belongs to the technical field of industrial interconnection, and particularly relates to an industrial interconnection platform message queue deployment method and device based on identification analysis.
Background
Under the environment of information explosion and digital economy, the data island problem is widely concerned by academic circles, business fields and even national levels.
In the face of expanding digital application scale, enterprises have a situation of explosive growth in both computing and storage demands on data. Due to the fact that the traditional data center has insufficient expansibility, massive data generated by a plurality of enterprises due to huge business volumes cannot be stored uniformly, and only relevant data of each business can be placed in respectively deployed equipment.
For industrial production enterprises with long industrial chains, the problem caused by unsmooth information interaction upstream and downstream of the enterprises also exists.
In order to solve the problems, a feasible scheme is to establish a cloud platform based on big data to realize information interaction, however, in practical application, due to the data volume, the scheme often has a problem of insufficient reliability.
Therefore, how to provide a more reliable message queue deployment method becomes a technical problem to be solved urgently in the industry.
Disclosure of Invention
The embodiment of the application provides an industrial interconnection platform message queue deployment method and device based on identification analysis, and can solve the problem of insufficient reliability of a message queue.
In a first aspect, an embodiment of the present application provides an industrial interconnection platform message queue deployment method based on identifier resolution, including:
writing the identification analysis message into an identification analysis message queue;
the identification resolving message is a message which is generated by a producer in the label resolving producer group and is used for inquiring the network position of the target object and/or the information of the target object according to the identification; the identification analysis message queue is any one of message queues in a message queue group consistent with the subject of the identification analysis message, and the identification analysis messages are loaded in a balanced manner by the identification analysis message queues;
responding to a preset consumption condition, analyzing the identification analysis message consumed and stored in the identification analysis message queue by a consumer group by using a label and outputting the identification analysis message through a preset interface; the interface is in communication connection with a preset industrial interconnection application, and the industrial interconnection application can execute a preset task according to the network position of the target object and/or the information of the target object.
According to the method, the producers and the message queues are grouped, and the messages generated by the identification analysis producers are loaded in the identification analysis message queues in a balanced manner, so that the message accumulation capacity is improved, the identification analysis task can be completed more reliably, and a good basis is provided for the accurate butt joint, the product full-life-cycle management and the intelligent service of a subsequent supply chain system and an enterprise production system.
In a possible implementation manner of the first aspect, the identifier resolution message queue is disposed in a proxy server for storing and forwarding messages;
the proxy server comprises a proxy main node and a proxy slave node;
the proxy master node is configured to:
writing the identification analysis message into the identification analysis message queue; or,
reading the identification analysis message in the identification analysis message queue;
the proxy slave node is configured to:
pulling the identification analysis message queue data from the agent main node by a preset rule to form a backup queue; or,
and reading the identification analysis message in the backup queue.
According to the method, the proxy main node and the proxy slave node are introduced, so that the reading speed of the message queue is improved, and reliable backup is provided for the node downtime of the proxy server.
In a possible implementation manner of the first aspect, the writing the identifier resolution message into the identifier resolution message queue includes:
obtaining the route of the proxy server in a name server according to the subject of the identification analysis message; the name server is used for providing relation data between the theme and the proxy server;
and writing the identification analysis message into the identification analysis message queue according to the route of the proxy server.
The method realizes the matching of the node routing and the theme of the proxy server through the name server in communication connection with the producer, and improves the reliability of the message queue.
In a possible implementation manner of the first aspect, the name server is a scalable cluster deployment server, and includes name nodes deployed on a plurality of hardware, and the name nodes are information independent nodes.
The method improves the flexibility of deployment by introducing the extensible name server.
In a possible implementation manner of the first aspect, the method further includes:
and if the fact that the producers are down in the label analysis producer group is determined, calling back any producer which is not down in the label analysis producer group to confirm the transaction state by using the proxy server.
By calling back other producers in the group when the producer goes down, the method can control the transaction state in real time, and further improves the reliability.
In a possible implementation manner of the first aspect, the step of consuming, by using a tag, the identifier resolution message stored in the identifier resolution message queue by a consumer group in response to a preset consumption condition and outputting the identifier resolution message through a preset interface includes:
responding to a preset consumption condition, and consuming all identification analysis message queues corresponding to the topics of the consumption condition one by one aiming at each label analysis consumer in the label analysis consumer group and outputting the identification analysis message queues through a preset interface.
The method provides good applicability for the scene that each message only needs to be processed once for the clustering deployment of the consumption end.
In a possible implementation manner of the first aspect, the step of consuming, by using a tag, the identifier resolution message stored in the identifier resolution message queue and outputting the identifier resolution message through a preset interface, in response to a preset consumption condition, includes:
responding to a preset consumption condition, analyzing all identification analysis message queues of the average consumption of consumers corresponding to the subject of the consumption condition one by utilizing a plurality of labels in a label analysis consumer group, and outputting the identification analysis message queues through a preset interface.
The method provides good applicability for the consumer-side clustered deployment in the scene that each message needs to be processed by each consumer under the cluster.
In a second aspect, an embodiment of the present application provides an apparatus for deploying an industrial interconnection platform message queue based on identifier resolution, including:
the writing module is used for writing the identification analysis message into the identification analysis message queue;
the identification resolving message is a message which is generated by a producer in the label resolving producer group and is used for inquiring the network position of the target object and/or the information of the target object according to the identification; the identification analysis message queue is any one of message queues in a message queue group consistent with the subject of the identification analysis message, and the identification analysis messages are loaded in a balanced manner by the identification analysis message queues;
the consumption module is used for responding to a preset consumption condition, analyzing the identification analysis message consumed by the consumer group and stored in the identification analysis message queue by using the label and outputting the identification analysis message through a preset interface; the interface is in communication connection with a preset industrial interconnection application, and the industrial interconnection application can execute a preset task according to the network position of the target object and/or the information of the target object.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, and when the processor executes the computer program, the method for deploying a message queue on an industrial interconnection platform based on identity resolution in any one of the first aspect is implemented.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for deploying a message queue based on an identity resolution in an industrial interconnection platform according to any one of the foregoing first aspects is implemented.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when running on a terminal device, enables the terminal device to execute the method for deploying an industrial interconnection platform message queue based on identifier resolution according to any one of the foregoing first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a message queue deployment method for an industrial interconnection platform based on identifier resolution according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an industrial interconnection platform message queue deployment device based on identifier resolution according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
fig. 4 is a schematic logic deployment diagram provided in an embodiment of the present application.
Reference numerals:
a write module 201;
a consumption module 202;
a terminal device 30;
a processor 301;
a memory 302;
a computer program 303.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The embodiment of the application provides an industrial interconnection platform message queue deployment method based on identification analysis, as shown in fig. 1, including:
step 102, writing the identification analysis message into an identification analysis message queue;
the identification resolving message is a message which is generated by a producer in the label resolving producer group and is used for inquiring the network position of the target object and/or the information of the target object according to the identification; the identification analysis message queue is any one of message queues in a message queue group consistent with the subject of the identification analysis message, and the identification analysis messages are loaded in a balanced manner by the identification analysis message queues;
104, responding to a preset consumption condition, using a label to analyze the identification analysis message consumed by the consumer group and stored in the identification analysis message queue, and outputting the identification analysis message through a preset interface; the interface is in communication connection with a preset industrial interconnection application, and the industrial interconnection application can execute a preset task according to the network position of the target object and/or the information of the target object.
In an alternative embodiment, the tag resolution producer group is part of a distributed producer cluster; the identification analysis message queue group is one part of a distributed message queue cluster; the tag resolution consumer belongs to a distributed consumer cluster.
An application scenario of the present embodiment will be explained below.
The method of the present embodiment can be used as a messaging middleware in industrial software and platforms in a multi-network environment to assist in facilitating the development, execution and integration of a cloud-based integrated service with any local and cloud-based processes, services, applications and data connections.
Furthermore, the cloud service comprises an identification analysis system, the system can inquire the network position of a target object or related information according to identification codes, uniquely position and inquire information of machines and articles, and the method is a premise and basis for realizing accurate butt joint, product full-life-cycle management and intelligent service of a global supply chain system and an enterprise production system. The application of the identification analysis technology can get through internal and external data islands of enterprises, improve the production standardization and service level of the enterprises, improve the production and management scale of the enterprises, improve the production coordination efficiency inside and among the enterprises and promote the value creation of enterprise general knowledge.
Specifically, based on the target object position and/or the target object information obtained by the identification analysis, the following industrial interconnection application tasks can be executed:
resource balancing and optimal allocation:
the APS can realize different targets such as: the method comprises the following steps of balancing processing load of multiple devices, completing orders at the fastest speed, continuously producing the same products, producing mixed flow in a combined mode, minimizing waiting time among working procedures, prioritizing resources and the like; the APS system can optimally schedule resources to meet the optimal requirement of multi-target combined utilization resources of enterprises
Order delivery commitment:
the industrial internet can bring essential changes to the manufacturing industry, and end-to-end full chain cooperative manufacturing is realized. The enterprise can carry out order evaluation and delivery date evaluation according to the production capacity and the existing capacity load of the enterprise during production; the system can provide possible delivery date for the intention order in the process of quickly replying the customer delivery date, provide the promised date and the accurate planned promised Amount (ATP) for the ordered order, provide an order delivery date evaluation interface, and facilitate the external system call of ERP and the like.
And (3) comparing the planned versions:
when planning personnel set different strategies and parameters for simulation trial calculation or adjust and rearrange the discharged plan, the manual plan cannot compare the results of various planning strategies. The APS needs to support backup and restoration between plans of different versions, and can perform visual comparison between the versions, thereby facilitating plan comparison difference of planning personnel and guiding production adjustment.
Bottleneck analysis:
and identifying the production bottleneck of the enterprise, and assisting analysis and decision (such as process outsourcing, equipment purchasing and product combination optimization) to complete bottleneck optimization.
Material restraint:
the medium and long term plan is obtained through intelligent plan scheduling to guide the formulation of a material purchasing plan; the process level production scheduling considers the constraint of material alignment, and simultaneously plan driving guides material preparation and logistics distribution.
Intelligent one-key scheduling:
the system has the advantages that full-automatic intelligent rapid production scheduling is realized, the optimized executable planning result is completed within a short time range (such as 10 minutes), the planning time is reduced fundamentally, the workload is reduced, the working efficiency is improved, and meanwhile, the error of manual calculation is avoided.
Various production scheduling directions:
common forward scheduling, reverse scheduling and bottleneck scheduling are supported; can also support forward-to-reverse or reverse-to-forward mixed intelligent scheduling (for example, forward-to-reverse, if the forward scheduling is far from the delivery period, the forward scheduling is pushed backward by one day according to the delivery period, so as to avoid stock overstock caused by premature production, reverse-to-forward, if the current capacity can not be met, the forward scheduling is automatically changed, so as to realize JIT production)
Order priority:
the order priority can be flexibly defined according to custom judgment attributes such as customer importance, product types, order quantity, order receiving time, order urgency degree, fuzzy conditions (such as within N days of a delivery period) and the like, so that the order production sequence is determined.
Automatically processing the emergency insertion order:
respond to the urgent bill insertion in time, the production plan of the bill insertion and the adjustment influence of the bill insertion on the plan are obtained quickly by automatic scheduling, and the locked plan can be ensured to be kept unchanged
Visual display of Gantt chart:
the Gantt chart displays a planning result, and the scheduling result can be flexibly adjusted and analyzed directly on the Gantt chart; the gantt chart display can be configured according to the needs of enterprise users.
Multi-user collaborative planning:
plan data are stored in a unified mode, multiple departments share the plan data, multiple users cooperate with plan scheduling, and meeting communication of offline sites of plan personnel is reduced; and responding to the rapid establishment of the enterprise multi-level plan and the plan collaborative adjustment of the same level in time.
In addition to the above examples, the target object position and/or target object information obtained by the identifier resolution can also be used for performing other tasks requiring calling of industrial production information, such as real-time monitoring, integrated equipment management, fault alarm, work order management, spare part management, and the like.
The beneficial effect of this embodiment lies in:
by grouping the producers and the message queues and balancing and loading the messages generated by the identification analysis producer in the plurality of identification analysis message queues, the accumulation capacity of the messages is improved, the identification analysis task can be completed more reliably, and a good basis is provided for the accurate butt joint, the product full-life cycle management and the intelligent service of a subsequent supply chain system and an enterprise production system.
According to the above embodiment, in the present embodiment:
the identification analysis message queue is arranged in a proxy server for storing and forwarding messages;
the proxy server comprises a proxy main node and a proxy slave node;
the proxy master node is configured to:
writing the identification analysis message into the identification analysis message queue; or,
reading the identification analysis message in the identification analysis message queue;
the proxy slave node is configured to:
pulling the identification analysis message queue data from the agent main node by a preset rule to form a backup queue; or,
and reading the identification analysis message in the backup queue.
The step of writing the identifier resolution message into the identifier resolution message queue comprises:
obtaining the route of the proxy server in a name server according to the subject of the identification analysis message; the name server is used for providing relation data between the theme and the proxy server;
and writing the identification analysis message into the identification analysis message queue according to the route of the proxy server.
By way of example, and not limitation, the present embodiments may be implemented based on the following deployment.
The following description is made for the names:
the proxy server: a Broker;
name server: a NameServer;
the producer: a Producer;
the consumer: a Consumer;
subject matter: topic.
The architecture will be described below.
NameServer provides lightweight service discovery and routing. Each NameServer records complete routing information, provides equivalent read-write service and supports rapid storage expansion.
And (4) Broker: message stores are handled by providing lightweight Topic and Queue mechanisms, while supporting push and pull (pull) modes and fault-tolerant mechanisms for master-slave architectures.
Producer: the Producer, which generates instances of the message, has producers of the same Producer Group grouped together into a cluster.
Consumer: the Consumer, the instance that receives the message for consumption, has consumers of the same Consumer Group grouped together into a cluster.
Wherein, each Broker establishes long connection with all nodes in the NameServer cluster, and registers the Topic information to all NameServer at regular time.
The Producer establishes long connection with one node (randomly selected) in the NameServer cluster, periodically acquires the Topic routing information from the NameServer, establishes long connection with a Broker Master providing the Topic service, and regularly sends heartbeats to the Broker. The Producer can only send messages to the Broker Master, but the Consumer does not, and it simultaneously establishes a long connection with the Master and the Slave providing the Topic service, and can subscribe to messages from the Broker Master or from the Broker Slave.
In an alternative embodiment, the Broker has a Broker Master1 and a Broker Slave1 in a Master-Slave relationship with each other, and data synchronization, namely Date Sync, is performed between them.
In the specific deployment:
the Name Server is an almost stateless node, can be deployed in a cluster, and has no information synchronization among nodes.
The Broker deployment is relatively complex, the Broker is divided into masters and Slave, one Master can correspond to a plurality of Slave, but one Slave can only correspond to one Master, the corresponding relationship between the masters and the Slave is defined by assigning the same BrokerName and different BrokerIds, the BrokerId is 0 to represent the Master, and the non-0 represents the Slave. Masters may also be deployed in multiple numbers. And each Broker establishes long connection with all nodes in the Name Server cluster, and registers the Topic information to all the Name servers at regular time.
The Producer establishes a long connection with one node (randomly selected) in the Name Server cluster, periodically acquires the Topic routing information from the Name Server, establishes a long connection to a Master providing the Topic service, and regularly sends heartbeats to the Master. The Producer is completely stateless and can be deployed in a cluster manner.
The method comprises the steps that a Consumer establishes long connection with one node (randomly selected) in a Name Server cluster, topic routing information is periodically obtained from the Name Server, long connection is established for a Master and a Slave which provide Topic services, and heartbeat is sent to the Master and the Slave at regular time. The Consumer can subscribe the message from the Master or the Slave, and the subscription rule is determined by the Broker configuration.
FIG. 4 shows a schematic diagram of the logical deployment of the present embodiment;
a Producer cluster (Producer Group) is used to represent a messaging application, and one Producer Group includes multiple Producer instances, which may be multiple machines, multiple processes of a single machine, or multiple Producer objects of a single process. One Producer Group may send multiple message topics (topics), and the Producer Group functions as follows:
1. identifying a type of Producer;
2. the operation and maintenance tool can inquire that a plurality of Producer instances exist under the application of the sending message;
3. when the distributed transaction message is sent, if the Producer is accidentally down midway, the Broker actively calls back any machine in the Producer Group to confirm the transaction state.
A Consumer cluster (Consumer Group) is used to represent a Consumer message application, and a Consumer Group includes multiple Consumer (Consumer) instances, which may be multiple machines, multiple processes, or multiple Consumer objects of a process. Multiple consumers under a Consumer Group consume messages in an equitable manner, and if set to broadcast, each instance under the Consumer Group consumes the full amount of data.
In a preferred embodiment, the name server is a scalable cluster deployment server, and includes name nodes deployed on multiple hardware, and the name nodes are information independent nodes.
The method further comprises the following steps:
and if the fact that the producers are down in the label analysis producer group is determined, calling back any producer which is not down in the label analysis producer group to confirm the transaction state by using the proxy server.
Further, the step of analyzing, by the group of consumers, the identifier resolution message stored in the identifier resolution message queue and output through a preset interface in response to the preset consumption condition, includes:
responding to a preset consumption condition, and consuming all identification analysis message queues corresponding to the topics of the consumption condition one by one aiming at each label analysis consumer in the label analysis consumer group and outputting the identification analysis message queues through a preset interface.
Or, the step of analyzing, by the tag, the identifier resolution message consumed by the consumer group and stored in the identifier resolution message queue in response to the preset consumption condition and outputting the identifier resolution message through a preset interface includes:
responding to a preset consumption condition, analyzing all identification analysis message queues of topics which are consumed by a plurality of label analysis consumers in a label analysis consumer group in a one-to-one correspondence mode through a preset interface, and outputting the identification analysis message queues through the preset interface.
The beneficial effect of this embodiment lies in:
1) The message middleware of the queue model is provided, and has the characteristics of high performance, high reliability, high real-time performance and distribution.
2) The Producer, the Consumer, and the queue may all be distributed.
3) The Producer sends messages to a plurality of queues in turn, the queue set is called as Topic, if the Consumer consumes in a broadcast mode, one Consumer instance consumes all the queues corresponding to the Topic, and if the Consumer consumes in a cluster mode, a plurality of Consumer instances averagely consume the queue set corresponding to the Topic.
4) Strict message order can be guaranteed.
5) Rich message pull patterns are provided.
6) Efficient subscriber level expansion capabilities.
7) A real-time message subscription mechanism.
8) Billions of message stacking capacity.
9) Less dependence is required.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the method for deploying the message queue of the industrial interconnection platform based on the identifier resolution in the foregoing embodiment, fig. 2 shows a structural block diagram of the device for deploying the message queue of the industrial interconnection platform based on the identifier resolution provided in the embodiment of the present application, and for convenience of description, only the parts related to the embodiment of the present application are shown.
Referring to fig. 2, the apparatus includes:
a writing module 201, configured to write the identifier resolution message into an identifier resolution message queue;
the identification resolving message is a message which is generated by a producer in the label resolving producer group and is used for inquiring the network position of the target object and/or the information of the target object according to the identification; the identification analysis message queue is any one of message queues in a message queue group consistent with the subject of the identification analysis message, and the identification analysis messages are loaded in a balanced manner by the identification analysis message queues;
the consumption module 202 is configured to, in response to a preset consumption condition, analyze, by using a tag, an identifier resolution message that is consumed by a consumer group and stored in the identifier resolution message queue, and output the identifier resolution message through a preset interface; the interface is in communication connection with a preset industrial interconnection application, and the industrial interconnection application can execute a preset task according to the network position of the target object and/or the information of the target object.
Specifically, the device further comprises:
and the downtime confirmation module is used for determining that producer downtime exists in the label analysis producer group, and calling back any producer which is not down in the label analysis producer group to confirm the transaction state by using the proxy server.
Further, the identification parsing message queue is arranged in a proxy server for storing and forwarding messages;
the proxy server comprises a proxy main node and a proxy slave node;
the proxy master node is configured to:
writing the identification analysis message into the identification analysis message queue; or,
reading the identification analysis message in the identification analysis message queue;
the proxy slave node is configured to:
pulling the identification analysis message queue data from the agent main node by a preset rule to form a backup queue; or,
and reading the identification analysis message in the backup queue.
The write module 201 includes:
the routing unit is used for acquiring the routing of the proxy server in a name server according to the subject of the identification analysis message; the name server is used for providing relation data between the theme and the proxy server;
and the proxy writing unit is used for writing the identification analysis message into the identification analysis message queue according to the route of the proxy server.
The name server is a scalable cluster deployment server and comprises name nodes deployed on a plurality of hardware, and the name nodes are information independent nodes.
Still further, the consumption module 202 includes:
and the broadcast consumption unit is used for responding to a preset consumption condition, analyzing the consumers aiming at each label in the label analysis consumer group, consuming all identification analysis message queues which are in one-to-one correspondence with the subjects of the consumption condition and outputting the identification analysis message queues through a preset interface.
Alternatively, the consuming module 202 comprises:
and the cluster consumption unit is used for responding to a preset consumption condition, analyzing all identification analysis message queues of the topics, which are one-to-one corresponding to the consumption condition, consumed by the average consumers by utilizing a plurality of labels in the label analysis consumer group, and outputting the identification analysis message queues through a preset interface.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a terminal device, as shown in fig. 3, where the terminal device 30 includes: at least one processor 301, a memory 302 and a computer program 303 stored in said memory and executable on said at least one processor, said processor implementing the steps of any of the various method embodiments described above when executing said computer program.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the foregoing method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An industrial interconnection platform message queue deployment method based on identification analysis is characterized by comprising the following steps:
writing the identification analysis message into an identification analysis message queue;
the identification resolving message is a message which is generated by a producer in the label resolving producer group and is used for inquiring the network position of the target object and/or the information of the target object according to the identification; the identification analysis message queue is any one of message queues in a message queue group consistent with the subject of the identification analysis message, and the identification analysis messages are loaded in a balanced manner by the identification analysis message queues;
responding to a preset consumption condition, analyzing the identification analysis message consumed and stored in the identification analysis message queue by a consumer group by using a label and outputting the identification analysis message through a preset interface; the interface is in communication connection with a preset industrial interconnection application, and the industrial interconnection application can execute a preset task according to the network position of the target object and/or the information of the target object.
2. The industrial interconnect platform message queue deployment method based on identity resolution of claim 1, wherein the identity resolution message queue is disposed in a proxy server for store and forward messages;
the proxy server comprises a proxy main node and a proxy slave node;
the proxy master node is configured to:
writing the identification analysis message into the identification analysis message queue; or,
reading the identification analysis message in the identification analysis message queue;
the proxy slave node is configured to:
pulling the identification analysis message queue data from the agent main node by a preset rule to form a backup queue; or,
and reading the identification analysis message in the backup queue.
3. The identity resolution-based industrial interconnected platform message queue deployment method of claim 2, wherein the step of writing identity resolution messages into an identity resolution message queue comprises:
obtaining the route of the proxy server in a name server according to the subject of the identification analysis message; the name server is used for providing relation data between the theme and the proxy server;
and writing the identification analysis message into the identification analysis message queue according to the route of the proxy server.
4. The identity resolution-based industrial interconnected platform message queue deployment method of claim 3, wherein the name server is a scalable cluster deployment server comprising name nodes deployed on a plurality of hardware, and the name nodes are information independent nodes.
5. The identity resolution-based industrial interconnection platform message queue deployment method according to any one of claims 2 to 4, further comprising:
and if the fact that the producers are down in the label analysis producer group is determined, calling back any producer which is not down in the label analysis producer group to confirm the transaction state by using the proxy server.
6. The identity resolution-based industrial interconnected platform message queue deployment method according to any one of claims 1 to 4, wherein the step of consuming identity resolution messages stored in the identity resolution message queue by using a tag resolution consumer group and outputting the identity resolution messages through a preset interface in response to a preset consumption condition comprises the following steps:
responding to a preset consumption condition, and consuming all identification analysis message queues corresponding to the topics of the consumption condition one by one aiming at each label analysis consumer in the label analysis consumer group and outputting the identification analysis message queues through a preset interface.
7. The identity resolution-based industrial interconnected platform message queue deployment method according to any one of claims 1 to 4, wherein the step of consuming identity resolution messages stored in the identity resolution message queue by using a tag resolution consumer group and outputting the identity resolution messages through a preset interface in response to a preset consumption condition comprises the following steps:
responding to a preset consumption condition, analyzing all identification analysis message queues of topics which are consumed by a plurality of label analysis consumers in a label analysis consumer group in a one-to-one correspondence mode through a preset interface, and outputting the identification analysis message queues through the preset interface.
8. An industrial interconnection platform message queue deployment device based on identification analysis is characterized by comprising:
the writing module is used for writing the identification analysis message into the identification analysis message queue;
the identification resolving message is a message which is generated by a producer in the label resolving producer group and is used for inquiring the network position of the target object and/or the information of the target object according to the identification; the identification analysis message queue is any message queue in a message queue group consistent with the subject of the identification analysis message, and the identification analysis messages are loaded in a balanced manner by the identification analysis message queues;
the consumption module is used for responding to a preset consumption condition, analyzing the identification analysis message consumed by the consumer group and stored in the identification analysis message queue by using the label and outputting the identification analysis message through a preset interface; the interface is in communication connection with a preset industrial interconnection application, and the industrial interconnection application can execute a preset task according to the network position of the target object and/or the information of the target object.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202211307858.3A 2022-10-25 2022-10-25 Industrial interconnection platform message queue deployment method and device based on identification analysis Active CN115379012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211307858.3A CN115379012B (en) 2022-10-25 2022-10-25 Industrial interconnection platform message queue deployment method and device based on identification analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211307858.3A CN115379012B (en) 2022-10-25 2022-10-25 Industrial interconnection platform message queue deployment method and device based on identification analysis

Publications (2)

Publication Number Publication Date
CN115379012A true CN115379012A (en) 2022-11-22
CN115379012B CN115379012B (en) 2023-03-24

Family

ID=84073750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211307858.3A Active CN115379012B (en) 2022-10-25 2022-10-25 Industrial interconnection platform message queue deployment method and device based on identification analysis

Country Status (1)

Country Link
CN (1) CN115379012B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701661A (en) * 2013-12-23 2014-04-02 浪潮(北京)电子信息产业有限公司 Method and system for realizing node monitoring
CN109995801A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 A kind of method for message transmission and device
CN111064608A (en) * 2019-12-11 2020-04-24 北京奇艺世纪科技有限公司 Master-slave switching method and device of message system, electronic equipment and storage medium
CN112527528A (en) * 2020-12-18 2021-03-19 平安科技(深圳)有限公司 Data transmission method, device and storage medium based on message queue
CN114637611A (en) * 2022-03-11 2022-06-17 平安国际智慧城市科技股份有限公司 Information processing method and device based on message queue and computer equipment
CN115185705A (en) * 2021-04-06 2022-10-14 腾讯科技(深圳)有限公司 Message notification method, device, medium and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701661A (en) * 2013-12-23 2014-04-02 浪潮(北京)电子信息产业有限公司 Method and system for realizing node monitoring
CN109995801A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 A kind of method for message transmission and device
CN111064608A (en) * 2019-12-11 2020-04-24 北京奇艺世纪科技有限公司 Master-slave switching method and device of message system, electronic equipment and storage medium
CN112527528A (en) * 2020-12-18 2021-03-19 平安科技(深圳)有限公司 Data transmission method, device and storage medium based on message queue
CN115185705A (en) * 2021-04-06 2022-10-14 腾讯科技(深圳)有限公司 Message notification method, device, medium and equipment
CN114637611A (en) * 2022-03-11 2022-06-17 平安国际智慧城市科技股份有限公司 Information processing method and device based on message queue and computer equipment

Also Published As

Publication number Publication date
CN115379012B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
US9658901B2 (en) Event-based orchestration in distributed order orchestration system
US7478058B2 (en) Collaborative commerce hub
CN101416178B (en) Managing rich presence collections
US7650347B2 (en) System and method for job scheduling and distributing job scheduling
CN108874567B (en) Service processing method and system
US20110145037A1 (en) Document management method and apparatus to process a workflow task by parallel or serially processing subtasks thereof
US20080215397A1 (en) System and mechanism to create autonomic business solutions
CN110611707B (en) Task scheduling method and device
US20060095914A1 (en) System and method for job scheduling
CN111507674B (en) Task information processing method, device and system
CN108416657B (en) Order generation method and equipment based on consultation service
CN1552019B (en) Object-oriented framework for generic adaptive control
CN111178837B (en) Intelligent manufacturing information system based on micro-service architecture
CN116471627A (en) Stream data processing method, system, node, electronic device and storage medium
CN115379012B (en) Industrial interconnection platform message queue deployment method and device based on identification analysis
CN111553545B (en) Method for optimizing batch task scheduling dependence
CN116506434A (en) Multi-terminal offline-operation intelligent warehouse management method
CN115860617A (en) Logistics supply chain management method and system based on block chain
Guarnaschelli et al. An approach based on constraint satisfaction problems to disruptive event management in supply chains
CN115619169A (en) Heterogeneous information system integration method and terminal equipment for cross-organization business requirements
CN112148462B (en) Jenkins-based CICD process processing method
CN114237858A (en) Task scheduling method and system based on multi-cluster network
IOVAN et al. ENTERPRISE SERVICES ARCHITECTURE IN THE WORLD OF INFORMATION TECHNOLOGY.
CN114493199B (en) Intelligent cloud scheduling method based on small-sized cross-medium enterprises
CN117591168A (en) Project management system under complex scene

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
GR01 Patent grant
GR01 Patent grant