CN115878352B - Event delivery processing method and device based on pre-subscription - Google Patents

Event delivery processing method and device based on pre-subscription Download PDF

Info

Publication number
CN115878352B
CN115878352B CN202310216481.9A CN202310216481A CN115878352B CN 115878352 B CN115878352 B CN 115878352B CN 202310216481 A CN202310216481 A CN 202310216481A CN 115878352 B CN115878352 B CN 115878352B
Authority
CN
China
Prior art keywords
event
current
subscription
service
subset
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.)
Active
Application number
CN202310216481.9A
Other languages
Chinese (zh)
Other versions
CN115878352A (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.)
Shenzhen Ideamake Software Technology Co Ltd
Original Assignee
Shenzhen Ideamake Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ideamake Software Technology Co Ltd filed Critical Shenzhen Ideamake Software Technology Co Ltd
Priority to CN202310216481.9A priority Critical patent/CN115878352B/en
Publication of CN115878352A publication Critical patent/CN115878352A/en
Application granted granted Critical
Publication of CN115878352B publication Critical patent/CN115878352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses an event delivery processing method and device based on pre-subscription, wherein the method is applied to an event center server of a marketing cloud system and comprises the following steps: receiving a plurality of events sent by a service server, and performing data processing on the plurality of events to obtain an event list; updating the historical subscription event set according to the event list to obtain a current subscription event set; receiving a current event sent by a service server, and performing data processing on the current event to obtain a current subscription identifier corresponding to the current event; according to the current subscription identification, matching the current event with the current subscription event set, if the current event belongs to a target event subset in a plurality of event subsets, delivering the current event through an event application service corresponding to the target event subset to obtain a processing result, and sending the processing result to the terminal equipment. By adopting the embodiment of the application, the event can be delivered to the corresponding subscription service, and the intelligence and the stability of the marketing cloud system are improved.

Description

Event delivery processing method and device based on pre-subscription
Technical Field
The invention relates to the technical field of general data processing in the Internet industry, in particular to an event delivery processing method and device based on pre-subscription.
Background
Along with the rapid development of internet technology, the intelligent and digital marketing mode can improve the working efficiency, reduce the cost of people and bring good interactive experience to users, so that the intelligent and digital marketing mode is widely applied. In the marketing cloud system, a user can perform various operations through the terminal equipment, correspondingly, a business server in the marketing cloud system can generate various events according to the user operations, the events are delivered to an event center server in the marketing cloud system, and after the events are checked to be qualified by the event center server, the events are delivered to corresponding subscription services, so that results corresponding to the operations performed by the user at the terminal equipment are fed back to the user. Therefore, how to deliver events to corresponding subscription services is a problem that needs to be solved at present.
Disclosure of Invention
The technical problem to be solved by the embodiment of the application is to provide the event delivery processing method and device based on pre-subscription, so that the event is delivered to the corresponding subscription service, and the intelligence and stability of the marketing cloud system are improved.
In a first aspect, an embodiment of the present invention provides an event delivery processing method based on pre-subscription, which is applied to an event center server of a marketing cloud system, where the marketing cloud system includes a service server, the event center server and a terminal device, and the event center server includes an event verification service, an event center service, the event application service and an SDK component, and the method includes:
the SDK component receives a plurality of events sent by the service server, processes data of the plurality of events to obtain an event list, wherein the event list comprises the plurality of events and subscription identifiers corresponding to each event in the plurality of events, and the subscription identifiers are used for marking event application services corresponding to the plurality of events;
the event center service receives the event list sent by the SDK component, updates a historical subscription event set according to the event list to obtain a current subscription event set, wherein the current subscription event set comprises a plurality of event subsets, each event subset in the event subsets corresponds to an event application service, and each event subset in the event subsets comprises an event subscribed by the event application service corresponding to each event subset;
The SDK component receives a current event sent by the event verification service, performs data processing on the current event to obtain a current subscription identifier corresponding to the current event, and the current subscription identifier is used for marking event application service corresponding to the current event;
the event center service receives the current event and a current subscription identifier corresponding to the current event sent by the SDK component, matches the current event with the current subscription event set according to the current subscription identifier, determines whether the current event belongs to a target event subset in the event subsets of the current subscription event set, and determines that an event application service corresponding to the target event subset processes the current event if the current event belongs to the target event subset in the event subsets;
the event application service corresponding to the target event subset receives the current event sent by the event center service, and delivers the current event to obtain a processing result;
and the event application service corresponding to the target event subset sends the processing result to the terminal equipment.
In a marketing cloud system, an event center server receives a plurality of events sent by a service server, performs data processing on the plurality of events to obtain an event list, updates a historical subscription event set according to the event list to obtain a current subscription event set, receives a current event sent by the service server, performs data processing on the current event to obtain a current subscription identifier corresponding to the current event, matches the current event with the current subscription event set according to the current subscription identifier, and delivers the current event to obtain a processing result through an event application service corresponding to a target event subset if the current event belongs to the target event subset in the plurality of event subsets, and then sends the processing result to terminal equipment. The event delivery processing mechanism based on pre-subscription is used for delivering the current event to the corresponding subscription service, so that a result corresponding to the operation performed by the user at the terminal equipment is fed back to the user, and the intelligence and the stability of the marketing cloud system can be improved.
In one possible design, the SDK component receives the plurality of events sent by the service server, the plurality of events further including a declarative grammar for each of the plurality of events; the SDK component obtains the subscription identification corresponding to each event in the events by scanning the declarative grammar of each event in the events, and sends the events and the subscription identification corresponding to each event in the events to the event center service. The SDK component obtains the subscription identification corresponding to each event in the plurality of events by scanning the declarative grammar, which is beneficial to determining the event application service corresponding to each event in the plurality of events.
In another possible design, the event center service receives the event list sent by the SDK component, and determines, according to a subscription identifier in the event list, whether the historical subscription event set includes an event in the event list; if the historical subscription event set does not contain the first event in the event list, the event center service stores the first event in an event subset corresponding to the subscription identification of the first event to obtain the current subscription event set. The event center service determines the corresponding relation between a plurality of events in the event list and event subsets in the historical subscription event set according to the subscription identification in the event list, and is used for judging whether the event subsets needing to be updated exist in the historical subscription event set or not, and updating the event subsets needing to be updated in the historical subscription event set.
In another possible design, the event center service determines the historical subscribed event set as the current subscribed event set if the historical subscribed event set includes all events in the event list. The event center service determines that each event in the event list has a corresponding relation with an event subset in the historical subscription event set according to the subscription identification in the event list, and is used for judging that the event subset needing to be updated does not exist in the historical subscription event set.
In another possible design, the event verification service receives the current event sent by the business server, the current event including an event structure of the current event and a declarative syntax of the current event; the event verification service performs validity verification on the event structure body of the current event, and if the verification is qualified, the current event is sent to the SDK component; the SDK component receives the current event sent by the event verification service, scans the declarative grammar of the current event to obtain a current subscription identifier corresponding to the current event, and sends the current event and the current subscription identifier corresponding to the current event to the event center service. The event verification service firstly performs validity verification on the event structure body of the current event, and if the event structure body is qualified, the SDK component scans the declarative grammar of the current event to obtain the current subscription identification corresponding to the current event, thereby being beneficial to determining the validity of the current event and the event application service corresponding to the current event.
In another possible design, the event center service receives the current event and a current subscription identifier corresponding to the current event sent by the SDK component; the event center service matches the current event with the current subscription event set according to the current subscription identifier to obtain an event subset with a subscription relation with the current event in the current subscription event set, if the event subset with the subscription relation with the current event is the target event subset in the event subsets, the current event belongs to the target event subset, and the event application service corresponding to the target event subset is determined to process the current event; and the event center service sends the current event to an event application service corresponding to the target event subset. The event center service matches the current event with the current subscription event set according to the current subscription identification, and determines whether the current event belongs to a target event subset in the current subscription event set so as to determine whether to push the current event to an event application service corresponding to the target event subset.
In another possible design, the event application service corresponding to the target event subset receives the current event sent by the event center service; and the event application service corresponding to the target event subset calls the target service code corresponding to the current event through a reflection technology, and the processing result is obtained by executing the target service code and is used for responding to the operation executed by the user at the terminal equipment. And the event application service corresponding to the target event subset obtains a processing result by executing the target service code corresponding to the current event, so that the result corresponding to the operation performed by the user at the terminal equipment is fed back to the user.
In a second aspect, an embodiment of the present invention provides an event delivery processing apparatus based on pre-subscription, including:
the SDK component is used for receiving a plurality of events sent by the business server, carrying out data processing on the plurality of events to obtain an event list, wherein the event list comprises the plurality of events and subscription identifiers corresponding to each event in the plurality of events, and the subscription identifiers are used for marking event application services corresponding to the plurality of events;
the event center service is used for receiving the event list sent by the SDK component, updating a historical subscription event set according to the event list to obtain a current subscription event set, wherein the current subscription event set comprises a plurality of event subsets, each event subset in the event subsets corresponds to one event application service, and each event subset in the event subsets comprises an event subscribed by the event application service corresponding to each event subset;
The SDK component is further used for receiving a current event sent by an event verification service, carrying out data processing on the current event to obtain a current subscription identifier corresponding to the current event, and the current subscription identifier is used for marking an event application service corresponding to the current event;
the event center service is further configured to receive the current event and a current subscription identifier corresponding to the current event sent by the SDK component, match the current event with the current subscription event set according to the current subscription identifier, determine whether the current event belongs to a target event subset of the multiple event subsets of the current subscription event set, and if the current event belongs to the target event subset of the multiple event subsets, determine that an event application service corresponding to the target event subset processes the current event;
the event application service is configured to receive the current event sent by the event center service through the event application service corresponding to the target event subset, and deliver the current event to obtain a processing result;
the event application service is further configured to send the processing result to a terminal device through the event application service corresponding to the target event subset.
In one possible design, the SDK component is further configured to receive the plurality of events sent by the service server, where the plurality of events further includes a declarative syntax for each of the plurality of events; and obtaining subscription identifiers corresponding to each event in the plurality of events by scanning the declarative grammar of each event in the plurality of events, and sending the plurality of events and the subscription identifiers corresponding to each event in the plurality of events to the event center service.
In another possible design, the event center service is further configured to receive the event list sent by the SDK component, and determine, according to a subscription identifier in the event list, whether the historical subscription event set includes an event in the event list; if the historical subscription event set does not contain the first event in the event list, the event center service stores the first event in an event subset corresponding to the subscription identifier of the first event to obtain the current subscription event set; and if the historical subscription event set contains all the events in the event list, the event center service determines the historical subscription event set as the current subscription event set.
In another possible design, the event verification service is configured to receive the current event sent by the service server, where the current event includes an event structure of the current event and a declarative grammar of the current event, perform validity verification on the event structure of the current event, and send the current event to the SDK component if the verification is qualified;
in another possible design, the SDK component is further configured to receive the current event sent by the event verification service, scan a declarative grammar of the current event to obtain a current subscription identifier corresponding to the current event, and send the current event and the current subscription identifier corresponding to the current event to the event center service.
In another possible design, the event center service is further configured to receive the current event sent by the SDK component and a current subscription identifier corresponding to the current event; matching the current subscription identifier with event application services corresponding to each event subset in the current subscription event set to obtain an event subset with a subscription relation with the current event in the current subscription event set, and if the event subset with the subscription relation with the current event is the target event subset in the event subsets, determining that the current event belongs to the target event subset and determining that the event application service corresponding to the target event subset processes the current event.
In another possible design, the event center service is further configured to delete the current event if the current event does not belong to the target event subset of the plurality of event subsets.
In another possible design, the event application service is configured to receive, through an event application service corresponding to the target event subset, the current event sent by the event center service; and the event application service corresponding to the target event subset calls the target service code corresponding to the current event through a reflection technology, and the processing result is obtained by executing the target service code and is used for responding to the operation executed by the user at the terminal equipment.
The operations and beneficial effects executed by the pre-subscribed event delivery processing device may refer to the methods and beneficial effects described in the first aspect, and the repetition is not repeated.
In a third aspect, an embodiment of the present application provides an event delivery processing system based on pre-subscription, including a terminal device, a service server, and an event center server, where the terminal device is used for a user to perform various operations through application software or an applet; the service server is used for responding to the operation of the user at the terminal equipment and generating an event; the event center server is used for receiving a plurality of events sent by the service server, carrying out data processing on the plurality of events to obtain an event list, updating a historical subscription event set according to the event list to obtain a current subscription event set, receiving the current event sent by the service server, carrying out data processing on the current event to obtain a current subscription identifier corresponding to the current event, matching the current event with the current subscription event set according to the current subscription identifier, and if the current event belongs to a target event subset in a plurality of event subsets, delivering the current event through an event application service corresponding to the target event subset to obtain a processing result, and sending the processing result to the terminal equipment. In the event delivery processing system based on pre-subscription, the current event is delivered to the corresponding subscription service, so that the result corresponding to the operation performed by the user at the terminal equipment is fed back to the user, and the intelligence and the stability of the marketing cloud system can be improved.
In a fourth aspect, an embodiment of the present application provides a pre-subscription-based event delivery processing system, where the pre-subscription-based event delivery processing system includes a processor, a memory, and a communication bus, where the memory is configured to store computer-executable instructions; the processor is configured to execute computer-executable instructions stored in the memory to cause the pre-subscription based event delivery processing system to perform the method according to any one of the first aspects; the communication bus is used for realizing connection communication between the processor and the memory.
In a fifth aspect, embodiments of the present application provide a server comprising a processor, a memory, and a communication bus, wherein the memory is configured to store computer-executable instructions; the processor is configured to execute computer-executable instructions stored in the memory to cause the pre-subscription based event delivery processing system to perform the method according to any one of the first aspects; the communication bus is used for realizing connection communication between the processor and the memory.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium for storing a computer program which, when executed, causes the method according to any one of the first aspects to be implemented.
In a seventh aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed, causes the method according to any one of the first aspects to be carried out.
Drawings
In order to more clearly describe the embodiments of the present invention or the technical solutions in the background art, the following description will describe the drawings that are required to be used in the embodiments of the present invention or the background art.
FIG. 1 is a schematic diagram of an event delivery processing system based on pre-subscription according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an event delivery processing method based on pre-subscription according to an embodiment of the present application;
FIG. 3 is an exemplary diagram of an event delivery processing system using pre-subscription based services provided by embodiments of the present application;
fig. 4 is a schematic structural diagram of an event delivery processing device based on pre-subscription according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
Some of the terms referred to in this application are described below to facilitate understanding by those skilled in the art.
1. The event is used for solving the problem that data cannot be directly accessed and transmitted through a memory due to technical decoupling in a micro-service system, and is a designed technical means for data transmission.
2. Message Queue (MQ), a means of cross-process communication, provides a communication protocol for asynchronous communications that can be used simply as a technique for storing and transmitting events.
Embodiments of the present application are described below with reference to the accompanying drawings in the embodiments of the present application.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an event delivery processing system based on pre-subscription according to an embodiment of the present application. The pre-subscription-based event delivery processing system includes a terminal device 101, a service server 102, and an event center server 103. Wherein the detailed description of each module is as follows.
A terminal device 101 for a user to perform various operations through application software or applets.
The service server 102 is configured to generate an event in response to a user operation of the terminal device 101.
The event center server 103 is configured to receive a plurality of events sent by the service server 102, and perform data processing on the plurality of events to obtain an event list; updating the historical subscription event set according to the event list to obtain a current subscription event set; receiving a current event sent by a service server 102, and performing data processing on the current event to obtain a current subscription identifier corresponding to the current event; and matching the current event with the current subscription event set according to the current subscription identification, if the current event belongs to a target event subset in a plurality of event subsets, delivering the current event through an event application service corresponding to the target event subset to obtain a processing result, and sending the processing result to the terminal equipment 101.
Specifically, the terminal device 101 is a device having processing capability and data transmission/reception capability. The user performs various operations using the terminal device 101, and the terminal device 101 may be a computer, a notebook computer, a tablet computer, a palm computer, a desktop computer, a mobile phone, an Ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a netbook, a personal digital assistant (Personal Digital Assistant, PDA), or the like, and the device type of the terminal device is not limited in the embodiment of the present application.
The event center server 103 includes a memory, which may include a volatile memory such as a nonvolatile dynamic random access memory (nonvolatile random access memory, NVRAM), a phase change RAM (PRAM), a Magnetoresistive RAM (MRAM), etc., and may also include a nonvolatile memory such as at least one magnetic disk storage device, an electrically erasable programmable read only memory (electrically erasable programmable read-only memory), a flash memory device such as a flash memory (NOR flash memory) or a flash memory (NAND flash memory), a semiconductor device such as a Solid State Disk (SSD), etc.
The business server 102 and the event center server 103 may be independent physical servers, may be a server cluster or a distributed system formed by a plurality of physical servers, and may also be cloud servers for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), basic cloud computing services such as big data and artificial intelligence platforms. The event center server 103 provides management or distribution services of events for the service server 102, and provides delivery processing mechanisms for pre-subscribed events.
The terminal device 101, the service server 102, and the event center server 103 may establish a communication connection through a wired network or may establish a communication connection through a wireless network.
Alternatively, the event center server 103 may undertake primary computing work and the business server 102 may undertake secondary computing work; alternatively, the event center server 103 and the service server 102 respectively and separately undertake delivery work; alternatively, a distributed computing architecture is used for collaborative computing between the event center server 103 and the service server 102.
It should be noted that, the event delivery processing system based on pre-subscription may be a system that interacts with the user, and this system may be a software system, a hardware system, or a system that combines software and hardware, which is not limited in this application specifically. It should be further noted that fig. 1 is merely an exemplary schematic structural diagram of the pre-subscription-based event delivery processing system, and the pre-subscription-based event delivery processing system of fig. 1 may be transformed according to specific situations in practical applications.
As shown in fig. 2, fig. 2 is a flow chart of a pre-subscription-based event delivery processing method according to an embodiment of the present application, where the method includes, but is not limited to, the following steps:
step S201: the service server transmits a plurality of events to the event center server.
Specifically, the operation and maintenance personnel marks each event in the plurality of events through the declarative grammar at the operation and maintenance end, and the service server sends the plurality of events to the event center server.
It should be noted that, the basic architecture of the marketing cloud system includes a user's terminal device, a service server, an event center server and an operation and maintenance end. The user can perform various operations through application software or applets of the terminal equipment; the business server can set a plurality of business services, and the business services can generate events after responding to a series of operations of the user at the terminal equipment; the event center server is used for managing and distributing events generated by business services in the business server, including event verification services, event center services and event application services; the operation and maintenance end is used for maintaining the normal operation of the marketing cloud system and managing and tracing the event through accessing the event center server.
In the embodiment of the application, a user can participate in lottery activities through a mobile phone applet, and in response to user operation, a prize sending event is generated by an activity participation service of a service server, a dedicated subscription service aiming at the prize sending event in event application service of an event center server is a short message notification service, an operation and maintenance person marks a plurality of events subscribed by the short message notification service in a service code of the short message notification service through declarative grammar at an operation and maintenance end, and the activity participation service of the service server sends the events to the event center server.
In one embodiment, a user may also shop online through application software or applet of a mobile phone, and in response to user operation, the commodity circulation service of the service server generates a shipping notification event, a dedicated subscription service for the shipping notification event in event application services of the event center server is a short message notification service, an operation and maintenance person marks a plurality of events subscribed by the short message notification service in a service code of the short message notification service through declarative grammar at the operation and maintenance end, and the commodity circulation service of the service server sends the plurality of events to the event center server.
In another embodiment, the user may also perform a site reservation operation through application software or applet of the mobile phone, and in response to the user operation, the "online reservation service" of the service server generates a "reservation notification event", a dedicated subscription service for the "reservation notification event" in the event application service of the event center server is a "phone notification service", the operation and maintenance personnel marks, at the operation and maintenance end, a plurality of events subscribed by the "phone notification service" in a service code of the "online reservation service" through a declaration syntax, and the "active reservation service" of the service server sends the plurality of events to the event center server.
Step S202: and the event center server performs data processing on the plurality of events to obtain an event list.
The event list comprises a plurality of events and subscription identifiers corresponding to each event in the plurality of events, and the subscription identifiers are used for marking event application services corresponding to the plurality of events.
Specifically, the event center server further comprises an SDK component, the SDK component receives a plurality of events sent by the service server, an event list is obtained by scanning declarative grammar of each event in the plurality of events, the event list comprises the plurality of events and subscription identifiers corresponding to each event in the plurality of events, and the subscription identifiers are used for marking event application services corresponding to each event.
In the embodiment of the present application, the SDK component receives the plurality of events sent by the "active participation service" of the service server, and scans the declarative grammar of each event in the plurality of events to obtain an event list subscribed by the "short message notification service".
In one embodiment, if the SDK component receives multiple events sent by the "online subscription service" of the business server, the list of events subscribed to by the "telephone notification service" is obtained by scanning the declarative syntax of each event.
Step S203: and the event center server updates the historical subscription event set according to the event list to obtain a current subscription event set.
The current subscription event set comprises a plurality of event subsets, each event subset in the event subsets corresponds to an event application service, and each event subset in the event subsets comprises an event subscribed by the event application service corresponding to each event subset.
Specifically, the SDK component sends an event list to the event center service, the event center service determines whether the historical subscription event set includes events in the event list according to subscription identifiers in the event list, if the historical subscription event set does not include a first event in the event list, the event center service stores the first event in an event subset corresponding to the subscription identifier of the first event to obtain a current subscription event set, and if the historical subscription event set includes all events in the event list, the event center service determines the historical subscription event set as the current subscription event set.
In the embodiment of the present application, the SDK component sends an event list subscribed by a "short message notification service" to an event center service, where the event center service determines whether the event subset corresponding to the "short message notification service" needs to be updated by querying an event subset corresponding to the "short message notification service" in a history subscription event set, if the event subset corresponding to the "short message notification service" does not include a first event in the event list, the event center service stores the first event in the event subset corresponding to the "short message notification service" to obtain a current subscription event set, and if the event subset corresponding to the "short message notification service" includes all events in the event list, the event center service determines the history subscription event set as the current subscription event set.
In one embodiment, the SDK component sends an event list subscribed by a "phone notification service" to an event center service, where the event center service updates an event subset corresponding to the "phone notification service" in a historical subscribed event set according to the event list, and when the event subset corresponding to the "phone notification service" does not include one or more events in the event list, the one or more events are stored in the event subset corresponding to the "phone notification service" to obtain a current subscribed event set.
Step S204: the service server sends the current event to the event center server.
Specifically, the service server sends a current event to an event verification service of the event center server through a message queue, wherein the current event comprises an event structure body of the current event and a declarative grammar of the current event.
Step S205: and the event center server performs data processing on the current event to obtain a current subscription identifier corresponding to the current event.
The current subscription identifier is used for marking event application services corresponding to the current event.
Specifically, the event verification service performs validity verification on an event structure of the current event, if the event verification service is qualified, the event verification service sends the current event to the SDK component, the SDK component receives the current event sent by the event verification service, and the current subscription identifier corresponding to the current event is obtained by scanning the declarative grammar of the current event, and the SDK component sends the current event and the current subscription identifier corresponding to the current event to the event center service.
Step S206: the event center server determines whether the current event belongs to a target event subset of a plurality of event subsets of the current subscription event set according to the current subscription identification.
Specifically, the event center service matches the current subscription identifier with event application services corresponding to each event subset in the current subscription event set to obtain an event subset having a subscription relationship with the current event in the current subscription event set, if the event subset having the subscription relationship with the current event is a target event subset in a plurality of event subsets, the current event belongs to the target event subset, and it is determined that the event application services corresponding to the target event subset process the current event.
In the embodiment of the present application, the current subscription identifier is "short message notification service", and the event center service searches for an event subset having a subscription relationship with the current event from the current subscription event set, which is an event subset corresponding to the "short message notification service", and because the event subset corresponding to the "short message notification service" and the target event subset are the same event subset, the event center service sends the current event to the "short message notification service" through the message queue.
Optionally, if the current subscription identifier is "phone notification service", the event subset having a subscription relationship with the current event in the current subscription event set is an event subset corresponding to "phone notification service", and since the target event subset is an event subset corresponding to "short message notification service", it is determined that the event subset corresponding to "phone notification service" is not the target event subset, and the event center service deletes the current event.
Step S207: if the current event belongs to a target event subset in a plurality of event subsets, the event center server delivers the current event to obtain a processing result.
Specifically, if the current event belongs to a target event subset of the plurality of event subsets, determining that an event application service corresponding to the target event subset processes the current event, wherein the event application service corresponding to the target event subset receives the current event sent by the event center service, the event application service corresponding to the target event subset calls a target service code corresponding to the current event through a reflection technology, and a processing result is obtained through executing the target service code and is used for responding to an operation executed by a user at the terminal equipment.
In this embodiment of the present application, after the "short message notification service" receives the current event sent by the event center service, the "short message notification service" determines that the current event is a subscription event by searching the service codes, invokes the target service code (including checksum sending) corresponding to the current event by using the reflection technology, and then executes the target service code until the execution result is that the processing is successful, so as to obtain the processing result.
In one embodiment, the event application service corresponding to the target event subset is a "phone notification service", and after the "phone notification service" receives the current event sent by the event center service, the "phone notification service" determines that the current event is a subscription event by searching the service code marked by the operation and maintenance end, invokes the target service code (including dialing and calling) corresponding to the current event by using the reflection technology, and then executes the target service code until the execution result is successful, thereby obtaining the processing result.
Step S208: and the event center server sends the processing result to the terminal equipment.
In the embodiment of the application, the short message notification service sends a processing result to the terminal equipment of the user so as to realize the service effect that the short message is sent to the mobile phone of the user and the user gets the prize, and feeds back a successful notification message to the event center service for data statistics analysis of the event center service.
In one embodiment, a user performs online shopping through application software or a applet of the mobile phone, and an event application service corresponding to the target event subset is a short message notification service, so that the short message notification service sends a processing result to the mobile phone of the user to realize a service effect that a short message is sent to the mobile phone of the user and the user is informed of commodity delivery.
In another embodiment, the user performs the site reservation operation through the application software or applet of the mobile phone, and the event application service corresponding to the target event subset is a "phone notification service", so that the "phone notification service" sends a processing result to the mobile phone of the user, so as to realize the business effect of notifying the user of the specific reservation time of the site reservation through the phone.
In another embodiment, as shown in fig. 3, fig. 3 is an exemplary diagram provided in the embodiment of the present application, where an event center server includes an event verification service, an SDK component, an event center service, and an event application service, and a specific procedure of the event center server for delivering a current event includes: the SDK component obtains an event list by scanning the declarative grammar of each event in the plurality of events, and then sends the event list to the event center service; the event center service updates the historical subscription event set according to the event list to obtain a current subscription event set; the event verification service performs validity verification on the event structure of the current event, and if the verification is qualified, the event verification service sends the current event to the SDK component; the SDK component obtains a current subscription identifier corresponding to the current event by scanning the declarative grammar of the current event, and the SDK component sends the current event and the current subscription identifier corresponding to the current event to the event center service; the event center service determines whether the current event belongs to a target event subset in a plurality of event subsets of the current subscription event set according to the current subscription identification, if the current event belongs to the target event subset in the plurality of event subsets, the event center service delivers the current event through the event application service corresponding to the target event subset to obtain a processing result, and if the current event does not belong to the target event subset in the plurality of event subsets, the event center service deletes the current event.
In the embodiment of the application, the current event is delivered to the corresponding subscription service based on the pre-subscribed event delivery processing mechanism, so that the result corresponding to the operation performed by the user at the terminal equipment is fed back to the user, and the intelligence and the stability of the marketing cloud system can be improved.
The foregoing details of the method of embodiments of the present application and the following description of the apparatus provided by embodiments of the present application.
As shown in fig. 4, fig. 4 is a schematic structural diagram of an event delivery processing device based on pre-subscription, where the event delivery processing device based on pre-subscription includes an SDK component 401, an event center service 402, an event verification service 403, and an event application service 404 according to an embodiment of the present application. Among them, the detailed description of each unit is as follows.
The SDK component 401 is configured to receive a plurality of events sent by the service server, and perform data processing on the plurality of events to obtain an event list.
The event list comprises a plurality of events and subscription identifications corresponding to the events, and the subscription identifications are used for labeling event application services corresponding to the events.
Optionally, the SDK component 401 is further configured to scan a declarative grammar of each event in the plurality of events to obtain a subscription identifier corresponding to each event in the plurality of events.
The event center service 402 is further configured to update the historical subscription event set according to the event list to obtain a current subscription event set, where the current subscription event set includes a plurality of event subsets, each event subset in the plurality of event subsets corresponds to an event application service, and each event subset in the plurality of event subsets includes an event subscribed by the event application service corresponding to each event subset.
Optionally, the event center service 402 is further configured to determine, according to the subscription identifier in the event list, whether the historical subscription event set includes an event in the event list; if the historical subscription event set does not contain the first event in the event list, the first event is stored in an event subset corresponding to the subscription identification of the first event, and the current subscription event set is obtained; and if the historical subscription event set contains all the events in the event list, determining the historical subscription event set as the current subscription event set.
An event checking service 403, configured to receive a current event sent by the service server.
Wherein the current event includes an event structure of the current event and a declarative syntax of the current event.
The event verification service 403 is further configured to perform validity verification on the event structure of the current event, and if the verification is qualified, send the current event to the SDK component 401.
The SDK component 401 is further configured to receive a current event sent by the event verification service 403, perform data processing on the current event to obtain a current subscription identifier corresponding to the current event, and send the current event and the current subscription identifier corresponding to the current event to the event center service 402, where the current subscription identifier is used for marking an event application service corresponding to the current event.
The event center service 402 is further configured to match the current event with the current subscription event set according to the current subscription identifier, determine whether the current event belongs to a target event subset of a plurality of event subsets of the current subscription event set, and if the current event belongs to the target event subset of the plurality of event subsets, determine that an event application service corresponding to the target event subset processes the current event.
Optionally, the event center service 402 is further configured to match the current subscription identifier with an event application service corresponding to each event subset in the current subscription event set, obtain an event subset in the current subscription event set having a subscription relationship with the current event, and if the event subset having the subscription relationship with the current event is a target event subset in the plurality of event subsets, determine that the current event belongs to the target event subset, and determine that the event application service corresponding to the target event subset processes the current event.
Optionally, the event center service 402 is further configured to delete the current event if the current event does not belong to a target event subset of the plurality of event subsets.
The event application service 404 is configured to receive, through an event application service corresponding to the target event subset, a current event sent by the event center service, and deliver the current event to obtain a processing result.
Optionally, the event application service 404 is further configured to receive, through the event application service corresponding to the target event subset, the current event sent by the event center service 402, call, through a reflection technology, a target service code corresponding to the current event, and execute the target service code to obtain a processing result, where the processing result is used to respond to an operation performed by the user at the terminal device.
The event application service 404 is further configured to send a processing result to the terminal device through the event application service corresponding to the target event subset.
It should be noted that the SDK component 401, the event center service 402, the event verification service 403, and the event application service 404 described above are used to perform the actions or steps performed by the event center server 103 in the above method embodiment. The implementation of the respective modules may also correspond to the respective description of the method embodiment shown in fig. 2, performing the methods and functions performed by the event center server 103 in the above embodiments.
The foregoing details the pre-subscription-based event delivery processing system provided in the present application, and how to implement the pre-subscription-based event delivery processing procedure using the system, and the deployment manner of the pre-subscription-based event delivery processing system is described below with reference to fig. 5.
As shown in fig. 5, fig. 5 is a schematic structural diagram of a server according to an embodiment of the present application, where the server includes a processor 501, a memory 502, and a transceiver 503. The processor 501, the memory 502 and the transceiver 503 may communicate with each other through a communication bus 504, and transfer instructions and/or data signals, the memory 502 is used for storing a computer program, and the processor 501 is used for calling and running the computer program from the memory 502 to control the transceiver 503 to send and receive signals.
The processor 501 may be combined with the memory 502 as a processing means, and the processor 501 is configured to execute the program code stored in the memory 502 to implement the functions described above. In particular implementations, the memory 502 may also be integrated within the processor 501 or separate from the processor 501.
The transceiver 503 may also be referred to as a transceiver unit or a transceiver module. The transceiver 503 may include a receiver (or receiver, receiving circuitry) and a transmitter (or transmitter, transmitting circuitry). Wherein the receiver is for receiving signals and the transmitter is for transmitting signals.
It should be appreciated that the server shown in FIG. 5 is capable of implementing the various processes involved in the pre-subscription based event delivery processing system in the method embodiment shown in FIG. 2. The operations and/or functions of the respective modules in the server are respectively for implementing the corresponding flows in the above-mentioned method embodiments. Reference is specifically made to the description of the above method embodiments, and detailed descriptions are omitted here as appropriate to avoid redundancy.
The processor 501 may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or execute the various exemplary modules described in connection with the present disclosure. The processor 501 may also be a combination that implements computing functionality, such as a combination comprising one or more microprocessors, a digital signal processor and a microprocessor, or the like. Communication bus 504 may be a peripheral component interconnect standard PCI bus or an extended industry standard architecture EISA bus or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus. Communication bus 504 is used to enable connected communications between these components. The memory 502 in the embodiment of the present application may be any of the aforementioned various types of memories. Optionally, the memory 502 may also be at least one memory device located remotely from the aforementioned processor 501. Optionally, a set of computer program code or configuration information may also be stored in the memory 502. Optionally, the processor 501 may also execute a program stored in the memory 502. The transceiver 503 is used to communicate instructions or data with other components. The processor may cooperate with the memory and transceiver to perform any of the methods and functions of the pre-subscribed event delivery processing system of the embodiments of the application described above.
According to the method provided by the embodiment of the application, the application further provides a computer program product, which comprises: a computer program which, when run on a computer, causes the computer to perform the method of any of the embodiments shown in fig. 2 or 3.
According to the method provided in the embodiments of the present application, there is further provided a computer readable medium storing a computer program, which when run on a computer causes the computer to perform the method of any one of the embodiments shown in fig. 2 or 3.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The readable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., SSD), etc.
The term "plurality" as used in the embodiments herein refers to two or more.
The first, second, etc. descriptions in the embodiments of the present application are only used for illustrating and distinguishing the description objects, and no order division is made, nor is the number of the description objects in the embodiments of the present application specified, and no limitation in the embodiments of the present application should be construed.
The above embodiments are further described in detail for the purposes, technical solutions and advantageous effects of the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims (5)

1. An event delivery processing method based on pre-subscription is characterized by being applied to an event center server of a marketing cloud system, wherein the marketing cloud system comprises a business server, the event center server and terminal equipment, the event center server comprises an event verification service, an event center service, an event application service and an SDK component, and the method comprises the following steps:
the SDK component receives a plurality of events sent by the service server, processes data of the plurality of events to obtain an event list, wherein the event list comprises the plurality of events and subscription identifiers corresponding to each event in the plurality of events, and the subscription identifiers are used for marking event application services corresponding to the plurality of events;
The event center service receives the event list sent by the SDK component, and determines whether a historical subscription event set contains events in the event list according to the subscription identification in the event list;
if the historical subscription event set does not contain the first event in the event list, the event center service stores the first event in an event subset corresponding to the subscription identifier of the first event to obtain a current subscription event set, wherein the current subscription event set comprises a plurality of event subsets, each event subset in the plurality of event subsets corresponds to an event application service, and each event subset in the plurality of event subsets comprises an event subscribed by the event application service corresponding to each event subset;
if the historical subscription event set contains all the events in the event list, the event center service determines the historical subscription event set as the current subscription event set;
the event verification service receives a current event sent by the service server, wherein the current event comprises an event structure body of the current event and a declarative grammar of the current event, performs validity verification on the event structure body of the current event, and sends the current event to the SDK component if the verification is qualified;
The SDK component receives the current event sent by the event verification service, scans declarative grammar of the current event to obtain a current subscription identifier corresponding to the current event, and sends the current event and the current subscription identifier corresponding to the current event to the event center service, wherein the current subscription identifier is used for marking event application service corresponding to the current event;
the event center service receives the current event and a current subscription identifier corresponding to the current event sent by the SDK component, matches the current event with the current subscription event set according to the current subscription identifier, determines whether the current event belongs to a target event subset in the event subsets of the current subscription event set, and determines that an event application service corresponding to the target event subset processes the current event if the current event belongs to the target event subset in the event subsets;
the event application service corresponding to the target event subset receives the current event sent by the event center service, and delivers the current event to obtain a processing result;
And the event application service corresponding to the target event subset sends the processing result to the terminal equipment.
2. The method of claim 1, wherein the event center service receives the current event sent by the SDK component and a current subscription identifier corresponding to the current event, matches the current event with the current subscription event set according to the current subscription identifier, determines whether the current event belongs to a target event subset of the plurality of event subsets of the current subscription event set, and if the current event belongs to the target event subset of the plurality of event subsets, determines that an event application service corresponding to the target event subset processes the current event, comprising:
the event center service receives the current event and a current subscription identifier corresponding to the current event, which are sent by the SDK component;
the event center service matches the current subscription identifier with event application services corresponding to each event subset in the current subscription event set to obtain an event subset with a subscription relationship with the current event in the current subscription event set, and if the event subset with the subscription relationship with the current event is the target event subset in the event subsets, the current event belongs to the target event subset, and the event application services corresponding to the target event subset are determined to process the current event.
3. The method of claim 1, wherein the event application service corresponding to the target event subset receives the current event sent by the event center service, and performs delivery processing on the current event to obtain a processing result, including:
the event application service corresponding to the target event subset receives the current event sent by the event center service;
and the event application service corresponding to the target event subset calls the target service code corresponding to the current event through a reflection technology, and the processing result is obtained by executing the target service code and is used for responding to the operation executed by the user at the terminal equipment.
4. An event delivery processing apparatus based on pre-subscription, comprising:
the SDK component is used for receiving a plurality of events sent by the business server, carrying out data processing on the plurality of events to obtain an event list, wherein the event list comprises the plurality of events and subscription identifiers corresponding to each event in the plurality of events, and the subscription identifiers are used for marking event application services corresponding to the plurality of events;
the event center service is used for receiving the event list sent by the SDK component and determining whether a historical subscription event set contains events in the event list according to the subscription identification in the event list;
The event center service is further configured to store, if the historical subscription event set does not include a first event in the event list, the first event in an event subset corresponding to a subscription identifier of the first event, to obtain a current subscription event set, where the current subscription event set includes a plurality of event subsets, each event subset in the plurality of event subsets corresponds to an event application service, and each event subset in the plurality of event subsets includes an event subscribed by the event application service corresponding to each event subset;
the event center service is further configured to determine the historical subscription event set as the current subscription event set if the historical subscription event set includes all events in the event list;
an event checking service, configured to receive a current event sent by the service server, where the current event includes an event structure of the current event and a declarative grammar of the current event;
the event verification service is further used for performing validity verification on the event structure body of the current event, and if the verification is qualified, the current event is sent to the SDK component;
The SDK component is further configured to receive the current event sent by the event verification service, scan a declarative grammar of the current event, obtain a current subscription identifier corresponding to the current event, send the current event and the current subscription identifier corresponding to the current event to the event center service, where the current subscription identifier is used to mark an event application service corresponding to the current event;
the event center service is further configured to receive the current event and a current subscription identifier corresponding to the current event sent by the SDK component, match the current event with the current subscription event set according to the current subscription identifier, determine whether the current event belongs to a target event subset of the multiple event subsets of the current subscription event set, and if the current event belongs to the target event subset of the multiple event subsets, determine that an event application service corresponding to the target event subset processes the current event;
the event application service is configured to receive the current event sent by the event center service through the event application service corresponding to the target event subset, and deliver the current event to obtain a processing result;
The event application service is further configured to send the processing result to a terminal device through the event application service corresponding to the target event subset.
5. An event delivery processing device based on a pre-subscription, characterized in that the device comprises a processor, a memory and a communication interface, the memory being for storing a computer program, the processor being for invoking the computer program to perform the method of any of claims 1-3.
CN202310216481.9A 2023-03-08 2023-03-08 Event delivery processing method and device based on pre-subscription Active CN115878352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310216481.9A CN115878352B (en) 2023-03-08 2023-03-08 Event delivery processing method and device based on pre-subscription

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310216481.9A CN115878352B (en) 2023-03-08 2023-03-08 Event delivery processing method and device based on pre-subscription

Publications (2)

Publication Number Publication Date
CN115878352A CN115878352A (en) 2023-03-31
CN115878352B true CN115878352B (en) 2023-06-16

Family

ID=85762057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310216481.9A Active CN115878352B (en) 2023-03-08 2023-03-08 Event delivery processing method and device based on pre-subscription

Country Status (1)

Country Link
CN (1) CN115878352B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708247A (en) * 2019-09-27 2020-01-17 浙江大搜车软件技术有限公司 Message routing method, message routing device, computer equipment and storage medium
CN112581289A (en) * 2020-12-14 2021-03-30 京东数字科技控股股份有限公司 Data processing method, device, equipment and computer readable storage medium
CN115454603A (en) * 2022-09-16 2022-12-09 中国联合网络通信集团有限公司 Task scheduling method, device, server and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694241B (en) * 2018-05-14 2023-04-18 平安科技(深圳)有限公司 Data storage method and device
CN109542428B (en) * 2018-10-16 2024-06-11 北京神州数码云科信息技术有限公司 Service processing method, device, computer equipment and storage medium
CN111258723B (en) * 2019-12-05 2024-03-19 东软集团股份有限公司 Transaction processing method, device, system, medium and equipment of distributed system
CN111464642A (en) * 2020-04-01 2020-07-28 北京四维智联科技有限公司 Method and device for pushing messages of vehicle machine
CN111866191B (en) * 2020-09-24 2020-12-22 深圳市易博天下科技有限公司 Message event distribution method, distribution platform, system and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708247A (en) * 2019-09-27 2020-01-17 浙江大搜车软件技术有限公司 Message routing method, message routing device, computer equipment and storage medium
CN112581289A (en) * 2020-12-14 2021-03-30 京东数字科技控股股份有限公司 Data processing method, device, equipment and computer readable storage medium
CN115454603A (en) * 2022-09-16 2022-12-09 中国联合网络通信集团有限公司 Task scheduling method, device, server and storage medium

Also Published As

Publication number Publication date
CN115878352A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
US7526300B2 (en) Short message management system using a VM application and a mobile communication terminal
CN104954322A (en) Account binding method, device and system
CN113364853B (en) Business service system, business request method and gateway equipment
CN110601965B (en) Message distribution method, device and system and message gateway
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN112055078B (en) Data transmission method, device, computer equipment and storage medium
CN109246078B (en) Data interaction method and server
CN112202661A (en) Session message processing method and device, computer equipment and storage medium
CN106534280A (en) Data sharing method and device
CN104702647A (en) Information request method and information request system
CN115878352B (en) Event delivery processing method and device based on pre-subscription
CN115951923B (en) Subscription event management method, display system, device and storage medium
KR102169265B1 (en) Checking Method for Information about Client's Mobile Phone Number, Information Providing Server, Client Managing Server, and Telecommunications Company Server Used Therein
CN106912032B (en) Information processing method, system, client and server
CN113472781B (en) Service acquisition method, server and computer readable storage medium
CN101753561A (en) Business cluster processing method and cluster system
US9882857B2 (en) Group messaging system
CN113961600A (en) Data query method and device, computer equipment and storage medium
CN113055254B (en) Address configuration method, device, access server and storage medium
CN110493735B (en) Short message processing method and device
CN113285994A (en) Message sending method, device, server and storage medium
CN114500630A (en) Message pushing method, device, system, storage medium and electronic equipment
US20130137461A1 (en) Method and apparatus for inserting location data into messages at a communication gateway
KR102005932B1 (en) Server for managing social network friends and method for managing social network friends using the same
CN111918224B (en) Short message verification method, device, 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
GR01 Patent grant
GR01 Patent grant