CN109584105B - Service response method and system - Google Patents

Service response method and system Download PDF

Info

Publication number
CN109584105B
CN109584105B CN201811339547.9A CN201811339547A CN109584105B CN 109584105 B CN109584105 B CN 109584105B CN 201811339547 A CN201811339547 A CN 201811339547A CN 109584105 B CN109584105 B CN 109584105B
Authority
CN
China
Prior art keywords
service
terminal
response
server
service response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811339547.9A
Other languages
Chinese (zh)
Other versions
CN109584105A (en
Inventor
赵远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811339547.9A priority Critical patent/CN109584105B/en
Publication of CN109584105A publication Critical patent/CN109584105A/en
Application granted granted Critical
Publication of CN109584105B publication Critical patent/CN109584105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services

Landscapes

  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention is applicable to the technical field of communication, and provides a service response method and a service response system, wherein the service response method comprises the following steps: if the service response terminal receives the service handling request, the service response terminal sends a service registration instruction about the service handling request to the server; the server receives a service registration instruction, creates a storage address in a service monitoring database, and adds the service registration instruction to a service response list of the service response terminal; the service response terminal executes a corresponding handling flow of the service handling request and uploads service data output when the handling flow is executed to the server in a preset time period; if the abnormal information of the terminal is detected, each service handling request in the service response list and service data associated with the service handling request are sent to the target response terminal; the target response terminal responds to the service handling request according to the service data. The invention improves the success rate and the processing efficiency of service response and reduces the time of user business handling.

Description

Service response method and system
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a service response method and system.
Background
With the continuous development of intellectualization and automation, users can often complete service handling through terminal equipment without intervention of entity operators, so that labor cost is reduced and service response efficiency is improved. However, in the existing service response technology, when the user uses the terminal device to transact the related service, if the terminal device fails or is abnormal, and the service response is terminated, the user needs to re-execute the service transacting flow on another terminal device, and the processed operation needs to re-respond, so that the success rate and the processing efficiency of the service response are reduced, and the service transacting time of the user is prolonged.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a service response method and system, so as to solve the problem that when an abnormality occurs in a terminal device, a user needs to re-respond to an operated service flow, thereby reducing the success rate and the processing efficiency of service response, and prolonging the service handling time of the user.
A first aspect of an embodiment of the present invention provides a service response method, which is applied to a service response system, and is characterized in that the service response system includes a server and at least two service response terminals, and the service response method includes:
The service response terminal sends a service registration instruction about the service handling request to the server if receiving the service handling request;
the server receives the service registration instruction, creates a storage address associated with the service handling request in a service monitoring database, and adds the service registration instruction to a service response list of the service response terminal; the service response list is used for recording all service handling requests currently processed by the service response terminal;
the service response terminal executes the corresponding handling flow of the service handling request, and uploads the service data output when the handling flow is executed to the server in a preset time period, so that the server imports the service data to the storage address;
if the server detects the abnormal information of the terminal related to the service response terminal, selecting the service response terminal in a normal state from the service response system as a target response terminal, and sending each service handling request in the service response list and the service data related to the service handling request to the target response terminal;
And the target response terminal responds to the service handling request according to the service data.
A second aspect of the embodiment of the present invention provides a service response system, which is characterized in that the service response system includes a server and at least two service response terminals;
the service response terminal is used for sending a service registration instruction about the service handling request to the server if the service handling request is received;
the server is used for receiving the service registration instruction, creating a storage address associated with the service handling request in a service monitoring database, and adding the service registration instruction to a service response list of the service response terminal; the service response list is used for recording all service handling requests currently processed by the service response terminal;
the service response terminal is used for executing the corresponding handling flow of the service handling request, and uploading the service data output when the handling flow is executed to the server in a preset time period so that the server imports the service data to the storage address;
the server is used for selecting a service response terminal in a normal state from the service response system as a target response terminal if the terminal abnormality information about the service response terminal is detected, and sending each service handling request in the service response list and the service data related to the service handling request to the target response terminal;
And the target response terminal is used for responding to the service handling request according to the service data.
The method and the system for implementing the service response provided by the embodiment of the invention have the following beneficial effects:
in the embodiment of the invention, when the service response terminal responds to the service handling request initiated by the user, a storage address for storing the service data of the service handling request is created at the server, the service data is uploaded to the storage address corresponding to the server at preset time intervals, when the service response terminal has abnormal conditions, the server can forward the service handling request and the service data generated in the processing process to other service response terminals in normal states, and the user can continuously execute the service flow on the designated service response terminal, so that the problem that the pre-operation is invalid and needs to be re-executed is avoided, the success rate and the processing efficiency of service response are improved, and the service handling time of the user is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an interactive flow chart of a method of service response provided by a first embodiment of the present invention;
FIG. 2 is a flowchart showing a service response method S101 according to a second embodiment of the present invention;
FIG. 3 is a flowchart showing a service response method S104 according to a third embodiment of the present invention;
FIG. 4 is a flowchart showing another embodiment of a service response method S104 according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart showing a method for service response according to a fifth embodiment of the present invention;
fig. 6 is a block diagram of a service response system according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
When the service response terminal responds to the service handling request initiated by the user, a storage address for storing service data of the service handling request is created at the server, the service data is uploaded to the storage address corresponding to the server at preset time intervals, when the service response terminal is abnormal, the server can forward the service handling request and the service data generated in the processing process to other service response terminals in normal states, the user can continue to execute the service flow on the designated service response terminal, the existing service response technology is solved, when the terminal equipment is abnormal, the user needs to respond to the operated service flow again, and therefore the success rate and the processing efficiency of the service response are reduced, and the problem of long service handling time of the user is solved.
In the embodiment of the present invention, the execution subject of the flow is a service response system, where the service response system includes: a server and at least two service response terminals. Communication links are established between the server and each service response terminal, and data interaction can be performed through the communication links, and the service response terminals include but are not limited to: the service response terminal can be an intelligent robot, and the user can complete corresponding service through interactive operation with the intelligent robot. Fig. 1 shows an interactive flowchart of a method for service response provided by the first embodiment of the present invention, which is described in detail below:
in S101, the service response terminal, upon receiving a service handling request, transmits a service registration instruction regarding the service handling request to the server.
In this embodiment, the user may initiate a service handling request on the interactive interface of the service response terminal, and the user may also initiate a service handling request on the client through a client installed in the user terminal of the user, and then communicate with the service response terminal and send the service handling request to the service response terminal, so as to achieve the purpose of remotely handling the service. After receiving the service handling request, the service response terminal needs to store the service data generated in the service handling request processing process through the server, namely, needs to allocate a corresponding storage space for the service handling request, so that a service registration instruction about the service handling request can be generated based on the service handling request.
In this embodiment, the service registration instruction may include a user identifier of the requested service, a service type of the service handling request, a service number, and the like. Wherein the service number is used to uniquely identify each service transacting request. Optionally, because the service types are different, the data types of the service data to be uploaded are different, and the server can allocate a corresponding service monitoring database for the service data according to the service data recorded in the service registration instruction so as to store the service data of the data types. The service type may be determined based on the transaction content specified in the service transaction request. For example, if a user needs to handle information related to user security, such as user information change and password change, the identity of the user needs to be checked by means of video authentication, and thus video data is generated during execution of the service handling request, and therefore the server can select a service monitoring database capable of storing video data based on the service type of the service handling request, and the service monitoring database is used for storing the service data of the service handling request.
Optionally, in this embodiment, the service response terminal may execute multiple service handling flows simultaneously, that is, the service response terminal may respond to multiple service handling requests through multiple threads concurrently, in this case, the service response terminal may be configured to set a registration execution period, receive, in each registration execution period, a service handling request sent by each user, and when the registration execution period is reached, generate service registration instructions corresponding to all received service handling requests in the present period, and upload all generated service registration instructions to the server in a unified manner.
In S102, the server receives the service registration instruction, creates a storage address associated with the service handling request in a service monitoring database, and adds the service registration instruction to a service response list of the service response terminal; the service response list is used for recording all service handling requests currently processed by the service response terminal.
In this embodiment, the server may receive service registration instructions uploaded by all service response terminals in the service response system, and configure a corresponding storage address for a service handling request corresponding to each service registration instruction. Specifically, after receiving a service registration instruction, the server extracts a service number in the service registration instruction and judges whether the service number is in a registered service list; if the service number is in the registered service list, returning the registered information of the service handling request to the service response terminal, and sending a storage address corresponding to the service handling request to the service response terminal; otherwise, if the service number is not in the registered service list, the service number of the service handling request is added to the registered service list, and an associated storage address is created for the service handling request, wherein a storage area corresponding to the storage address is used for storing service data generated in the response process of the service handling request.
In this embodiment, the service monitoring database may be stored in the server or may be a separate database server. The server can determine the data type of the service data according to the service type corresponding to the service handling request, select the database server corresponding to the data type as a target database server, and divide the corresponding storage address in the target database server as the storage address associated with the service handling request. Preferably, the server may acquire all the history service records of the service type, determine the history service data amounts of the history service records, calculate, based on each history service data amount, an expected data amount expected to be generated in the response process of the service handling request, and divide, based on the expected data amount, a storage address corresponding to the expected data amount in the service monitoring database.
Optionally, the server stores a device state list for recording the current running state of each service response terminal, if the running state of any service response terminal changes, a state change instruction can be sent to the server, and the server can adjust the state identifier of the service response terminal in the device state list according to the state change instruction; the server may also send a status detection frame to each service response terminal at a preset time interval, so that each service response terminal feeds back the running status at the current moment, and if status information sent by the service response terminal is not received within a preset waiting time threshold, the service response terminal is identified to be in an abnormal status. In this way, the server can determine the current operation state of each service response terminal, so that when a certain terminal transmits an abnormality, the target response terminal can be determined to process the service handling request of the terminal in the abnormal state.
In this embodiment, the server further configures a service response list for each service response terminal, where the service response list is used to record a service handling request normally handled by the service response terminal at the current time. In particular, after the service response terminal performs a service transacting request, a service log-out instruction may be sent to the server, in which case the server may delete the service transacting request from the service response list. The server can determine the current load condition of each service response terminal by reading the service response list of each service response terminal so as to realize load balancing.
In S103, the service response terminal executes the transaction flow corresponding to the service transaction request, and uploads the service data output when executing the transaction flow to the server in a preset time period, so that the server imports the service data to the storage address.
In this embodiment, after the server finishes registering the service handling request, the server may feed back the storage address corresponding to the service handling request to the service response terminal. The service response terminal can continue to respond to the service handling request in the process of registering the procedure with the server and waiting for a registration result to be returned. Specifically, the manner of responding to the request may be: the service response terminal acquires a corresponding handling flow of the service handling request, receives an operation instruction input by a user based on the handling flow, and outputs service data about the service handling request. The file format of the service data may be determined according to the service type of the service handling request, for example, if the service handling request is a service handling type, the service data may be a service form of a required service handling, and the user may fill in each item in the service form in the interactive interface of the service response terminal. The terminal device may generate service data based on the filled item information in the current service form for a preset period of time, and upload the service data to the server.
In this embodiment, since a certain time is required for the business handling process, in order to synchronize the service data stored in the server with the service data of the service response terminal, the service response terminal sends the service data corresponding to the service handling request at the current moment to the server at preset time intervals, and after receiving the service data, the server determines the corresponding storage address according to the request number of the service handling request, and stores the service data in the storage area corresponding to the storage address.
Optionally, the server may detect a storage type of the service data, and if the storage type is an update type, replace the service data stored in the storage address with the service data; if the storage type is the newly added type, determining an unoccupied storage interval in the storage address, and storing the service data in the unoccupied storage interval; if the data volume of the service data to be stored exceeds the storage capacity of the storage address, the server can perform capacity expansion operation on the storage address.
In S104, if the server detects the terminal abnormality information about the service response terminal, the server selects a service response terminal in a normal state from the service response system as a target response terminal, and transmits each service handling request in the service response list and the service data associated with the service handling request to the target response terminal.
In this embodiment, the terminal abnormality information may be actively sent to the server by the service response terminal, in this case, if the service response terminal detects that an abnormality event exists at the current moment, for example, the service response terminal has too low electric quantity or is in a downtime state, a piece of terminal abnormality information may be generated, and the terminal abnormality information is sent to the server, and preferably, the terminal abnormality information may carry service data about a service handling request at the current moment before the abnormality moment. The terminal abnormality information may be locally generated by the server in the process of detecting the operation state of the service response terminal, and as described above, the server may transmit a state detection frame to the service response terminal at preset time intervals to determine the operation state of each service response terminal, and if any service response terminal feeds back the state abnormality information or does not feed back the state information, generate the terminal abnormality information about the service response terminal. Of course, the service response terminal may also send a heartbeat packet to the server in a preset heartbeat cycle, and if the server does not receive the heartbeat packet in the heartbeat cycle, identify that the service response terminal is in the terminal abnormality information.
In this embodiment, when the server detects the terminal abnormality information of the service response terminal, it is necessary to forward the service handling request being processed by the service response terminal to other service response terminals, and to transmit the service handling request to the other service response terminals for processing. Based on the above, after determining the operation state of each service response terminal, the server may select the service response terminal in the normal state as the target response terminal, and determine, according to the service response list of the service response terminal in the abnormal state, the service handling request currently handled normally by the service response terminal in the abnormal state, and the service data of each service handling request, package and forward the two types of information to the target response terminal.
Optionally, the server may select a plurality of service response terminals in a normal state as target response terminals according to the number of service handling requests, so as to send the service handling requests and the service data to the plurality of target response terminals respectively, thereby implementing load balancing, and avoiding overload situations of the target response terminals caused by sending a large number of service handling requests to one service response terminal instantaneously.
In S105, the target response terminal responds to the service handling request according to the service data.
In this embodiment, after receiving the service handling request, the target response terminal may jump to a corresponding handling step through the service data and/or generate a corresponding service handling page, so that the user continues to perform the service handling operation on the target response terminal. The service response flow of the target response terminal is consistent with the service response flow of the service response terminal, and service data about the service handling request is uploaded to the server at preset time intervals.
Preferably, before S105, the server may add the service transacting request of the abnormal service response terminal to the service response list of the target response terminal, and transmit a storage address associated with each service transacting request to the target response terminal, so that the target response terminal uploads the service data of each service transacting request according to the storage address.
As can be seen from the foregoing, in the method for service response provided in the embodiment of the present invention, when a service response terminal responds to a service handling request initiated by a user, a storage address for storing service data of the service handling request is created at a server, and service data is uploaded to a storage address corresponding to the server at preset time intervals.
Fig. 2 is a flowchart showing a specific implementation of a method for service response according to a second embodiment of the present invention. In this embodiment, the execution body of the flow is a service response terminal, referring to fig. 2, with respect to the embodiment described in fig. 1, in a method for service response provided in this embodiment, S101 includes: s1011 to S1014, the details are as follows:
in S1011, the service response terminal determines the service type of the service handling request.
In this embodiment, in order to determine whether a currently received service handling request needs to be uploaded to a server, and backup service data related to the service handling request by the server, it is necessary to predict a response time of the service type, and if the service type with a longer response time is required to be submitted to the server for backup of the service data; on the contrary, if the service type with shorter response time is used, the response can be performed locally without applying for the storage address at the server, so that the resource occupation of the server can be reduced.
In this embodiment, after receiving the service handling request, the service response terminal may determine the service content of the service handling request, and determine the corresponding service type based on the service content. Of course, the service handling request may also carry a type identifier, and the service response terminal may query the service type corresponding to the type identifier according to the type identifier.
In S1012, the service response terminal acquires a history service record of the service type; the history service record comprises service response time length and creation time.
In this embodiment, the history service records of each transacted service transacting request may be stored in a service database, and the service response terminal may extract all history service records about the service type from the service database according to the determined service type, where the history service records respond to the service response time period of the service transacting request, and the service response time period is used to represent the time between the creation time and the response completion time of the service transacting request. The history service record also contains the creation time of the record, and because the service flows of different service types can be updated correspondingly, the weight values of different history service records can be determined through the difference value between the creation time and the current time, and the accuracy of the response characteristic values can be further improved.
Optionally, if a service type does not have a history service record, that is, the service type belongs to a service type that is handled for the first time, the service response terminal may set a response feature value corresponding to the service type to a preset bit value, and perform an operation of sending a service registration instruction about the service handling request to the server. Because the processing time of the service type cannot be estimated, in order to ensure the response efficiency of the service handling request, the service data of the service handling request needs to be backed up by a server.
In S1013, the service response terminal imports the response characteristic value conversion model with the service response time and the creation time, and calculates the response characteristic value of the service type; the response characteristic value conversion model specifically comprises the following steps:
wherein AVGTime is a response characteristic value; currenttime is the time value of the current moment; historytime i Creating time for the ith history service record; answetime i Service response time length of the i-th history service record; n is the total number of the history service records; que is a preset coefficient.
In this embodiment, the service response terminal imports the service response time length and the creation time of each history service record into a response feature value conversion model, so as to calculate a response feature value of the service type through the conversion model, where the response feature value is used to characterize the expected response time of the service type. As described above, since the service flow may have an update, for the history service record with a time shorter than the current time, the corresponding weight value is higher; and for the history service record with the longer creation time and the current time, the corresponding weight value is lower, and after each response time length is weighted and averaged, the response characteristic value of the service type can be obtained.
If the response characteristic value is smaller than or equal to the uploading threshold value, the response time of the service handling request is short, and the service handling request is directly responded without sending a service registration instruction to the server; otherwise, if the response characteristic value is greater than the upload threshold value, the operation of S1014 is performed.
In S1014, if the service response terminal detects that the response characteristic value is greater than a preset upload threshold value, the service response terminal sends a service registration instruction regarding the service handling request to the server.
In this embodiment, when the response characteristic value is greater than the uploading threshold value, this indicates that the execution time of the service handling request is long, and in the response process, an abnormality of the service response terminal may occur, and a risk of losing the handled service data is caused, so that a service registration instruction needs to be sent to the server to store the service data of the service handling request.
In the embodiment of the invention, when the service handling request is received, the service type of the service handling request is determined, so that the response characteristic value of the service type is determined based on the history service record of the service type, and the service data uploading flow is carried out on the service type with larger response characteristic value, thereby effectively utilizing the storage resource of the server and improving the storage efficiency.
Fig. 3 shows a flowchart of a specific implementation of a service response method S104 according to a second embodiment of the present invention. In this embodiment, the execution subject of the flow is a server. Referring to fig. 3, with respect to the embodiment described in fig. 1, a service response method S104 provided in this embodiment includes: s1041 to S1043 are specifically described below:
further, if the server detects the terminal abnormality information about the service response terminal, selecting the service response terminal in a normal state from the service response system as a target response terminal, including:
in S1041, the server obtains the operation parameters of each service response terminal in a normal state and the number of service handling requests processed at the current time.
In this embodiment, when the server detects the terminal abnormality information about the service response terminal, it is necessary to determine a service response terminal having a better service response capability to continue processing the service handling request of the abnormal service response terminal. Based on the above, the server will broadcast in the lan, so that each service response terminal in a normal state reports the running parameter at the current time and the number of service handling requests that are processed normally.
In this embodiment, the operating parameters include, but are not limited to: parameters related to the operation of the service response terminal, such as operation rate, network bandwidth, idle threads, storage resources and the like. The service response capability of the service response terminal can be determined through the operation parameters, and if the operation parameters are larger, the response efficiency of the service response terminal is higher. The load pressure of the service response terminal at the current moment can be determined through the service handling request number processed at the current moment, preferably, the server records the maximum response number of each service response terminal, and after obtaining the service handling request number of each service response terminal, the server can determine the load proportion of each service response terminal according to the service handling request number and the corresponding maximum response number, and by adopting the mode, the load parameters can be normalized, so that the accuracy of the subsequent calculation of the priority can be improved.
In S1042, the server imports the operation parameters and the service handling request number into a preset priority selection model, and calculates the priority of each service response terminal in a normal state; the priority selection model specifically comprises the following steps:
PRI (j) is the priority of the j-th service response terminal in a normal state; runPrmeter j Responding the operation parameters of the terminal for the j-th service in a normal state; requst j The number of service handling requests of the j-th service response terminal in a normal state; m is the number of service response terminals in a normal state; alpha is a preset coefficient.
In this embodiment, after obtaining the operation parameters and the service handling request number of each service response terminal in the normal state, the server may import the two parameters into the priority selection model, so as to calculate and obtain the priority of each service response terminal in the normal state, where if the value of the operation parameter of the service response terminal is greater, the value of the corresponding priority is greater, which indicates that the operation efficiency of the service response terminal is higher; the smaller the number of service handling requests, the smaller the load pressure of the service response terminal, and the larger the number of receivable service handling requests, and therefore the larger the corresponding priority value.
The value of the priority is used to indicate the task processing capability of the service response terminal, that is, the larger the value of the priority is, the stronger the task processing capability is, so that the service response terminal is more suitable as a target response terminal; otherwise, if the value of the priority is smaller, the task processing capability of the device is poor, and if the service handling request is forwarded to the device, the device may be down or overloaded.
In S1043, the server identifies the service response terminal in the normal state with the highest priority as the target response terminal.
In this embodiment, after calculating the priority of each service response terminal in the normal state, the server may sequentially sort each service response terminal based on the order of the priority, and select one service response terminal in the normal state with the largest priority as the target response terminal. Of course, if the number of the target response terminals selected at this time is N, for example, the service handling request needs to be forwarded to the N target response terminals, after sorting according to the priority level, the first N service response terminals are selected as the target response terminals.
In the embodiment of the invention, before the target response terminal is selected, the operation parameters of each service response terminal and the service handling request number are obtained, the priority of each service response terminal is calculated, and then one service response terminal with the highest priority is selected as the target response terminal, so that the success rate of the target response terminal in service handling requests can be improved, the risk of abnormal situations is reduced, and the robustness of the service response system is improved.
Fig. 4 shows a flowchart of a specific implementation of a service response method S104 according to a fourth embodiment of the present invention. Referring to fig. 4, with respect to the embodiments described in fig. 1 to 3, in a method for service response provided in this embodiment, S104 includes: s1044 to S1045 are specifically described as follows:
in S1044, the service response terminal sends a heartbeat packet to the server with a preset heartbeat cycle.
In this embodiment, in order to maintain the activity of the communication link between the server and the service response terminal, the service response terminal sends heartbeat packets to the server at preset heartbeat cycle intervals. Therefore, if the service response terminal is in a normal state, the server receives the heartbeat packet in the heartbeat period, and in this case, the server identifies that the service response terminal is in a normal state.
In S1045, if the server does not receive the heartbeat packet in the heartbeat cycle, the server generates the terminal abnormality information about the service response terminal.
In this embodiment, if the server does not receive the heartbeat data packet fed back by the service response terminal in the heartbeat period, it indicates that the service response terminal may be in an abnormal state, so that the heartbeat data packet cannot be sent to the server periodically according to a preset feedback rule, where the situation may be that the clock signal of the service response terminal is abnormal or the device is in downtime or even is abnormally closed, at this time, the server may identify that an abnormal event occurs in the service response terminal, and generate terminal abnormality information about the service response terminal.
In the embodiment of the invention, the service response terminal periodically sends the heartbeat data packet to the server, and the server can immediately judge that the service response terminal is abnormal when the heartbeat data packet fed back by the service response terminal is not received, so that the abnormality identification efficiency is improved.
Fig. 5 is a flowchart showing a specific implementation of a method for service response according to a fifth embodiment of the present invention. Referring to fig. 5, with respect to the embodiments described in fig. 1 to 3, a method for service response provided in this embodiment further includes: s501 to S502 are specifically described below:
after the service response terminal executes the transaction flow corresponding to the service transaction request and uploads the service data output when executing the transaction flow to the server in a preset time period, the method further comprises the steps of:
in S501, the service response terminal transmits service log-out information to the server when detecting a service completion instruction regarding the service handling request.
In this embodiment, after the service response terminal finishes responding to the service handling request, a service completion instruction is generated, and when the service response terminal detects the service completion instruction about the service handling request, service log-out information of the service handling request is generated, where the service log-out information may include a request identifier of the service handling request.
In S502, the server receives the service log-out information, deletes the service handling request from the service response list, and sets the occupied state of the storage address to be free.
In this embodiment, after receiving the service log-out information, the server may extract the request identifier included in the information, thereby determining a corresponding item in the service response list according to the request identifier, deleting the information of the item, releasing the storage address for storing the service data of the service handling request, and setting the occupied state of the storage address to be free, so as to allocate the storage address for the subsequent service handling request.
In the embodiment of the invention, the resource utilization rate of the server is improved by releasing the resources occupied by the completed service handling request.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Fig. 6 shows a block diagram of a service response system according to an embodiment of the present invention, where the terminal device includes units for performing the steps in the corresponding embodiment of fig. 1. Please refer to fig. 1 and the related description of the embodiment corresponding to fig. 1. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the service response system includes: the service response system includes a server 61, a service response terminal 62, and a target response terminal 63;
the service response terminal 62 is configured to send a service registration instruction regarding the service handling request to the server 61 if the service handling request is received;
the server 61 is configured to receive the service registration instruction, create a storage address associated with the service handling request in a service monitoring database, and add the service registration instruction to a service response list of the service response terminal; the service response list is used for recording all service handling requests currently processed by the service response terminal 62;
the service response terminal 62 is configured to execute a transaction procedure corresponding to the service transaction request, and upload service data output when the transaction procedure is executed to the server 61 in a preset time period, so that the server 61 imports the service data to the storage address;
the server 61 is configured to, when detecting terminal abnormality information about the service response terminal 62, select a service response terminal in a normal state from within the service response system as a target response terminal 63, and send each service handling request in the service response list and the service data associated with the service handling request to the target response terminal 63;
The target response terminal 63 is configured to respond to the service handling request according to the service data.
Optionally, the service response terminal 62 is further configured to:
the service response terminal 62 is configured to determine a service type of the service handling request;
the service response terminal 62 is configured to obtain a history service record of the service type; the history service record comprises service response time and creation time of the history service record;
the service response terminal 62 is configured to import each service response duration and the creation time into a response feature value conversion model, and calculate a response feature value of the service type; the response characteristic value conversion model specifically comprises the following steps:
wherein AVGTtime is a response characteristic valueThe method comprises the steps of carrying out a first treatment on the surface of the currenttime is the time value of the current moment; historytime i Creating time for the ith history service record; answetime i Service response time length of the i-th history service record; n is the total number of the history service records; que is a preset coefficient;
the service response terminal 62 is configured to send a service registration instruction about the service handling request to the server if the response feature value is detected to be greater than a preset upload threshold value.
Optionally, the server 61 is further configured to:
the server 61 is configured to obtain an operation parameter of each service response terminal in a normal state and a service handling request number processed at a current moment;
the server 61 is configured to import the operation parameters and the service handling request number into a preset priority selection model, and calculate priorities of service response terminals in a normal state; the priority selection model specifically comprises the following steps:
PRI (j) is the priority of the j-th service response terminal in a normal state; runPrmeter j Responding the operation parameters of the terminal for the j-th service in a normal state; requst j The number of service handling requests of the j-th service response terminal in a normal state; m is the number of service response terminals in a normal state; alpha is a preset coefficient;
the server 61 is configured to identify, as the target response terminal, a service response terminal in a normal state with the highest priority.
Optionally, the server 61 and the service response terminal 62 are further configured to:
the service response terminal 62 is configured to send a heartbeat packet to the server 61 in a preset heartbeat cycle;
The server 61 is configured to generate the terminal abnormality information about the service response terminal 62 if the heartbeat packet is not received in the heartbeat cycle.
Optionally, the server 61 and the service response terminal 62 are further configured to:
the service response terminal 62 is configured to send service log-out information to the server 61 if a service completion instruction regarding the service handling request is detected;
the server 61 is configured to receive the service log-out information, delete the service handling request from the service response list, and set the occupied state of the storage address to be free.
Therefore, in the dial testing task scheduling system provided by the embodiment of the invention, when the service response terminal responds to the service handling request initiated by the user, a storage address for storing the service data of the service handling request is created at the server, the service data is uploaded to the storage address corresponding to the server at preset time intervals, when the service response terminal has abnormal conditions, the server can forward the service handling request and the service data generated in the processing process to other service response terminals in normal states, and the user can continue to execute the service flow on the designated service response terminal, so that the problem that the pre-operation is invalid and needs to be re-executed is avoided, the success rate and the processing efficiency of the service response are improved, and the time for handling the user service is reduced.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (6)

1. A service response method, applied to a service response system, characterized in that the service response system comprises a server and at least two service response terminals, the service response method comprises:
the service response terminal sends a service registration instruction about the service handling request to the server if receiving the service handling request;
the server receives the service registration instruction, creates a storage address associated with the service handling request in a service monitoring database, and adds the service registration instruction to a service response list of the service response terminal; the service response list is used for recording all service handling requests currently processed by the service response terminal;
The service response terminal executes the corresponding handling flow of the service handling request, and uploads the service data output when the handling flow is executed to the server in a preset time period, so that the server imports the service data to the storage address;
if the server detects the abnormal information of the terminal related to the service response terminal, selecting the service response terminal in a normal state from the service response system as a target response terminal, and sending each service handling request in the service response list and the service data related to the service handling request to the target response terminal;
the target response terminal responds to the service handling request according to the service data;
the service response terminal, if receiving a service handling request, sends a service registration instruction about the service handling request to the server, including:
the service response terminal determines the service type of the service handling request;
the service response terminal acquires a history service record of the service type; the history service record comprises service response time and creation time;
The service response terminal imports the response characteristic value conversion model of each service response time length and the creation time, and calculates the response characteristic value of the service type; the response characteristic value conversion model specifically comprises the following steps:
wherein AVGTime is a response characteristic value; currenttime is the time value of the current moment; historytime i Creating time for the ith history service record; answetime i Service response time length of the i-th history service record; n is the total number of the history service records; que is a preset coefficient;
if the service response terminal detects that the response characteristic value is larger than a preset uploading threshold value, a service registration instruction about the service handling request is sent to the server;
and if the server detects the abnormal information of the terminal related to the service response terminal, selecting the service response terminal in a normal state from the service response system as a target response terminal, wherein the method comprises the following steps:
the server acquires the operation parameters of each service response terminal in a normal state and the number of service handling requests processed at the current moment;
the server imports the operation parameters and the service handling request number into a preset priority selection model, and calculates the priority of each service response terminal in a normal state; the priority selection model specifically comprises the following steps:
PRI (j) is the priority of the j-th service response terminal in a normal state; runPrmeter j Responding the operation parameters of the terminal for the j-th service in a normal state; runPrmeter k Responding the operation parameters of the terminal for the j-th service in a normal state; requst j Clothing in normal state for jThe service handling request number of the service response terminal; requst k The number of service handling requests of the kth service response terminal in a normal state; m is the number of service response terminals in a normal state; alpha is a preset coefficient;
and the server identifies the service response terminal with the highest priority in the normal state as the target response terminal.
2. The method according to claim 1, wherein the server selecting a service response terminal in a normal state from within the service response system as a target response terminal if terminal abnormality information about the service response terminal is detected, comprising:
the service response terminal sends a heartbeat data packet to the server in a preset heartbeat period;
and if the server does not receive the heartbeat data packet in the heartbeat period, generating the terminal abnormality information about the service response terminal.
3. The method as recited in claim 1, further comprising:
the service response terminal sends service log-out information to the server if detecting a service completion instruction about the service handling request;
the server receives the service log-out information, deletes the service handling request from the service response list, and sets the occupied state of the storage address to be idle.
4. A service response system, characterized in that the service response system comprises a server and at least two service response terminals;
the service response terminal is used for sending a service registration instruction about the service handling request to the server if the service handling request is received;
the server is used for receiving the service registration instruction, creating a storage address associated with the service handling request in a service monitoring database, and adding the service registration instruction to a service response list of the service response terminal; the service response list is used for recording all service handling requests currently processed by the service response terminal;
the service response terminal is used for executing the corresponding handling flow of the service handling request, and uploading the service data output when the handling flow is executed to the server in a preset time period so that the server imports the service data to the storage address;
The server is used for selecting a service response terminal in a normal state from the service response system as a target response terminal if the terminal abnormality information about the service response terminal is detected, and sending each service handling request in the service response list and the service data related to the service handling request to the target response terminal;
the target response terminal is used for responding to the service handling request according to the service data;
the service response terminal is further configured to:
the service response terminal is used for determining the service type of the service handling request;
the service response terminal is used for acquiring the history service record of the service type; the history service record comprises service response time and creation time;
the service response terminal is used for importing the service response time length and the creation time into a response characteristic value conversion model and calculating the response characteristic value of the service type; the response characteristic value conversion model specifically comprises the following steps:
wherein AVGTime is a response characteristic value; currenttime is the time value of the current moment; historytime i Creation of a history service record for the ith said history Time; answetime i Service response time length of the i-th history service record; n is the total number of the history service records; que is a preset coefficient;
the service response terminal is used for sending a service registration instruction about the service handling request to the server if the response characteristic value is detected to be larger than a preset uploading threshold value;
the server is further configured to:
the server is used for acquiring the operation parameters of each service response terminal in a normal state and the number of service handling requests processed at the current moment;
the server is used for importing the operation parameters and the service handling request number into a preset priority selection model and calculating the priority of each service response terminal in a normal state; the priority selection model specifically comprises the following steps:
PRI (j) is the priority of the j-th service response terminal in a normal state; runPrmeter j Responding the operation parameters of the terminal for the j-th service in a normal state; runPrmeter k Responding the operation parameters of the terminal for the j-th service in a normal state; requst j The number of service handling requests of the j-th service response terminal in a normal state; requst k The number of service handling requests of the kth service response terminal in a normal state; m is the number of service response terminals in a normal state; alpha is a preset coefficient;
and the server is used for identifying the service response terminal with the highest priority in the normal state as the target response terminal.
5. A service response system, the service response system comprising: a server and at least two service response terminals; the service response terminal comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and the following steps are realized when the processor of the service response terminal executes the computer program:
the service response terminal sends a service registration instruction about the service handling request to the server if receiving the service handling request;
the service response terminal executes the corresponding handling flow of the service handling request, and uploads the service data output when the handling flow is executed to the server in a preset time period, so that the server imports the service data to a storage address;
the service response terminal responds to the service handling request according to the service data;
The service response terminal, if receiving a service handling request, sends a service registration instruction about the service handling request to the server, including:
the service response terminal determines the service type of the service handling request;
the service response terminal acquires a history service record of the service type; the history service record comprises service response time and creation time;
the service response terminal imports the response characteristic value conversion model of each service response time length and the creation time, and calculates the response characteristic value of the service type; the response characteristic value conversion model specifically comprises the following steps:
wherein AVGTime is a response characteristic value; currenttime is the time value of the current moment; historytime i Creating time for the ith history service record; answetime i Service response time length of the i-th history service record; n is the total number of the history service records; que is a preset coefficient;
if the service response terminal detects that the response characteristic value is larger than a preset uploading threshold value, a service registration instruction about the service handling request is sent to the server
The server comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor of the server implementing the following steps when executing the computer program:
The server receives the service registration instruction, creates a storage address associated with the service handling request in a service monitoring database, and adds the service registration instruction to a service response list of the service response terminal; the service response list is used for recording all service handling requests currently processed by the service response terminal;
if the server detects the abnormal information of the terminal related to the service response terminal, selecting the service response terminal in a normal state from the service response system as a target response terminal, and sending each service handling request in the service response list and the service data related to the service handling request to the target response terminal;
and if the server detects the abnormal information of the terminal related to the service response terminal, selecting the service response terminal in a normal state from the service response system as a target response terminal, wherein the method comprises the following steps:
the server acquires the operation parameters of each service response terminal in a normal state and the number of service handling requests processed at the current moment;
the server imports the operation parameters and the service handling request number into a preset priority selection model, and calculates the priority of each service response terminal in a normal state; the priority selection model specifically comprises the following steps:
Wherein PRI (j) is the jth service response in normal statePriority of the terminal; runPrmeter j Responding the operation parameters of the terminal for the j-th service in a normal state; runPrmeter k Responding the operation parameters of the terminal for the j-th service in a normal state; requst j The number of service handling requests of the j-th service response terminal in a normal state; requst k The number of service handling requests of the kth service response terminal in a normal state; m is the number of service response terminals in a normal state; alpha is a preset coefficient;
and the server identifies the service response terminal with the highest priority in the normal state as the target response terminal.
6. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method steps of the service response as in any of claims 1 to 3.
CN201811339547.9A 2018-11-12 2018-11-12 Service response method and system Active CN109584105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811339547.9A CN109584105B (en) 2018-11-12 2018-11-12 Service response method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811339547.9A CN109584105B (en) 2018-11-12 2018-11-12 Service response method and system

Publications (2)

Publication Number Publication Date
CN109584105A CN109584105A (en) 2019-04-05
CN109584105B true CN109584105B (en) 2023-10-17

Family

ID=65922224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811339547.9A Active CN109584105B (en) 2018-11-12 2018-11-12 Service response method and system

Country Status (1)

Country Link
CN (1) CN109584105B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138837B (en) * 2019-04-15 2021-12-28 平安科技(深圳)有限公司 Request processing method and device, computer equipment and storage medium
CN110795596B (en) * 2019-11-07 2023-05-09 北京首钢自动化信息技术有限公司 Information feedback method and device for client
CN112929191B (en) * 2019-12-05 2023-08-15 马上消费金融股份有限公司 Service monitoring method, system, related equipment and device
CN111131401B (en) * 2019-12-05 2022-09-23 深圳市优必选科技股份有限公司 Service request response method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291465A (en) * 2011-08-31 2011-12-21 北京星网锐捷网络技术有限公司 Load balancing method, device and system
CN103188110A (en) * 2013-03-29 2013-07-03 汉柏科技有限公司 Zookeeper-based cloud platform service hot backup method
CN104123686A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Method, equipment and system for handling business
CN106856489A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of service node switching method and apparatus of distributed memory system
CN107918913A (en) * 2017-11-20 2018-04-17 中国银行股份有限公司 Banking processing method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102184492B1 (en) * 2013-11-19 2020-11-30 삼성전자주식회사 Server, user terminal apparatus and method for streaming data service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291465A (en) * 2011-08-31 2011-12-21 北京星网锐捷网络技术有限公司 Load balancing method, device and system
CN103188110A (en) * 2013-03-29 2013-07-03 汉柏科技有限公司 Zookeeper-based cloud platform service hot backup method
CN104123686A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Method, equipment and system for handling business
CN106856489A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of service node switching method and apparatus of distributed memory system
CN107918913A (en) * 2017-11-20 2018-04-17 中国银行股份有限公司 Banking processing method, device and system

Also Published As

Publication number Publication date
CN109584105A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109584105B (en) Service response method and system
CN111818159B (en) Management method, device, equipment and storage medium of data processing node
US10348809B2 (en) Naming of distributed business transactions
TWI685226B (en) Service addressing method and device in decentralized environment
CN106375420B (en) Server cluster intelligent monitoring system and method based on load balancing
CN112231075B (en) Cloud service-based server cluster load balancing control method and system
US8533731B2 (en) Apparatus and method for distrubuting complex events based on correlations therebetween
WO2021159638A1 (en) Method, apparatus and device for scheduling cluster queue resources, and storage medium
CN111176803B (en) Service processing method, device, server and storage medium
CN108200218B (en) Method and device for realizing load balance and electronic equipment
US20160080267A1 (en) Monitoring device, server, monitoring system, monitoring method and program recording medium
CN108446172B (en) Data calling method and device, computer equipment and storage medium
CN107908465A (en) The method for scheduling task of big data platform
CN107872517A (en) A kind of data processing method and device
US11526784B2 (en) Real-time server capacity optimization tool using maximum predicted value of resource utilization determined based on historica data and confidence interval
EP3031172A1 (en) Managing data feeds
CN116302580B (en) Method and device for scheduling calculation force resources of nano relay
CN108234658B (en) Method and device for sensing health condition of server cluster and server
US20190132384A1 (en) Computer system and method of controlling data processing
CN115643271A (en) Method, device, server and medium for synchronizing multi-application data on cloud
CN113794646A (en) Monitoring data transmission system and method for energy industry
WO2019237543A1 (en) Database switching method and system
CN118585405B (en) Computing power distribution method based on cloud edge intelligent cooperation
CN116389584B (en) Cloud edge data transmission method for electrochemical energy storage station
JP5364932B2 (en) Timeout monitoring system and timeout monitoring program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant