CN110609701A - Method, apparatus and storage medium for providing service - Google Patents

Method, apparatus and storage medium for providing service Download PDF

Info

Publication number
CN110609701A
CN110609701A CN201910809695.0A CN201910809695A CN110609701A CN 110609701 A CN110609701 A CN 110609701A CN 201910809695 A CN201910809695 A CN 201910809695A CN 110609701 A CN110609701 A CN 110609701A
Authority
CN
China
Prior art keywords
user
batch
service
code segment
predetermined service
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
CN201910809695.0A
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.)
Fanpu Digital Technology Co Ltd
Original Assignee
Fanpu Digital 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 Fanpu Digital Technology Co Ltd filed Critical Fanpu Digital Technology Co Ltd
Priority to CN201910809695.0A priority Critical patent/CN110609701A/en
Publication of CN110609701A publication Critical patent/CN110609701A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses a method, a device and a storage medium for providing service. The method comprises the following steps: a server receives a service request for acquiring a predetermined service from a terminal device of a user, wherein the server is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service; the server determines whether the user belongs to a batch user providing the functions of the second code segment in batches according to the user information of the user; and the server runs the second code segment to execute the predetermined service under the condition that the user is determined to belong to the batch of users. In this way, the user can thus be provided with updated versions of the service step by step in batches. Even if the service of the updated version has defects or insufficiencies, only a part of users can be influenced, but not all users, thereby avoiding the loss of a large amount of users.

Description

Method, apparatus and storage medium for providing service
Technical Field
The present application relates to the internet field, and in particular, to a method, an apparatus, and a storage medium for providing a service.
Background
With the development of the times, more and more software products are gradually brought online, the requirements of the existing users are continuously increased, and developers can improve the existing service products according to the requirements of the users so as to meet the requirements of the users. Therefore, updates to existing software service products are required. However, after the service product is updated, if the updated version has defects and defects, the use of the service product by the user is adversely affected, and thus the loss of the user is easily caused.
Aiming at the technical problem that the service product in the prior art is insufficient and defective after being updated and easily causes customer loss, an effective solution is not provided at present.
Disclosure of Invention
Embodiments of the present disclosure provide a method, an apparatus, and a storage medium for providing a service, so as to at least solve a technical problem in the prior art that a user is adversely affected due to deficiencies and defects existing after a system is updated.
According to an aspect of an embodiment of the present disclosure, there is provided a method of providing a service, including: the method comprises the steps that a server receives a service request for obtaining a predetermined service from a terminal device of a user, wherein a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service are arranged on the server; the server determines whether the user belongs to a batch user providing the function of the second code segment in batches according to the user information of the user; and the server runs the second code segment and executes the predetermined service under the condition that the user is determined to belong to the batch user.
According to another aspect of the embodiments of the present disclosure, there is also provided a storage medium including a stored program, wherein the method described above is performed by a processor when the program is executed.
According to another aspect of the embodiments of the present disclosure, there is also provided an apparatus for providing a service, including: a service request receiving module for receiving a service request for acquiring a predetermined service from a terminal device of a user, wherein the apparatus is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service; the batch user determining module is used for determining whether the user belongs to a batch user providing the function of the second code segment in batches or not according to the user information of the user; and the first operation module is used for operating the second code segment and executing the predetermined service under the condition that the user is determined to belong to the batch user.
According to another aspect of the embodiments of the present disclosure, there is also provided an apparatus for providing a service, including: a processor; and a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: receiving a service request for acquiring a predetermined service from a terminal device of a user, wherein the apparatus is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service; determining whether the user belongs to a batch user providing the function of the second code segment in batches or not according to the user information of the user; and running a second code segment to execute the predetermined service under the condition that the user is determined to belong to the batch user.
In the embodiment of the present disclosure, when the service provided by the server has a new version (i.e., an updated version), the server does not completely replace the program code of the current version with the program code of the updated version, but sets the program code of the current version and the program code of the updated version at the same time. So that the server does not directly execute the updated version of the service when the user requests the function of providing the service. But firstly judging whether the user belongs to a batch user for providing the function of the updated code in batches, if the user is the batch user, providing the function of the updated code, otherwise, still providing the function of the code of the current version. In this way, the user can thus be provided with updated versions of the service step by step in batches. Even if the service of the updated version has defects or insufficiencies, only a part of users can be influenced, but not all users, thereby avoiding the loss of a large amount of users. And then solved the service product that exists among the prior art and exist not enough and the defect after the renewal, lead to the technical problem of customer loss easily.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
FIG. 1 is a hardware architecture diagram of a computer device for executing the method according to embodiment 1 of the present disclosure;
fig. 2 is a schematic diagram of a system for providing services according to embodiment 1 of the present disclosure;
fig. 3 is a schematic flow chart of a method for providing a service according to a first aspect of embodiment 1 of the present disclosure;
fig. 4 is a schematic diagram of a service update for providing a service according to a first aspect of embodiment 1 of the present disclosure;
fig. 5 is a schematic diagram of an apparatus for providing services according to embodiment 2 of the present disclosure; and
fig. 6 is a schematic diagram of an apparatus for providing services according to embodiment 3 of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with the present embodiment, there is provided a method embodiment of a method for providing a service, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
The method provided by the embodiment can be executed in a mobile terminal, a computer terminal or a similar operation device. Fig. 1 illustrates a hardware configuration block diagram of a computing device (e.g., a server) for implementing a method of providing a service. As shown in fig. 1, computing device 10 may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, computing device 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in computing device 10. As referred to in the disclosed embodiments, the data processing circuit acts as a processor control (e.g., selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the method for providing services in the embodiments of the present disclosure, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104, that is, implementing the method for providing services of the application programs described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to computing device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by a communications provider of computing device 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of computing device 10.
It should be noted here that in some alternative embodiments, the computer device (or mobile device) shown in fig. 1 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or mobile device) described above.
Fig. 2 is a schematic diagram of a system for providing a service to a user according to the present embodiment. Referring to fig. 2, the system includes: a server 200 and terminal devices 101 to 103 communicating with the server 200 via a network. The server 200 is a server device that provides a certain service product (sends a short message) to a user, and the terminal devices 101 to 103 run a client program corresponding to the service product, thereby providing corresponding services to the users 301 to 303. Wherein the server 200 may update the version of the service product periodically. Wherein the server 200 shown in figure 2 is adapted to the hardware architecture described in figure 1.
In the above operating environment, according to the first aspect of the present embodiment, there is provided a method of providing a service, which is implemented by the server 200 shown in fig. 2. Fig. 3 shows a flow diagram of the method, which, with reference to fig. 3, comprises:
s302: a server receives a service request for acquiring a predetermined service from a terminal device of a user, wherein the server is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service;
s304: the server determines whether the user belongs to a batch user providing the function of the second code segment in batches according to the user information of the user; and
s306: and the server runs the second code segment to execute the predetermined service under the condition that the user is determined to belong to the batch user.
Specifically, when the service provided by the server 200 has a new version (i.e., an updated version), the server 200 does not completely replace the program code of the current version with the program code of the updated version, but sets the program code of the current version and the program code of the updated version at the same time. For example, fig. 4 shows a schematic diagram of program code provided on the server 200. Including the code segments of the current version of services 1-4 and the code segment of the updated version of service 2.
In this case, if a user (for example, the user 301) wants to enjoy the service 2 provided by the server 200, a service request requesting provision of the service 2 is transmitted to the server 200 through the terminal apparatus 101, so that the server 200 receives the service request from the terminal apparatus 101 (corresponding to step S302).
The server 200, upon receiving the service request, does not directly run the updated version of the service 2 to perform the function of the service 2, but first determines whether the user 301 belongs to a batch of users who provide the updated version of the function of the service 2 in batches, based on the user information of the user 301 (corresponding to step S304).
The server 200 executes the code segment of the updated version of the service 2 to execute the function of the service 2 (corresponding to step S306) only when determining that the user 301 belongs to the batch user.
As described in the background section, after the service product is updated, if the updated version has deficiency and defect, it will have bad influence on the use of the user, and thus it is easy to cause the customer to lose. And aiming at the technical problems that the service product is insufficient and defective after being updated and the loss of customers is easily caused in the prior art, an effective solution is not provided at present.
In view of this, according to the technical solution of the present embodiment, when the service provided by the server 200 has a new version (i.e. an updated version), the server 200 does not completely replace the program code of the current version with the program code of the updated version, but sets the program code of the current version and the program code of the updated version at the same time. So that the server 200 does not directly execute the updated version of the service when the user requests the function of providing the service. But firstly judging whether the user belongs to a batch user for providing the function of the updated code in batches, if the user is the batch user, providing the function of the updated code, otherwise, still providing the function of the code of the current version.
In this way, the user can thus be provided with updated versions of the service step by step in batches. Even if the service of the updated version has defects or insufficiencies, only a part of users can be influenced, but not all users, thereby avoiding the loss of a large amount of users. And then solved the service product that exists among the prior art and exist not enough and the defect after the renewal, lead to the technical problem of customer loss easily.
Optionally, the server determines, according to the user information of the user, whether the user belongs to an operation of a batch user that batches the function of providing the second code segment, including: and the server determines whether the user belongs to the batch user according to the preset batch proportion and the user information. Thus, in this way, the updated service product functions can be provided to the user in batches in a predetermined ratio.
Optionally, the server determines, according to a preset batch proportion and according to the user information, whether the user belongs to an operation of a batch user, including: the server generates a hash value corresponding to the user identification information according to the user identification information in the user information; the server performs remainder operation on the generated hash value by using a numerical value corresponding to the batch proportion; and the server determines that the user is a batch user under the condition that the result of the remainder operation is lower than a preset threshold value.
Specifically, the server 200 generates a corresponding hash value according to the character string of the user ID of the user 301. Then, the number of batches (for example, 100) corresponding to the batch ratio is determined using the preset batch ratio (for example, 1%), and the hash value is subjected to a remainder operation using the number of batches. If the result of the remainder operation is below a predetermined threshold, the user 301 is determined to be a batch user capable of providing the updated service 2.
In the prior art, if a user of a service is to be batched (e.g., batched in a predetermined proportion), all users registered for the service are typically first ranked and then batched in the ranked order. However, this approach has the following disadvantages: firstly, if the number of users registering the service is large (e.g., more than millions), the batch computation for the users is also large, and thus a large amount of server resources are consumed; secondly, the users who register the service are always in motion, so the existing method for counting the users cannot adapt to the dynamic change of the users.
In view of the problems existing in the prior art, the present embodiment does not adopt the conventional method to batch users. But by utilizing the characteristic that the hash operation can generate random numbers according to the ID of the user, only when the user proposes to use the service with the updated version, whether the user belongs to the batch user which can use the service with the updated version is calculated. Thus, in this way, on the one hand, the number of batch users can be controlled within a range of a predetermined ratio, and on the other hand, since it is not necessary to count the number of all users in advance, the amount of calculation of the server 200 is reduced, and dynamic changes of the user population can also be accommodated.
Optionally, the server runs the first code segment to execute the predetermined service in case that the user is determined not to belong to the batch user. For example, in the case that the server 200 determines that the user 301 does not belong to the batch user, that is, the user 301 cannot use the service 2 in the updated version, the program code of the service 2 in the current version is run, so that the service in the current version is still provided to the user 301, and the technical problem that the system in the prior art has defects and defects after being updated and causes adverse effects on more users is solved.
Alternatively, in a case where it is determined that the user cannot normally use the updated version of the predetermined service, the execution of the second code segment for the other user to execute the predetermined service is stopped. Specifically, when the server 200 finds that the user 301 cannot normally use the updated service 2 (e.g., through feedback of the user 301), which means that there is a defect or deficiency in the updated version of the service 2, the server 200 may stop providing the updated version of the service 2, and still provide the current version of the service 2 to other users. In this way, therefore, the adverse effect of the updated version of the service on more users is avoided.
Optionally, after stopping the operation of executing the predetermined service for the other users by running the second code segment, the method further includes: and sending prompt information for prompting that the updated version of the predetermined service is abnormal to equipment of a preset worker.
Specifically, after the server 200 stops running the code segment of the service 2 with the updated version to other users, that is, stops providing the service with the updated version to the users, the server 200 may send the abnormal condition of the new version fed back by the users to the preset staff, so that the staff improves the code of the service with the updated version according to the feedback condition of the users. Therefore, the technical problem that the system in the prior art has defects and shortcomings after being updated and has adverse effects on users is solved.
Further, referring to fig. 1, according to a second aspect of the present embodiment, a storage medium 104 is provided. The storage medium 104 comprises a stored program, wherein the method of any of the above is performed by a processor when the program is run.
Therefore, according to the technical scheme of the embodiment, the updated version of the service can be gradually provided to the user in batches. Even if the service of the updated version has defects or insufficiencies, only a part of users can be influenced, but not all users, thereby avoiding the loss of a large amount of users. And then solved the service product that exists among the prior art and exist not enough and the defect after the renewal, lead to the technical problem of customer loss easily.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
Fig. 5 shows an apparatus 500 for providing a service according to the present embodiment, the apparatus 500 corresponding to the method according to the first aspect of embodiment 1. Referring to fig. 5, the apparatus 500 includes: a service request receiving module 510 for receiving a service request for acquiring a predetermined service from a terminal device of a user, wherein the apparatus is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service; a batch user determination module 520, configured to determine whether the user belongs to a batch user that provides the function of the second code segment in batches according to the user information of the user; and a first operation module 530 for operating the second code segment to execute the predetermined service in case that it is determined that the user belongs to the batch user.
Optionally, the batch user determination module 520 includes: and the batch user determining submodule is used for determining whether the user belongs to the batch user according to the preset batch proportion and the user information.
Optionally, the batch user determination sub-module comprises: the hash value generating unit is used for generating a hash value corresponding to the user identification information according to the user identification information in the user information; a remainder operation unit for performing a remainder operation on the generated hash value using a numerical value corresponding to the batch proportion; and a batch user determination unit for determining that the user is a batch user when the result of the remainder operation is lower than a predetermined threshold.
Optionally, the method further comprises: and the second operation module is used for operating the first code segment and executing the predetermined service under the condition that the user is judged not to belong to the batch user.
Optionally, the method further comprises: and the operation stopping module is used for stopping the operation of the second code segment for other users to execute the predetermined service under the condition that the user cannot normally use the updated version of the predetermined service.
Optionally, the method further comprises: and the updating abnormity information sending module is used for sending prompt information for prompting that the updating version of the predetermined service is abnormal to equipment of a preset worker after stopping the operation of executing the predetermined service by running the second code segment aiming at other users.
Thus, according to the apparatus 500 provided in the present embodiment, the user can be provided with the updated version of the service step by step in batches. Even if the service of the updated version has defects or insufficiencies, only a part of users can be influenced, but not all users, thereby avoiding the loss of a large amount of users. Therefore, the technical problem that the service product is insufficient and defective after being updated and the client loss is easily caused in the prior art is solved.
Example 3
Fig. 6 shows an apparatus 600 for providing a service according to the present embodiment, the apparatus 600 corresponding to the method according to the first aspect of embodiment 1. Referring to fig. 6, the apparatus 600 includes: a processor 610; and a memory 620 coupled to the processor 610 for providing instructions to the processor 610 to process the following processing steps: receiving a service request for acquiring a predetermined service from a terminal device of a user, wherein the apparatus is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service; determining whether the user belongs to a batch user providing the function of the second code segment in batches or not according to the user information of the user; and running a second code segment to execute the predetermined service under the condition that the user is determined to belong to the batch user.
Optionally, the operation of determining whether the user belongs to a batch user who batches the function of providing the second code segment according to the user information of the user comprises: and determining whether the user belongs to the batch user or not according to the preset batch proportion and the user information.
Optionally, determining, according to a preset batch proportion and according to user information, whether a user belongs to an operation of a batch user, includes: generating a hash value corresponding to the user identification information according to the user identification information in the user information; carrying out remainder operation on the generated hash value by utilizing a numerical value corresponding to the batch proportion; and determining that the user is a batch user under the condition that the result of the remainder operation is lower than a preset threshold value.
Optionally, the memory 620 is further configured to provide the processor 610 with instructions to process the following processing steps: and in the case that the user is judged not to belong to the batch user, running the first code segment and executing the predetermined service.
Optionally, the memory 620 is further configured to provide the processor 610 with instructions to process the following processing steps: in a case where it is determined that the user cannot normally use the updated version of the predetermined service, execution of the second code segment for the other user to execute the predetermined service is stopped.
Optionally, the memory 620 is further configured to provide the processor 610 with instructions to process the following processing steps: after stopping the operation of executing the predetermined service by running the second code segment for other users, prompt information prompting that the updated version of the predetermined service is abnormal is sent to the equipment of the preset staff member.
Thus, according to the apparatus 600 provided in this embodiment, updated versions of services can be gradually provided to the user in batches by using the preset calculation model. Even if the service of the updated version has defects or insufficiencies, only a part of users can be influenced, but not all users, thereby avoiding the loss of a large amount of users. Therefore, the technical problem that the service product is insufficient and defective after being updated and the client loss is easily caused in the prior art is solved.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method of providing a service, comprising:
a server receives a service request for acquiring a predetermined service from a terminal device of a user, wherein the server is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service;
the server determines whether the user belongs to a batch user providing the functions of the second code segment in batches according to the user information of the user; and
and the server runs the second code segment to execute the predetermined service under the condition that the user is determined to belong to the batch of users.
2. The method of claim 1, wherein the server determines whether the user belongs to an operation of a batch user providing the functions of the second code segment in batches according to the user information of the user, comprising: and the server determines whether the user belongs to the batch user according to a preset batch proportion and the user information.
3. The method according to claim 2, wherein the server determines whether the user belongs to the batch of user operations according to the user information according to a preset batch proportion, and the determining comprises:
the server generates a hash value corresponding to the user identification information according to the user identification information in the user information;
the server performs remainder operation on the generated hash value by using a numerical value corresponding to the batch proportion; and
and the server determines that the user is the batch user under the condition that the result of the remainder operation is lower than a preset threshold value.
4. The method of claim 1, further comprising: and the server runs the first code segment to execute the predetermined service under the condition that the server judges that the user does not belong to the batch of users.
5. The method of claim 1, further comprising: the server stops executing the second code segment for the other users to execute the predetermined service in a case where it is determined that the user cannot normally use the updated version of the predetermined service.
6. The method of claim 5, further comprising, after ceasing to execute the predetermined service for other users running the second code segment,: and the server sends prompt information for prompting that the updated version of the predetermined service is abnormal to equipment of a preset worker.
7. A storage medium comprising a stored program, wherein the method of any one of claims 1 to 6 is performed by a processor when the program is run.
8. An apparatus for providing services, comprising:
a service request receiving module for receiving a service request for acquiring a predetermined service from a terminal device of a user, wherein the apparatus is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service;
the batch user determining module is used for determining whether the user belongs to a batch user providing the functions of the second code segment in batches or not according to the user information of the user; and
and the first operation module is used for operating the second code segment to execute the predetermined service under the condition that the user is determined to belong to the batch of users.
9. The apparatus of claim 8, wherein the batch subscriber determination module comprises:
and the batch user determining submodule is used for determining whether the user belongs to the batch user according to the preset batch proportion and the user information.
10. An apparatus for providing services, comprising:
a processor; and
a memory coupled to the processor for providing instructions to the processor for processing the following processing steps:
receiving a service request for acquiring a predetermined service from a terminal device of a user, wherein the apparatus is provided with a first code segment corresponding to a current version of the predetermined service and a second code segment corresponding to an updated version of the predetermined service;
determining whether the user belongs to a batch user providing the functions of the second code segment in batches according to the user information of the user; and
and running the second code segment to execute the predetermined service under the condition that the user is determined to belong to the batch of users.
CN201910809695.0A 2019-08-29 2019-08-29 Method, apparatus and storage medium for providing service Pending CN110609701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910809695.0A CN110609701A (en) 2019-08-29 2019-08-29 Method, apparatus and storage medium for providing service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910809695.0A CN110609701A (en) 2019-08-29 2019-08-29 Method, apparatus and storage medium for providing service

Publications (1)

Publication Number Publication Date
CN110609701A true CN110609701A (en) 2019-12-24

Family

ID=68891063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910809695.0A Pending CN110609701A (en) 2019-08-29 2019-08-29 Method, apparatus and storage medium for providing service

Country Status (1)

Country Link
CN (1) CN110609701A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710550A (en) * 2022-03-18 2022-07-05 中国建设银行股份有限公司 Request response method, device, equipment and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864175A (en) * 2017-08-24 2018-03-30 平安普惠企业管理有限公司 Gray scale distribution control method, device, equipment and storage medium
CN108696374A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Update the method and apparatus of client configuration
CN108768875A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Gray scale dissemination method, device and the computer readable storage medium of application
WO2019047821A1 (en) * 2017-09-07 2019-03-14 华为技术有限公司 Service routing method, device and storage medium
CN109725920A (en) * 2018-12-29 2019-05-07 咪咕文化科技有限公司 A kind of update method of Service Instance, device and storage medium
CN109981350A (en) * 2019-03-01 2019-07-05 畅捷通信息技术股份有限公司 A kind of continual upgrade method of cloud service and system
CN110071960A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 Manage method, system, equipment and the storage medium of gray scale publication

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696374A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Update the method and apparatus of client configuration
CN107864175A (en) * 2017-08-24 2018-03-30 平安普惠企业管理有限公司 Gray scale distribution control method, device, equipment and storage medium
WO2019047821A1 (en) * 2017-09-07 2019-03-14 华为技术有限公司 Service routing method, device and storage medium
CN108768875A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Gray scale dissemination method, device and the computer readable storage medium of application
CN109725920A (en) * 2018-12-29 2019-05-07 咪咕文化科技有限公司 A kind of update method of Service Instance, device and storage medium
CN109981350A (en) * 2019-03-01 2019-07-05 畅捷通信息技术股份有限公司 A kind of continual upgrade method of cloud service and system
CN110071960A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 Manage method, system, equipment and the storage medium of gray scale publication

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710550A (en) * 2022-03-18 2022-07-05 中国建设银行股份有限公司 Request response method, device, equipment and computer storage medium

Similar Documents

Publication Publication Date Title
US20210240721A1 (en) Application Recommending Method and System, and Server
US20200333930A1 (en) Information processing method, terminal, server, and computer storage medium
CN105072139A (en) Recommendation method and recommendation device
CN110599318A (en) Account checking method, account checking device and storage medium
CN114398397A (en) Data processing method, device, storage medium and system
CN110609701A (en) Method, apparatus and storage medium for providing service
US11734057B2 (en) Method and apparatus for processing a service of an abnormal server
CN113315571A (en) Monitoring method and device of silicon optical module
CN111026995A (en) Method and device for information association between applications and storage medium
CN110647462A (en) Interface test method, device and storage medium
CN111678519B (en) Intelligent navigation method, device and storage medium
CN110858201B (en) Data processing method and system, processor and storage medium
CN110704289A (en) Method, device and storage medium for monitoring kol account
CN110609781A (en) Interface test method, device and storage medium
CN110597574A (en) Account matching method and device and storage medium
CN110971425A (en) Method and device for restarting group and requesting to restart group
CN112486583A (en) System, method, apparatus and storage medium for configuring parameters
CN105827400B (en) A kind of method, server and system that identifying code effective time is set
CN109522690B (en) Method, device and storage medium for sending interaction information and generating interaction information
CN112487261B (en) Data acquisition method and device, electronic equipment and medium
CN110096255B (en) Rule degradation processing method, device and system and data processing method
CN113590913B (en) Data resource display method and device, storage medium and electronic device
CN109543015B (en) Method, system and storage medium for providing and acquiring service
US20120166351A1 (en) Creating a dynamic account storing aggregated social data to assist customer knowledge
CN117956025A (en) Information pushing method and device, nonvolatile storage medium and electronic equipment

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20231110

AD01 Patent right deemed abandoned