CN115695451A - Business service triggering method and device - Google Patents

Business service triggering method and device Download PDF

Info

Publication number
CN115695451A
CN115695451A CN202211324669.7A CN202211324669A CN115695451A CN 115695451 A CN115695451 A CN 115695451A CN 202211324669 A CN202211324669 A CN 202211324669A CN 115695451 A CN115695451 A CN 115695451A
Authority
CN
China
Prior art keywords
service
user
triggering
business service
business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211324669.7A
Other languages
Chinese (zh)
Inventor
黄增荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202211324669.7A priority Critical patent/CN115695451A/en
Publication of CN115695451A publication Critical patent/CN115695451A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a business service triggering method and a business service triggering device, and relates to the technical field of computers. One embodiment of the method comprises: responding to a business service triggering request sent by a user side, synchronizing a business service set in a business service configuration system, wherein the business service triggering request comprises a current business service type and a user number, and the business service set comprises current triggering times corresponding to users under each business service type; inquiring a service set according to the current service type and the user number to judge whether the user meets a service triggering condition, wherein the service triggering condition indicates a triggering time threshold corresponding to the user under each service type; and under the condition that the user meets the service triggering condition, feeding back service information to the user side so as to trigger corresponding service. The implementation mode is suitable for high concurrency scenes, network consumption is reduced, the processing efficiency of business service triggering is improved, and user experience is improved.

Description

Business service triggering method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for triggering a service.
Background
In internet business, providing business services (such as preferential activities) is a scene sales promotion means for expanding user scale, improving user retention rate and improving user activity.
Business services (e.g. offers) are typically created by the operator and trigger conditions may be set accordingly, such as limiting the number of user's participation, e.g. offer a supports 2 uses per user per day and 5 uses per month. Therefore, when triggering the service, it is first necessary to determine whether the user satisfies the triggering condition of the response.
The prior art has at least the following problems:
in the existing method, the number of times of user triggering is usually directly recorded in a cache or a DB (Data Base), it is difficult to provide stable services under high concurrency, the processing efficiency of service triggering is low, the user experience is poor, and additional network consumption is caused because the DB or cache also involves remote RPC operation.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for triggering a service, which can satisfy a service triggering request under a high concurrency condition, reduce network consumption, improve processing efficiency of service triggering, and improve user experience.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a method for triggering a service, including:
responding to a business service triggering request sent by a user side, and synchronizing a business service set in a business service configuration system; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type;
inquiring a service set according to the current service type and the user number to judge whether the user meets a service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type;
and under the condition that the user meets the service triggering condition, feeding back service information to the user side so as to trigger corresponding service.
Further, before the step of synchronizing the service sets from the service configuration system in response to the service trigger request sent by the user side, the method further comprises:
receiving business service configuration information by using a business service configuration system, configuring the business service information, receiving a user trigger record, and constructing a business service set according to the user trigger record and the business service information; the service configuration information includes at least one service type and a service triggering condition corresponding to the service type.
Further, the step of querying the service set to determine whether the user satisfies the service triggering condition includes:
inquiring a business service set according to the user number, and judging whether a user trigger record corresponding to the user number exists in the business service set or not;
if not, determining that the user meets the service triggering condition;
if yes, inquiring a user trigger record, and judging whether the current trigger times corresponding to the user number under the current service type are smaller than a trigger time threshold value; if yes, determining that the user meets a service triggering condition; if not, determining that the user does not meet the business service triggering condition.
Furthermore, the service triggering condition also indicates a triggering time threshold corresponding to the user in each service type in a plurality of time intervals; inquiring the user trigger record, and judging whether the current trigger times corresponding to the user number under the current service type is smaller than a trigger time threshold value, the method also comprises the following steps:
inquiring the user trigger records, and respectively judging whether the current trigger times corresponding to the user numbers under the current service type in a plurality of time intervals are smaller than the corresponding trigger time threshold values;
and if the current trigger times are all smaller than the corresponding trigger time threshold value in a plurality of time intervals, determining that the user meets the service trigger condition.
Further, the method further comprises:
and after the user side executes corresponding business service processing according to the fed back business service information, the current triggering times corresponding to the user numbers under the current business service type are increased progressively, and the business service set is updated according to the increasing results.
Further, the method further comprises:
and sending the incremental result to a business service configuration system so as to update the business service set in the business service configuration system.
According to another aspect of the embodiments of the present invention, there is provided a service triggering apparatus, including:
the receiving module is used for responding to a business service triggering request sent by a user side and synchronizing a business service set in a business service configuration system; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type;
the query module is used for querying the business service set according to the current business service type and the user number so as to judge whether the user meets the business service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type;
and the feedback module is used for feeding back the business service information to the user side under the condition that the user meets the business service triggering condition so as to trigger the corresponding business service.
Further, the apparatus further includes a service set creating module, before the step of synchronizing the service set from the service configuration system in response to the service trigger request sent by the user end, the service set creating module is configured to:
receiving business service configuration information by using a business service configuration system, configuring the business service information, receiving a user trigger record, and constructing a business service set according to the user trigger record and the business service information; the service configuration information includes at least one service type and a service triggering condition corresponding to the service type.
According to another aspect of the embodiments of the present invention, there is provided an electronic device triggered by a service, including:
one or more processors;
a storage device for storing one or more programs,
when executed by one or more processors, cause the one or more processors to implement any of the business service triggering methods described above.
According to a further aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements any of the above-described business service triggering methods.
One embodiment of the above invention has the following advantages or benefits: because the business service triggering request sent by the user side is responded, the business service set is synchronized from the business service configuration system; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type; inquiring a service set according to the current service type and the user number to judge whether the user meets a service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type; under the condition that a user meets a service triggering condition, service information is fed back to a user side to trigger a corresponding service, so that the technical problems that in the existing method, the number of times of user triggering is directly recorded in a cache or a database (Data Base), stable service is difficult to provide under the condition of high concurrency, the processing efficiency of service triggering is low, the user experience is poor, and the network consumption is high are solved, the service triggering request under the condition of high concurrency can be met, the network consumption is reduced, the processing efficiency of service triggering is improved, and the technical effect of user experience is improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a business service triggering method provided according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a main flow of a business service triggering method according to another embodiment of the present invention;
fig. 3 is a schematic diagram of main modules of a business service triggering device provided according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a business service triggering method provided according to an embodiment of the present invention; as shown in fig. 1, the method for triggering service provided in the embodiment of the present invention mainly includes:
step S101, responding to a business service triggering request sent by a user side, and synchronizing a business service set in a business service configuration system; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type.
Specifically, according to the embodiment of the present invention, a business service triggering module (which receives a business service triggering request from a business service triggering system and queries and determines whether a triggering condition is satisfied according to a business service set synchronized from a business service configuration system) and a business service recording module (which configures a business service and creates a business service set by the business service configuration system, and storing the user trigger record in the service set), so that higher performance can still be maintained in a high-concurrency scene, the processing capability of service trigger is improved, and the network consumption caused by remote calling is effectively reduced.
Further, according to the embodiment of the present invention, before the step of synchronizing the service sets from the service configuration system in response to the service trigger request sent by the user side, the method further includes:
receiving business service configuration information by using a business service configuration system, configuring the business service information, receiving a user trigger record, and constructing a business service set according to the user trigger record and the business service information; the service configuration information includes at least one service type and a service triggering condition corresponding to the service type.
Specifically, a developer formulates business service configuration information according to business requirements, and configures the business service information in a business service configuration system, wherein the business service information includes specific activity rules of business services (such as preferential activities) and triggering conditions of the business services. Meanwhile, receiving a total amount of user trigger records in the business service configuration system to construct a business service set, and synchronizing the business service set to the business service trigger system after the business service trigger system receives a business service trigger request, so as to query and judge whether the business service type corresponding to the current user meets the trigger condition. Through the setting, the performance of service triggering under a high concurrency scene is improved, and the user experience is improved.
Step S102, inquiring a service set according to the current service type and the user number to judge whether the user meets the service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type.
And judging whether the user meets the service triggering condition or not through the user triggering record in the service set, ensuring the accuracy of triggering the service and effectively guaranteeing the benefits of the service provider.
Further, according to the embodiment of the present invention, the step of querying the service set to determine whether the user satisfies the service triggering condition includes:
inquiring a business service set according to the user number, and judging whether a user trigger record corresponding to the user number exists in the business service set;
if not, determining that the user meets the service triggering condition;
if yes, inquiring a user trigger record, and judging whether the current trigger times corresponding to the user number under the current service type are smaller than a trigger time threshold value; if yes, determining that the user meets a service triggering condition; if not, determining that the user does not meet the business service triggering condition.
According to a specific implementation manner of the embodiment of the present invention, the user trigger record may be recorded in a key-value manner. When the user scale is large, for example, more than one hundred million, because the key-value structure cannot store such a large data set, the data can be compressed and stored, so as to save the memory of the server, for example, the data is stored by using a bloom filter, wherein because the bloom filter cannot store specific data, the data can be used for judging whether a user trigger record corresponding to the user number exists in the service set; if the trigger time is less than the trigger time threshold, the processing efficiency of the service trigger under the high concurrency scene is further improved through the setting.
Preferably, according to the embodiment of the present invention, the service triggering condition further indicates a triggering time threshold corresponding to the user in each service type in a plurality of time intervals; inquiring the user trigger record, and judging whether the current trigger times corresponding to the user number under the current service type is smaller than the trigger time threshold value, the method also comprises the following steps:
inquiring the user trigger records, and respectively judging whether the current trigger times corresponding to the user numbers under the current service type are smaller than the corresponding trigger time threshold value in a plurality of time intervals;
and if the current trigger times are all smaller than the corresponding trigger time threshold value in a plurality of time intervals, determining that the user meets the service trigger condition.
According to the embodiment of the invention, assuming that there are three business services (such as a preference activity a, a preference activity b and a preference activity c), the number of triggerable times per day and the number of triggerable times per month of each user can be configured for the different business services. Therefore, when determining whether the user satisfies the trigger condition, it is necessary to sequentially determine for different time intervals. Through the arrangement, the accuracy of triggering the service is improved.
Step S103, under the condition that the user meets the service triggering condition, service information is fed back to the user side so as to trigger corresponding service.
Specifically, according to the embodiment of the present invention, the service information fed back to the user side includes information satisfying service triggering qualification and service details, so that the user can trigger a corresponding service according to the service information, and user experience is improved.
Further, according to an embodiment of the present invention, the method further includes:
and after the user side executes corresponding business service processing according to the fed back business service information, the current triggering times corresponding to the user numbers under the current business service type are increased progressively, and the business service set is updated according to the increasing results.
Through the setting, the business service set in the business service triggering system is updated, and the accuracy of subsequent business service triggering is guaranteed.
Preferably, according to an embodiment of the present invention, the method further includes:
and sending the increment result to the business service configuration system so as to update the business service set in the business service configuration system.
According to the embodiment of the invention, the business service set in the business service configuration system can be synchronized into the business service triggering system at regular time, and the problem that the information in the business service triggering system is inaccurate because the data in the memory of the business service triggering system is lost or lacked due to the restarting of the server and the like is solved through the setting.
According to the technical scheme of the embodiment of the invention, the service is synchronized from the service configuration system by responding to the service triggering request sent by the user side; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type; inquiring a service set according to the current service type and the user number to judge whether the user meets a service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type; under the condition that a user meets a service triggering condition, service information is fed back to a user side to trigger a corresponding service, so that the technical problems that stable service is difficult to provide under the condition of high concurrency, the processing efficiency of service triggering is low, the user experience is poor and the network consumption is high due to the fact that the number of times of user triggering is directly recorded in a cache or a database (Data Base) in the conventional method are solved, and further, the service triggering request under the condition of high concurrency can be met, the network consumption is reduced, the processing efficiency of service triggering is improved, and the technical effect of user experience is improved.
Fig. 2 is a schematic diagram of a main flow of a business service triggering method according to another embodiment of the present invention; as shown in fig. 2, the service triggering method provided in the embodiment of the present invention mainly includes:
step S201, receiving business service configuration information by using a business service configuration system, configuring the business service information, receiving a user trigger record, and constructing a business service set according to the user trigger record and the business service information; the service configuration information includes at least one service type and a service triggering condition corresponding to the service type.
Specifically, a developer formulates business service configuration information according to business requirements, and configures the business service information in a business service configuration system, wherein the business service information includes specific activity rules of business services (such as preferential activities) and triggering conditions of the business services. Meanwhile, the full amount of user trigger records are also received in the service configuration system to construct a service set, and after the service trigger system receives a service trigger request, the service set is synchronized to the service trigger system, so that the service set can inquire and judge whether the service type corresponding to the current user meets the trigger condition. Through the setting, the performance of service triggering under a high concurrency scene is improved, and the user experience is improved.
According to a specific implementation manner of the embodiment of the present invention, for the business service information, the business service, such as the benefit activity a, may be specifically configured, and each person may participate twice a day and five times a month (that is, for the benefit activity a, the trigger time threshold value of each person per day is 2, and the trigger time threshold value of each person per month is 5), and may also configure specific information such as the benefit item and the benefit amplitude.
Step S202, responding to a business service triggering request sent by a user side, and synchronizing a business service set from a business service configuration system; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type.
Specifically, according to the embodiment of the present invention, a business service triggering module (which receives a business service triggering request from a business service triggering system and queries and determines whether a triggering condition is satisfied according to a business service set synchronized from a business service configuration system) and a business service recording module (which configures a business service and creates a business service set by the business service configuration system, and storing the user trigger record in the service set), so that higher performance can still be maintained in a high-concurrency scene, the processing capability of service trigger is improved, and the network consumption caused by remote call is effectively reduced.
Step S203, inquiring a business service set according to the user number, and judging whether a user trigger record corresponding to the user number exists in the business service set; if not, that is, no user trigger record corresponding to the user number exists in the service set, indicating that the user has not triggered the current service type, that is, the service trigger condition is satisfied, and go to step S205; if yes, that is, there is a user trigger record corresponding to the user number in the service set, execute step S204
And judging whether the user meets the service triggering condition or not through the user triggering record in the service set, so that the accuracy of triggering the service is ensured, and the benefit of a service provider is effectively guaranteed.
Step S204, inquiring the user trigger record, and judging whether the current trigger times corresponding to the user number under the current service type is smaller than a trigger time threshold value; if yes, namely the current trigger time corresponding to the user number under the current service type is smaller than the trigger time threshold, executing step S205; if not, that is, the current trigger time corresponding to the user number under the current service type is equal to the trigger time threshold (the current trigger time is not greater than the trigger time threshold, because the current trigger time is equal to the trigger time threshold, the service trigger condition is not met, and the service trigger is no longer performed), step S206 is executed.
According to a specific implementation manner of the embodiment of the present invention, the user trigger record may be recorded in a key-value manner. When the user scale is large, for example, more than one hundred million, because the key-value structure cannot store such a large data set, the data can be compressed and stored, so as to save the memory of the server, for example, the data is stored by using a bloom filter, wherein because the bloom filter cannot store specific data, the key-value structure can be used for judging whether a user trigger record corresponding to a user number exists in a business service set; if yes, specific information stored in the key-value structure is inquired, whether the current trigger time is smaller than a trigger time threshold value or not is judged, and through the setting, the processing efficiency of service triggering under the high concurrency scene is further improved.
Step S205, determining that the user satisfies the service triggering condition. Step S207 is then executed. Namely, the business service information (such as a coupon corresponding to the preferential activity) is sent to the user terminal.
Step S206, determining that the user does not satisfy the service triggering condition.
According to a specific implementation manner of the embodiment of the invention, the triggering failure information can be fed back to the user side.
Step S207, feeding back the service information to the user side to trigger the corresponding service.
Specifically, according to the embodiment of the present invention, the service information fed back to the user side includes information satisfying service triggering qualification and service details, so that the user can trigger a corresponding service according to the service information, and user experience is improved.
Further, according to an embodiment of the present invention, the method further includes:
and after the user side executes corresponding business service processing according to the fed back business service information, the current triggering times corresponding to the user numbers under the current business service type are increased progressively, and the business service set is updated according to the increasing results.
Through the setting, the business service set in the business service triggering system is updated, and the accuracy of subsequent business service triggering is guaranteed.
Preferably, according to an embodiment of the present invention, the method further includes:
and sending the increment result to the business service configuration system so as to update the business service set in the business service configuration system.
According to the embodiment of the invention, the business service set in the business service configuration system can be synchronized into the business service triggering system at regular time; according to a specific implementation manner of the embodiment of the present invention, after the user side performs corresponding service processing according to the fed back service information, the incremental result may also be sent to the service configuration system in the form of a queue, so as to update the service set in the service configuration system. Through the setting, the problem that the information in the memory is inaccurate due to the fact that the data in the memory of the system is lost or lost due to server restarting and the like caused by service triggering is solved.
According to the technical scheme of the embodiment of the invention, the service is synchronized from the service configuration system by responding to the service triggering request sent by the user side; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type; inquiring a service set according to the current service type and the user number to judge whether the user meets a service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type; under the condition that a user meets a service triggering condition, service information is fed back to a user side to trigger a corresponding service, so that the technical problems that in the existing method, the number of times of user triggering is directly recorded in a cache or a database (Data Base), stable service is difficult to provide under the condition of high concurrency, the processing efficiency of service triggering is low, the user experience is poor, and the network consumption is high are solved, the service triggering request under the condition of high concurrency can be met, the network consumption is reduced, the processing efficiency of service triggering is improved, and the technical effect of user experience is improved.
Fig. 3 is a schematic diagram of main modules of a business service triggering device provided according to an embodiment of the present invention; as shown in fig. 3, a service triggering apparatus 300 provided in the embodiment of the present invention mainly includes:
a receiving module 301, configured to synchronize a service set from a service configuration system in response to a service trigger request sent by a user end; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type.
Specifically, according to the embodiment of the present invention, a business service triggering module (which receives a business service triggering request from a business service triggering system and queries and determines whether a triggering condition is satisfied according to a business service set synchronized from a business service configuration system) and a business service recording module (which configures a business service and creates a business service set by the business service configuration system, and storing the user trigger record in the service set), so that higher performance can still be maintained in a high-concurrency scene, the processing capability of service trigger is improved, and the network consumption caused by remote calling is effectively reduced.
Further, according to the embodiment of the present invention, the service triggering apparatus 300 further includes a service set creating module, before the step of synchronizing the service set from the service configuration system in response to the service triggering request sent by the user end, the service set creating module is configured to:
receiving business service configuration information by using a business service configuration system, configuring the business service information, receiving a user trigger record, and constructing a business service set according to the user trigger record and the business service information; the service configuration information includes at least one service type and a service triggering condition corresponding to the service type.
Specifically, a developer formulates business service configuration information according to business requirements, and configures the business service information in a business service configuration system, wherein the business service information includes specific activity rules of business services (such as preferential activities) and triggering conditions of the business services. Meanwhile, the full amount of user trigger records are also received in the service configuration system to construct a service set, and after the service trigger system receives a service trigger request, the service set is synchronized to the service trigger system, so that the service set can inquire and judge whether the service type corresponding to the current user meets the trigger condition. Through the setting, the performance of service triggering under a high concurrency scene is improved, and the user experience is improved.
The query module 302 is configured to query a service set according to a current service type and a user number to determine whether a user meets a service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type.
And judging whether the user meets the service triggering condition or not through the user triggering record in the service set, so that the accuracy of triggering the service is ensured, and the benefit of a service provider is effectively guaranteed.
Further, according to an embodiment of the present invention, the query module 302 is further configured to:
inquiring a business service set according to the user number, and judging whether a user trigger record corresponding to the user number exists in the business service set or not;
if not, determining that the user meets the service triggering condition;
if yes, inquiring a user trigger record, and judging whether the current trigger times corresponding to the user number under the current service type are smaller than a trigger time threshold value; if yes, determining that the user meets a service triggering condition; if not, determining that the user does not meet the service triggering condition.
According to a specific implementation manner of the embodiment of the present invention, the user trigger record may be recorded in a key-value manner. When the user scale is large, for example, more than one hundred million, because the key-value structure cannot store such a large data set, the data can be compressed and stored, so as to save the memory of the server, for example, the data is stored by using a bloom filter, wherein because the bloom filter cannot store specific data, the key-value structure can be used for judging whether a user trigger record corresponding to a user number exists in a business service set; if the trigger time is less than the trigger time threshold, the processing efficiency of the service trigger under the high concurrency scene is further improved through the setting.
Preferably, according to the embodiment of the present invention, the service triggering condition further indicates a triggering time threshold corresponding to the user in each service type in multiple time intervals; the query module 302 is further configured to:
inquiring the user trigger records, and respectively judging whether the current trigger times corresponding to the user numbers under the current service type are smaller than the corresponding trigger time threshold value in a plurality of time intervals;
and if the current trigger times are all smaller than the corresponding trigger time threshold value in a plurality of time intervals, determining that the user meets the service trigger condition.
According to the embodiment of the invention, assuming that there are three business services (such as a preference activity a, a preference activity b and a preference activity c), the number of triggerable times per day and the number of triggerable times per month of each user can be configured for the different business services. Therefore, when determining whether the user satisfies the trigger condition, it is necessary to sequentially determine for different time intervals. Through the setting, the service triggering accuracy rate is improved.
The feedback module 303 is configured to feed back service information to the user side to trigger a corresponding service when the user meets the service triggering condition.
Specifically, according to the embodiment of the present invention, the service information fed back to the user side includes information satisfying service triggering qualification and service details, so that the user can trigger a corresponding service according to the service information, and user experience is improved.
Further, according to the embodiment of the present invention, the service triggering apparatus 300 further includes an updating module, configured to:
and after the user side executes corresponding business service processing according to the fed back business service information, the current triggering times corresponding to the user numbers under the current business service type are increased progressively, and the business service set is updated according to the increasing results.
Through the setting, the business service set in the business service triggering system is updated, and the accuracy of subsequent business service triggering is guaranteed.
Preferably, according to an embodiment of the present invention, the update module is further configured to:
and sending the increment result to the business service configuration system so as to update the business service set in the business service configuration system.
According to the embodiment of the invention, the business service set in the business service configuration system can be synchronized into the business service triggering system at regular time, and the problem that the information in the business service triggering system is inaccurate because the data in the memory of the business service triggering system is lost or lacked due to the restarting of the server and the like is solved through the setting.
According to the technical scheme of the embodiment of the invention, the service is synchronized from the service configuration system by responding to the service triggering request sent by the user side; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type; inquiring a service set according to the current service type and the user number to judge whether the user meets a service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type; under the condition that a user meets a service triggering condition, service information is fed back to a user side to trigger a corresponding service, so that the technical problems that in the existing method, the number of times of user triggering is directly recorded in a cache or a database (Data Base), stable service is difficult to provide under the condition of high concurrency, the processing efficiency of service triggering is low, the user experience is poor, and the network consumption is high are solved, the service triggering request under the condition of high concurrency can be met, the network consumption is reduced, the processing efficiency of service triggering is improved, and the technical effect of user experience is improved.
Fig. 4 shows an exemplary system architecture 400 of a business service triggering method or a business service triggering apparatus to which an embodiment of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components included in a particular architecture may be adapted according to application specific circumstances). The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server providing various services, such as a server (for example only) for (triggering/data processing) business services by users using the terminal devices 401, 402, 403. The server may analyze and otherwise process data such as the received service trigger request, and feed back a processing result (e.g., service information — just an example) to the terminal device.
It should be noted that the service triggering method provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the service triggering device is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
Referring now to FIG. 5, a block diagram of a computer system 500 suitable for use with a terminal device or server implementing an embodiment of the invention is shown. The terminal device or the server shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a receiving module, a querying module, and a feedback module. The names of these modules do not form a limitation on the modules themselves in some cases, for example, the receiving module may also be described as "a module for synchronizing a service set from a service configuration system in response to a service trigger request sent by a user end; the service triggering request comprises the current service type and the user number, and the service set comprises a module of the current triggering times corresponding to the user under each service type.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: responding to a business service triggering request sent by a user side, and synchronizing a business service set in a business service configuration system; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type; inquiring a service set according to the current service type and the user number to judge whether the user meets a service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type; and under the condition that the user meets the service triggering condition, feeding back service information to the user side so as to trigger corresponding service.
According to the technical scheme of the embodiment of the invention, the service is synchronized from the service configuration system by responding to the service triggering request sent by the user side; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type; inquiring a service set according to the current service type and the user number to judge whether the user meets a service triggering condition; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type; under the condition that a user meets a service triggering condition, service information is fed back to a user side to trigger a corresponding service, so that the technical problems that in the existing method, the number of times of user triggering is directly recorded in a cache or a database (Data Base), stable service is difficult to provide under the condition of high concurrency, the processing efficiency of service triggering is low, the user experience is poor, and the network consumption is high are solved, the service triggering request under the condition of high concurrency can be met, the network consumption is reduced, the processing efficiency of service triggering is improved, and the technical effect of user experience is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for triggering a service, comprising:
responding to a business service triggering request sent by a user side, and synchronizing a business service set in a business service configuration system; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type;
inquiring the business service set according to the current business service type and the user number so as to judge whether the user meets business service triggering conditions; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type;
and under the condition that the user meets the service triggering condition, feeding back service information to the user side so as to trigger corresponding service.
2. The method for triggering service of business as claimed in claim 1, wherein before the step of synchronizing the service sets from the service configuration system in response to the service triggering request sent from the user side, the method further comprises:
receiving business service configuration information by using the business service configuration system, configuring the business service information, receiving a user trigger record, and constructing a business service set according to the user trigger record and the business service information; the service configuration information includes at least one service type and a service triggering condition corresponding to the service type.
3. The method according to claim 1, wherein the step of querying the set of business services to determine whether the user satisfies the business service triggering condition comprises:
inquiring the business service set according to the user number, and judging whether a user trigger record corresponding to the user number exists in the business service set or not;
if not, determining that the user meets the service triggering condition;
if yes, inquiring the user trigger record, and judging whether the current trigger times corresponding to the user number under the current service type is smaller than the trigger time threshold value; if so, determining that the user meets the service triggering condition; if not, determining that the user does not meet the service triggering condition.
4. The method according to claim 3, wherein the service triggering condition further indicates a triggering time threshold corresponding to the user for each service type in a plurality of time intervals; the querying the user trigger record, and determining whether the current trigger time corresponding to the user number under the current service type is smaller than the trigger time threshold, further includes:
inquiring the user trigger records, and respectively judging whether the current trigger times corresponding to the user numbers in the current service type are smaller than the corresponding trigger time threshold value in a plurality of time intervals;
and if the current trigger times are all smaller than the corresponding trigger time threshold value in the plurality of time intervals, determining that the user meets the service trigger condition.
5. The method of claim 1, further comprising:
and after the user side executes corresponding business service processing according to the fed back business service information, increasing the current triggering times corresponding to the user number under the current business service type, and updating the business service set according to the increasing result.
6. The method of claim 5, further comprising:
and sending the increment result to the business service configuration system so as to update the business service set in the business service configuration system.
7. A transaction service triggering device, comprising:
the receiving module is used for responding to a business service triggering request sent by a user side and synchronizing a business service set in a business service configuration system; the service triggering request comprises a current service type and a user number, and the service set comprises current triggering times corresponding to users under each service type;
the query module is used for querying the business service set according to the current business service type and the user number so as to judge whether the user meets business service triggering conditions; the service triggering condition indicates a triggering time threshold corresponding to a user under each service type;
and the feedback module is used for feeding back the business service information to the user side under the condition that the user meets the business service triggering condition so as to trigger the corresponding business service.
8. The business service triggering apparatus of claim 7, further comprising a business service set creating module, before the step of synchronizing the business service set from the business service configuration system in response to the business service triggering request sent by the user terminal, for:
receiving business service configuration information by using a business service configuration system, configuring the business service information, receiving a user trigger record, and constructing a business service set according to the user trigger record and the business service information; the service configuration information includes at least one service type and a service triggering condition corresponding to the service type.
9. An electronic device triggered by a business service, comprising:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-6.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202211324669.7A 2022-10-27 2022-10-27 Business service triggering method and device Pending CN115695451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211324669.7A CN115695451A (en) 2022-10-27 2022-10-27 Business service triggering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211324669.7A CN115695451A (en) 2022-10-27 2022-10-27 Business service triggering method and device

Publications (1)

Publication Number Publication Date
CN115695451A true CN115695451A (en) 2023-02-03

Family

ID=85099580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211324669.7A Pending CN115695451A (en) 2022-10-27 2022-10-27 Business service triggering method and device

Country Status (1)

Country Link
CN (1) CN115695451A (en)

Similar Documents

Publication Publication Date Title
CN111277639B (en) Method and device for maintaining data consistency
CN112860451A (en) Multi-tenant data processing method and device based on SaaS
CN110837409A (en) Method and system for executing task regularly
CN111478781B (en) Message broadcasting method and device
CN110555068A (en) Data export method and device
CN113742389A (en) Service processing method and device
CN113190558A (en) Data processing method and system
CN113760982A (en) Data processing method and device
CN113783913A (en) Message pushing management method and device
CN113127225A (en) Method, device and system for scheduling data processing tasks
CN113535420A (en) Message processing method and device
CN115695451A (en) Business service triggering method and device
CN112688982B (en) User request processing method and device
CN114064803A (en) Data synchronization method and device
CN109087097B (en) Method and device for updating same identifier of chain code
CN113743630A (en) Method and device for executing intelligent call reservation
CN113535768A (en) Production monitoring method and device
CN110019671B (en) Method and system for processing real-time message
US10372436B2 (en) Systems and methods for maintaining operating consistency for multiple users during firmware updates
CN113766437B (en) Short message sending method and device
CN116010122A (en) Message processing method and device
CN117333170A (en) Service processing method, device, electronic equipment and storage medium
CN113076256A (en) Pressure testing method and device
CN113760179A (en) Data processing method and device
CN114331261A (en) Data processing method and device

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