CN111240858A - Event scheduling method and component - Google Patents

Event scheduling method and component Download PDF

Info

Publication number
CN111240858A
CN111240858A CN202010012630.6A CN202010012630A CN111240858A CN 111240858 A CN111240858 A CN 111240858A CN 202010012630 A CN202010012630 A CN 202010012630A CN 111240858 A CN111240858 A CN 111240858A
Authority
CN
China
Prior art keywords
event
sending
message
event message
application system
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
CN202010012630.6A
Other languages
Chinese (zh)
Other versions
CN111240858B (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010012630.6A priority Critical patent/CN111240858B/en
Publication of CN111240858A publication Critical patent/CN111240858A/en
Application granted granted Critical
Publication of CN111240858B publication Critical patent/CN111240858B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an event scheduling method and an event scheduling component, wherein the method comprises the following steps: if receiving an event message to be published generated by a corresponding target application system, sending the event message to an application system subscribing the event message through a corresponding message center according to configuration information acquired from a sending configuration table; if the event message sent by the application system which issues the event message is received through the corresponding message center, the event message is sent to the application system which subscribes the event message according to the configuration information acquired from a receiving configuration table, so that the efficiency and the accuracy of event scheduling can be improved, and the consistency of events among different systems is further improved.

Description

Event scheduling method and component
Technical Field
The present application relates to the field of event-driven architecture technologies, and in particular, to an event scheduling method and an event scheduling component.
Background
In an enterprise-level system architecture, quasi-real-time information notification and information synchronization are required among a plurality of systems, and if the system is implemented based on an SOA architecture, a large amount of computing resources and network resources are consumed, so that additional loads are borne by a transmitting party and a receiving party of information.
An Event-Driven Architecture (EDA) is an asynchronous communication Architecture in a producer/consumer mode, and the Architecture system takes an Event as a core, and has the main roles of an Event publisher and an Event subscriber, wherein the Event publisher generates the Event according to the self condition and pushes the Event to a message center, and the Event subscriber consumes the Event according to the self subscription condition, and the system components are in a loosely-coupled relationship. By applying the event-driven architecture based on the producer/consumer mode, the information sending efficiency can be improved. Under the event-driven architecture, each system needs to complete event publishing and subscribing in a message center, and also needs to manage the flows of event sending and receiving, event landing, message conversion, event processing and the like locally, and each system needs to design own processing logic for the flows. The message center or the event management center provides a receiving and sending program package which is only responsible for receiving and sending event messages, and can not carry out uniform configuration on receiving and sending configuration, landing configuration, message field conversion, processing modes and the like according to events.
All systems still need to manage the whole process of event processing by themselves, the problem of repeated development exists, the development, operation and maintenance cost is high, the automation degree is low, and the process of all systems is not uniform easily.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides an event scheduling method and an event scheduling component, which can improve the efficiency and accuracy of event scheduling and further improve the consistency of events among different systems.
In order to solve the technical problem, the present application provides the following technical solutions:
in a first aspect, the present application provides an event scheduling method, including:
if receiving an event message to be published generated by a corresponding target application system, sending the event message to an application system subscribing the event message through a corresponding message center according to configuration information acquired from a sending configuration table;
and if the event message sent by the application system for publishing the event message is received through the corresponding message center, sending the event message to the application system for subscribing the event message according to the configuration information acquired from a receiving configuration table.
Further, the sending the event message to the application system subscribing the event message through the corresponding message center according to the configuration information acquired from the sending configuration table includes: performing message encapsulation on the event message according to the configuration information acquired from the sending configuration table to obtain a compressed packet corresponding to the event message; and sending the compressed packet to an application system subscribing the event message through a corresponding message center.
Further, the sending the event message to the application system subscribing to the event message according to the configuration information acquired from a receiving configuration table includes: decompressing the event message according to the configuration information acquired from the receiving configuration table to obtain a decompressed file corresponding to the event message; and sending the decompressed file to an application system subscribed to the event message.
Further, the sending configuration table and the receiving configuration table are arranged in the same scheduling configuration table, and the scheduling configuration table is stored in the target database.
Further, the sending the event message to the application system subscribing the event message through the corresponding message center according to the configuration information acquired from the sending configuration table includes: if the event processing type corresponding to the configuration information acquired from the sending configuration table is a batch sending type, storing the event message in a target database; and receiving a batch sending instruction and sending the corresponding event messages of the same event type to an application system subscribing the event messages through a corresponding message center based on the batch sending instruction.
In a second aspect, the present application provides an event scheduling component comprising:
the configuration module is used for sending the event message to an application system subscribing the event message through a corresponding message center according to the configuration information acquired from a self-sending configuration table if the event message to be published generated by the corresponding target application system is received;
and the sending module is used for sending the event message to the application system subscribing the event message according to the configuration information acquired from a receiving configuration table if the event message sent by the application system publishing the event message is received through the corresponding message center.
Further, the configuration module includes: the packaging unit is used for carrying out message packaging on the event message according to the configuration information acquired from the sending configuration table to obtain a compressed packet corresponding to the event message; and the compressed packet sending unit is used for sending the compressed packet to an application system subscribed with the event message through the corresponding message center.
Further, the sending module includes: the decompression unit is used for decompressing the event message according to the configuration information acquired from the receiving configuration table to obtain a decompressed file corresponding to the event message; and the decompressed file sending unit is used for sending the decompressed file to an application system subscribed to the event message.
Further, the sending configuration table and the receiving configuration table are arranged in the same scheduling configuration table, and the scheduling configuration table is stored in the target database.
Further, the sending module includes: a storage unit, configured to store the event message in a target database if an event processing type corresponding to the configuration information acquired from the sending configuration table is a batch sending type; and the batch sending unit is used for receiving the batch sending instruction and sending the corresponding event messages with the same event type to an application system subscribing the event messages through the corresponding message center based on the batch sending instruction.
In a third aspect, the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the event scheduling method when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer instructions that, when executed, implement the event scheduling method.
In view of the above technical solutions, the present application provides an event scheduling method and an event scheduling assembly, where the method includes: if receiving an event message to be published generated by a corresponding target application system, sending the event message to an application system subscribing the event message through a corresponding message center according to configuration information acquired from a sending configuration table; if the event message sent by the application system which issues the event message is received through the corresponding message center, the event message is sent to the application system which subscribes the event message according to the configuration information acquired from a receiving configuration table, so that the efficiency and the accuracy of event scheduling can be improved, and the consistency of events among different systems is further improved; specifically, the event can be configured and processed in a centralized manner by concentrating the configuration information of the event into the database, and the configuration information can be modified in real time according to actual requirements, so that the unified management of the configuration information is realized; the method has the advantages that the configuration information is automatically read, details such as connection establishment and thread management with a message center are shielded, and the automation degree of the whole process of event sending, receiving, landing, conversion and automatic scheduling is improved; processing programs can be written according to needs, and event scheduling components are used for scheduling uniformly, so that the flexibility of service processing logic is improved; the universal message converter can be preset, and the message converter and the message conversion configuration can be customized, so that the high expandability of the message conversion is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a data flow diagram of an event scheduling method in an embodiment of the present application;
FIG. 2 is a flowchart illustrating an event scheduling method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of steps 101 and 102 of an event scheduling method according to another embodiment of the present application;
FIG. 4 is a schematic flow chart of steps 201 and 202 of an event scheduling method according to still another embodiment of the present application;
FIG. 5 is a block diagram of an event scheduling component in an embodiment of the present application;
FIG. 6 is a data flow diagram of an event scheduling method in an exemplary embodiment of the present application;
FIG. 7 is a data flow diagram of an event scheduling method in another embodiment of the present application;
fig. 8 is a block diagram schematically illustrating a system configuration of an electronic device 9600 according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problems that the management modes of system events are not uniform, the technical details of message conversion need to be known repeatedly, the mode of event processing flow is not uniform, codes are developed repeatedly and the like in the prior art, the application provides an event scheduling method and an event scheduling component based on an event-driven architecture, and relates to a message center, an event publisher, an event subscriber, an event management and event processing component, a relational database, Java and the like; referring to fig. 1, the process of event scheduling in the embodiment of the present application includes: the event message is generated by an event publisher, processed by the event management and event processing component and then sent to the message center; the message center establishes an event message queue for a group of publishers-subscribers based on different event types, and the channel temporarily stores the event message until the subscribers take the event message away; event messages are collected by event subscribers via the event management and event processing component. By applying the event scheduling method and the event scheduling component, the event scheduling is simple and visual, and the full flow control of the sending, receiving, landing, conversion and automatic scheduling processing of the event can be realized; and technical details and flow details can be shielded for a user side system, the safety of the system is improved, and the development of a business level is more concentrated. Each system only needs to maintain a uniform configuration table for subscribing or releasing events to control the sending/receiving mode and the processing mode of the events, and can automatically perform floor backup of the events, message conversion and multithread processing of subsequent processes. The event scheduling component also provides a uniform receiving/sending interface and a message conversion interface, is convenient for each system to apply, and simultaneously improves the expandability of the event scheduling.
Based on this, in order to improve efficiency and accuracy of event scheduling and further improve consistency of events between different systems, an embodiment of the present application provides an event scheduling component, where the component may be a server or a client device, and the client device may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, an intelligent wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch and intelligent bracelet etc..
In practical applications, the part for performing event scheduling may be performed on the server side as described in the above, or all operations may be performed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
The server and the client device may communicate using any suitable network protocol, including network protocols not yet developed at the filing date of this application. The network protocol may include, for example, a TCP/IP protocol, a UDP/IP protocol, an HTTP protocol, an HTTPS protocol, or the like. Of course, the network Protocol may also include, for example, an RPC Protocol (Remote Procedure Call Protocol), a REST Protocol (Representational State Transfer Protocol), and the like used above the above Protocol.
The following examples are intended to illustrate the details.
As shown in fig. 2, in order to improve efficiency and accuracy of event scheduling and further improve consistency of events between different systems, the present application provides an embodiment of an event scheduling method in which an execution subject is an event scheduling component, which specifically includes the following contents:
step 100: and if receiving the event message to be published generated by the corresponding target application system, sending the event message to the application system subscribing the event message through the corresponding message center according to the configuration information acquired from the sending configuration table.
Specifically, the message center stores application system information subscribing the event message; the message center is responsible for storing and forwarding event messages and is a channel for message transmission between application systems. The target application system is an event publisher, and the application system subscribed to the event message is an event receiver.
The sending configuration table may be stored in a relational database, such as Oracle and MySql database; in a specific application example of the present application, parameters in the transmission configuration table are shown in table 1, and some parameters in table 1 are described below:
1) an event sending mode: the main processing modes comprise real-time sending, batch sending and real-time and batch sending, parameters to be sent in real time are selected for real-time sending, parameters to be sent in batch are selected for batch sending, and all sending parameters are applied in a real-time and batch mode.
2) An event message converter: a unique identifier of the message converter is configured. The message converter when sending the event will convert the Java Object into xml message.
3) Message floor switch: whether the message is stored in the database can be configured when the message is sent in real time. If the sending mode is batch or real-time + batch, the storage is necessary.
The sending event management configuration is configured in a centralized manner and stored in the database, and the event scheduling component can automatically load the configuration information corresponding to the current event message from the database when the event scheduling is started, and automatically start the corresponding processing process according to the configuration information.
TABLE 1
Figure BDA0002357707690000061
Step 200: and if the event message sent by the application system for publishing the event message is received through the corresponding message center, sending the event message to the application system for subscribing the event message according to the configuration information acquired from a receiving configuration table.
Specifically, the message center stores application system information subscribing the event message; the receiving configuration table may be stored in a relational database, such as an Oracle or MySql database; in a specific application example of the present application, the parameters in the transmission configuration table may be as shown in table 2, and some of the parameters in table 2 are described below:
1) the event processing mode comprises the following steps: the main processing modes include real-time processing, batch processing and non-processing, wherein the parameters of the real-time processing are selected for the real-time processing, and the parameters of the batch processing are selected for the batch processing.
2) Event handling class: configuring the automatic scheduling process requires a unique identifier for the program being invoked. The called program is written by the user according to the self business logic.
3) An event message converter: a unique identifier of the message converter is configured. The message converter obtains the message content according to the extraction configuration of the converter, and converts the xml message into a value of Map < String, String > type, wherein: the method comprises the steps of supporting the extraction of stream format contents according to length; content extraction supporting a single delimiter, such as the data "content 1| content 2| content 3"; the method supports the extraction of the layered contents of a plurality of separators, such as data 'Contents 1| Contents 2| Contents 3@ @ Contents 4| Contents 5| Contents 6'; the extraction rules are configured by the user as required.
4) Number of event processing threads: and controlling the size of the automatic scheduling processing thread pool.
5) Batch execution mode: when the batch scheduling mode is selected, the following steps can be specified: a fixed-length time interval execution mode; the batch execution mode is timed daily.
TABLE 2
Figure BDA0002357707690000071
In order to save system memory and improve convenience of calling and processing configuration information, in an embodiment of the present application, the sending configuration table and the receiving configuration table are set in the same scheduling configuration table, and the scheduling configuration table is stored in a target database.
Specifically, the target database may be disposed inside the event scheduling component, or may be stored in a separate server.
Referring to fig. 3, in order to further improve the reliability and efficiency of event scheduling, in an embodiment of the present application, step 100 includes:
step 101: and performing message encapsulation on the event message according to the configuration information acquired from the sending configuration table to obtain a compressed packet corresponding to the event message.
Step 102: and sending the compressed packet to an application system subscribing the event message through a corresponding message center.
Specifically, the message requirement corresponding to the event message is obtained according to the configuration information corresponding to the event message in the sending configuration table, and the fields of the message header, the public domain and the message body are automatically constructed according to the message requirement, wherein the content of the message body is the content of the event message, and the constructed message is the compressed packet. Further, the event scheduling component may store the compressed packet information in a target database according to configuration information in a transmission configuration table.
Referring to fig. 4, to further improve the reliability and efficiency of event scheduling, in an embodiment of the present application, step 200 includes:
step 201: and decompressing the event message according to the configuration information acquired from the receiving configuration table to obtain a decompressed file corresponding to the event message.
Step 202: and sending the decompressed file to an application system subscribed to the event message.
Specifically, the service information in the event message is converted and extracted, and the key information such as the content, the state, the time and the like in the event message is stored in the target database. If the event processing mode corresponding to the event message in the receiving configuration table is real-time processing, the monitoring thread calls an event processing program in an application system subscribing the event message and transmits the converted message serving as an object to the event processing program; and if the event processing mode is batch scheduling processing, taking over the event processing control after the message storage conversion process by a batch daemon thread, and calling the event processing program according to batch scheduling configuration.
In order to improve the flexibility and efficiency of event scheduling, in an embodiment of the present application, step 100 includes:
step 103: and if the event processing type corresponding to the configuration information acquired from the sending configuration table is a batch sending type, storing the event message in a target database.
Step 104: and receiving a batch sending instruction and sending the corresponding event messages of the same event type to an application system subscribing the event messages through a corresponding message center based on the batch sending instruction.
Specifically, when the event processing mode in the sending configuration table corresponding to the event message is the real-time sending mode, the message may not be stored, and the event message is sent to the message center in real time. If transmission failure occurs, retransmission can be immediately carried out, and the number of retransmission is determined according to the number of configuration times. When the processing mode of sending the event is the batch mode, the message must be stored, and the event is called to be sent according to batch configuration subsequently. If transmission failure occurs, retransmission can be immediately carried out, and the number of retransmission is determined according to the number of configuration times. When the event processing mode is real-time + batch mode, the message must be stored, and the event message is sent to the message center in real time. If the transmission fails, the retransmission is not carried out immediately, and the retransmission process is adjusted by using batch scheduling.
In terms of software, in order to improve efficiency and accuracy of event scheduling and further improve consistency of events between different systems, an embodiment of an event scheduling component for all or part of contents in an event scheduling method is provided in the present application, and referring to fig. 5, the event scheduling component specifically includes the following contents:
the configuration module 10 is configured to, if an event message to be published generated by a corresponding target application system is received, send the event message to an application system subscribing to the event message through a corresponding message center according to configuration information acquired from a sending configuration table.
The sending module 20 is configured to send, if an event message sent by an application system that publishes an event message is received through a corresponding message center, the event message to an application system that subscribes to the event message according to configuration information acquired from a receiving configuration table.
Specifically, the sending configuration table and the receiving configuration table are set in the same scheduling configuration table, and the scheduling configuration table is stored in the target database.
In one embodiment of the present application, the configuration module 10 includes:
and the encapsulating unit 11 is configured to perform packet encapsulation on the event message according to the configuration information acquired from the sending configuration table, so as to obtain a compressed packet corresponding to the event message.
And a compressed packet sending unit 12, configured to send the compressed packet to an application system subscribed to the event message through a corresponding message center.
In an embodiment of the present application, the sending module 20 includes:
a decompression unit 21, configured to decompress the event message according to the configuration information obtained from the receiving configuration table, to obtain a decompressed file corresponding to the event message;
a decompressed file sending unit 22, configured to send the decompressed file to an application system subscribed to the event message.
In an embodiment of the present application, the sending module 20 includes:
the storage unit 23 is configured to store the event message in a target database if the event processing type corresponding to the configuration information acquired from the sending configuration table is a batch sending type.
And the batch sending unit 24 is configured to receive a batch sending instruction and send corresponding event messages of the same event type to an application system subscribing to the event message through a corresponding message center based on the batch sending instruction.
The embodiment of the event scheduling component provided in this specification may be specifically configured to execute the processing flow of the embodiment of the event scheduling method, and its functions are not described herein again, and refer to the detailed description of the embodiment of the event scheduling method.
In order to further explain the scheme, the present application further provides a specific application example of an event scheduling method and an event scheduling component, in the specific application example, the event scheduling method is implemented by Java language, a program for implementing an event scheduling function can be packaged into an independent jar package, the jar package can be stored in the event scheduling component for use by an event publisher or a subscriber, the processing modes and flows of sending and receiving events are respectively controlled by respective corresponding event management configurations, and both the receiving event management configuration and the sending event management configuration are centrally configured and stored in a database, and can be implemented by a relational database, such as an Oracle or MySql database. When the event scheduling component is started, the current configuration can be automatically loaded from the database, and the corresponding processing process can be automatically started according to the configuration. The event scheduling method mainly includes two parts of event receiving processing and event sending processing, and is described in detail as follows.
Receive event handling
Referring to fig. 6, for a scenario where a system receives an event message, the event scheduling method can implement control of a receiving full flow of event receiving, event landing, packet building, packet processing, automatic scheduling processing, and thread management by using an event scheduling component as an execution subject, which is specifically described as follows:
in the event-driven architecture, each type of event is assigned a number, and all messages of the type of event use the same number, so that the received event management configuration uses the type of event as the granularity of the configuration. The event scheduling component needs to be started and initialized with the application. The following operations will be performed at initialization:
1) the receive event management configuration is read.
2) A message center client is initiated to create a connection to the message center.
3) And initializing an event monitoring thread pool and an event processing thread pool.
4) And initializing the monitoring thread corresponding to the event according to the configuration.
5) And creating a batch scheduling daemon thread.
Specifically, the event message is monitored and received by the event monitoring thread, the message storage and conversion process is automatically called after the message is received, the service information of the message is converted and extracted, and key information such as the content, the state, the time and the like of the message is stored in the database. And if the real-time processing is configured in the event receiving management, the monitoring thread starts an event processing program of the application component and transmits the converted message serving as an object to the processing program. And if the configuration is batch scheduling processing, taking over the event processing control after the message storage conversion process by a batch daemon thread, and scheduling an event processing program of the application component according to the batch scheduling configuration. After the event handler completes processing, the processing result and the processing state of the message need to be updated according to the actual processing situation.
(II) Transmit event handling
Referring to fig. 7, the management and control of the transmission flow of event transmission, retransmission, event landing, message conversion and automatic scheduling transmission are provided for the scenario of the system transmitting event messages. The event scheduling component can realize the functions of receiving event messages, monitoring and receiving events, storing and converting messages, processing and scheduling in batches, processing and scheduling in real time and the like.
Sending the event management configuration takes a type of event as the granularity of the configuration, and the event scheduling component needs to be started and initialized along with the application. The following operations will be performed at initialization:
1) the send event management configuration is read.
2) A message center client is initiated to create a connection to the message center.
3) And creating a batch sending daemon thread.
Specifically, event sending is initiated by an application component, an application can convert a specified object into an xml format through a common sending interface provided by the component, and technical fields of a message header, a public domain and a message body are automatically established according to the message requirement of an event-driven architecture. After the message is built, the module stores the event message according to the configuration. When the transmission event management is configured to be a real-time transmission mode, the message can be transmitted to the message center in real time without being stored. If transmission failure occurs, retransmission can be immediately carried out, and the number of retransmission is determined according to the number of configuration times. When the event sending management configuration is a batch mode, the message must be stored, and the event sending is called according to the batch configuration subsequently. If transmission failure occurs, retransmission can be immediately carried out, and the number of retransmission is determined according to the number of configuration times. When the transmission event management is configured to be in a real-time + batch mode, the message must be stored, and the event message is transmitted to the message center in real time. If the transmission fails, the retransmission is not carried out immediately, and the retransmission process is adjusted by using batch scheduling.
As can be seen from the above description, the event scheduling method and the event scheduling assembly provided in the embodiments of the present application can improve efficiency and accuracy of event scheduling, further improve consistency of events between different systems, improve automation degree and flexibility of event scheduling, perform event scheduling between systems in real time, and save system memory and maintenance cost.
In terms of hardware, in order to improve efficiency and accuracy of event scheduling and further improve consistency of events between different systems, the present application provides an embodiment of an electronic device for implementing all or part of contents in the event scheduling method, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission among the event scheduling component, the user terminal and other related equipment; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may be implemented with reference to the embodiment for implementing the event scheduling method and the embodiment for implementing the event scheduling apparatus in the embodiments, and the contents thereof are incorporated herein, and repeated details are not repeated.
Fig. 8 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 8, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this FIG. 8 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one or more embodiments of the present application, the event scheduling functionality can be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
step 100: and if receiving the event message to be published generated by the corresponding target application system, sending the event message to the application system subscribing the event message through the corresponding message center according to the configuration information acquired from the sending configuration table.
Step 200: and if the event message sent by the application system for publishing the event message is received through the corresponding message center, sending the event message to the application system for subscribing the event message according to the configuration information acquired from a receiving configuration table.
As can be seen from the above description, the electronic device provided in the embodiments of the present application can improve efficiency and accuracy of event scheduling, thereby improving consistency of events between different systems.
In another embodiment, the event scheduling component may be configured separately from the central processor 9100, for example, the event scheduling component may be configured as a chip connected to the central processor 9100, and the event scheduling function is implemented by the control of the central processor.
As shown in fig. 8, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 8; further, the electronic device 9600 may further include components not shown in fig. 8, which may be referred to in the art.
As shown in fig. 8, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
As can be seen from the above description, the electronic device provided in the embodiments of the present application can improve efficiency and accuracy of event scheduling, so as to improve consistency of events between different systems.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all the steps in the event scheduling method in the foregoing embodiment, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements all the steps in the event scheduling method in the foregoing embodiment, for example, when the processor executes the computer program, implements the following steps:
step 100: and if receiving the event message to be published generated by the corresponding target application system, sending the event message to the application system subscribing the event message through the corresponding message center according to the configuration information acquired from the sending configuration table.
Step 200: and if the event message sent by the application system for publishing the event message is received through the corresponding message center, sending the event message to the application system for subscribing the event message according to the configuration information acquired from a receiving configuration table.
As can be seen from the foregoing description, the computer-readable storage medium provided in the embodiments of the present application can improve efficiency and accuracy of event scheduling, so as to improve consistency of events between different systems.
In the present application, each embodiment of the method is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. Reference is made to the description of the method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the present application are explained by applying specific embodiments in the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. An event scheduling method, comprising:
if receiving an event message to be published generated by a corresponding target application system, sending the event message to an application system subscribing the event message through a corresponding message center according to configuration information acquired from a sending configuration table;
and if the event message sent by the application system for publishing the event message is received through the corresponding message center, sending the event message to the application system for subscribing the event message according to the configuration information acquired from a receiving configuration table.
2. The event scheduling method according to claim 1, wherein the sending the event message to the application system subscribed to the event message via the corresponding message center according to the configuration information obtained from the sending configuration table comprises:
performing message encapsulation on the event message according to the configuration information acquired from the sending configuration table to obtain a compressed packet corresponding to the event message;
and sending the compressed packet to an application system subscribing the event message through a corresponding message center.
3. The event scheduling method of claim 1, wherein the sending the event message to the application system subscribing to the event message according to the configuration information obtained from a receiving configuration table comprises:
decompressing the event message according to the configuration information acquired from the receiving configuration table to obtain a decompressed file corresponding to the event message;
and sending the decompressed file to an application system subscribed to the event message.
4. The event scheduling method according to claim 1, wherein the sending configuration table and the receiving configuration table are provided in the same scheduling configuration table, and the scheduling configuration table is stored in a target database.
5. The event scheduling method according to claim 1, wherein the sending the event message to the application system subscribed to the event message via the corresponding message center according to the configuration information obtained from the sending configuration table comprises:
if the event processing type corresponding to the configuration information acquired from the sending configuration table is a batch sending type, storing the event message in a target database;
and receiving a batch sending instruction and sending the corresponding event messages of the same event type to an application system subscribing the event messages through a corresponding message center based on the batch sending instruction.
6. An event scheduling component, comprising:
the configuration module is used for sending the event message to an application system subscribing the event message through a corresponding message center according to the configuration information acquired from a self-sending configuration table if the event message to be published generated by the corresponding target application system is received;
and the sending module is used for sending the event message to the application system subscribing the event message according to the configuration information acquired from a receiving configuration table if the event message sent by the application system publishing the event message is received through the corresponding message center.
7. The event scheduling component of claim 6, wherein the configuration module comprises:
the packaging unit is used for carrying out message packaging on the event message according to the configuration information acquired from the sending configuration table to obtain a compressed packet corresponding to the event message;
and the compressed packet sending unit is used for sending the compressed packet to an application system subscribed with the event message through the corresponding message center.
8. The event scheduling component of claim 6, wherein the sending module comprises:
the decompression unit is used for decompressing the event message according to the configuration information acquired from the receiving configuration table to obtain a decompressed file corresponding to the event message;
and the decompressed file sending unit is used for sending the decompressed file to an application system subscribed to the event message.
9. The event scheduling component of claim 6 wherein the transmit configuration table and the receive configuration table are provided in the same scheduling configuration table, the scheduling configuration table being stored in the target database.
10. The event scheduling component of claim 6, wherein the sending module comprises:
a storage unit, configured to store the event message in a target database if an event processing type corresponding to the configuration information acquired from the sending configuration table is a batch sending type;
and the batch sending unit is used for receiving the batch sending instruction and sending the corresponding event messages with the same event type to an application system subscribing the event messages through the corresponding message center based on the batch sending instruction.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the event scheduling method of any one of claims 1 to 5 when executing the program.
12. A computer-readable storage medium having computer instructions stored thereon that, when executed, implement the event scheduling method of any of claims 1 to 5.
CN202010012630.6A 2020-01-07 2020-01-07 Event scheduling method and component Active CN111240858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010012630.6A CN111240858B (en) 2020-01-07 2020-01-07 Event scheduling method and component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010012630.6A CN111240858B (en) 2020-01-07 2020-01-07 Event scheduling method and component

Publications (2)

Publication Number Publication Date
CN111240858A true CN111240858A (en) 2020-06-05
CN111240858B CN111240858B (en) 2024-04-26

Family

ID=70864831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010012630.6A Active CN111240858B (en) 2020-01-07 2020-01-07 Event scheduling method and component

Country Status (1)

Country Link
CN (1) CN111240858B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679922A (en) * 2020-06-10 2020-09-18 中国银行股份有限公司 Event-driven message publishing method, device and system
CN114422586A (en) * 2022-01-19 2022-04-29 平安付科技服务有限公司 Event notification method and device, computer equipment and storage medium
CN114760278A (en) * 2020-12-28 2022-07-15 国信君和(北京)科技有限公司 Communication method and device between micro front terminal applications
CN115086400A (en) * 2022-06-20 2022-09-20 平安普惠企业管理有限公司 Message interaction method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468629A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Method and device for transmitting information in batches
US20170317935A1 (en) * 2015-01-23 2017-11-02 Ebay Inc., Processing high volume network data
CN110019045A (en) * 2017-12-29 2019-07-16 北京奇虎科技有限公司 Method and device is landed in log

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468629A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Method and device for transmitting information in batches
US20170317935A1 (en) * 2015-01-23 2017-11-02 Ebay Inc., Processing high volume network data
CN110019045A (en) * 2017-12-29 2019-07-16 北京奇虎科技有限公司 Method and device is landed in log

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679922A (en) * 2020-06-10 2020-09-18 中国银行股份有限公司 Event-driven message publishing method, device and system
CN114760278A (en) * 2020-12-28 2022-07-15 国信君和(北京)科技有限公司 Communication method and device between micro front terminal applications
CN114422586A (en) * 2022-01-19 2022-04-29 平安付科技服务有限公司 Event notification method and device, computer equipment and storage medium
CN114422586B (en) * 2022-01-19 2023-10-27 平安付科技服务有限公司 Event notification method, event notification device, computer equipment and storage medium
CN115086400A (en) * 2022-06-20 2022-09-20 平安普惠企业管理有限公司 Message interaction method and device, electronic equipment and storage medium
CN115086400B (en) * 2022-06-20 2023-11-10 光禹莱特数字科技(上海)有限公司 Message interaction method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111240858B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN111240858B (en) Event scheduling method and component
CN111031058A (en) Websocket-based distributed server cluster interaction method and device
CN110958281B (en) Data transmission method and communication device based on Internet of things
EP3720094A1 (en) Information processing method, apparatus, device and system
CN106254468B (en) A kind of control system and method for intelligent back vision mirror
WO2022104555A1 (en) Mqtt protocol-based communication method and device
CN111338780B (en) Transmission method and device for concurrent files
CN103548315A (en) Method and apparatus for high performance low latency real time notification delivery
CN111445331A (en) Transaction matching method and device
CN110557321B (en) Information transmission method, network equipment and terminal
CN115550354A (en) Data processing method and device and computer readable storage medium
CN112689012A (en) Cross-network proxy communication method and device
CN111510493B (en) Distributed data transmission method and device
CN113055483A (en) Message middleware data processing method, device and system
CN113965628A (en) Message scheduling method, server and storage medium
CN112218034A (en) Video processing method, system, terminal and storage medium
CN114356335A (en) Data processing method, device, equipment and medium
CN112734545A (en) Block chain data sharing method, device and system
CN107835150B (en) Full-media customer service scheduling method and system
CN115834649A (en) Remote procedure calling method, device and system
CN114679436B (en) Session management method, server and computer readable storage medium
CN113014544B (en) Method and device for establishing centerless media link based on webRtc
JP2016081535A (en) Electronic device for internet protocol communications
CN104796458A (en) Information fusion method for Android system
CN114500668A (en) Data transmission method and device, electronic equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20220913

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant