CN110795669A - Form page response processing method and device - Google Patents

Form page response processing method and device Download PDF

Info

Publication number
CN110795669A
CN110795669A CN201911030822.3A CN201911030822A CN110795669A CN 110795669 A CN110795669 A CN 110795669A CN 201911030822 A CN201911030822 A CN 201911030822A CN 110795669 A CN110795669 A CN 110795669A
Authority
CN
China
Prior art keywords
processing
thread
data
client
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911030822.3A
Other languages
Chinese (zh)
Other versions
CN110795669B (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.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information 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 Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201911030822.3A priority Critical patent/CN110795669B/en
Publication of CN110795669A publication Critical patent/CN110795669A/en
Application granted granted Critical
Publication of CN110795669B publication Critical patent/CN110795669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a form page response processing method and a form page response processing device, wherein the method comprises the following steps: receiving a form submission request triggered by a client; starting a main thread and at least one sub-thread, processing the request and monitoring the processing time of the main thread; if the time for executing the processing exceeds the processing response time threshold, interrupting the processing of the main thread and returning and submitting prompt information to the client; receiving a form submission request triggered again by the client; and judging whether the at least one sub thread is processed or not, if so, executing corresponding operation according to the processing result of the at least one sub thread. The method and the device for processing the form page response improve the problems of overlong user waiting time, poor experience and the like caused by overlong form page response processing time, and the response processing of the form page is fed back to the user prompt information in time by monitoring the processing response time threshold, so that the user waiting time is reduced.

Description

Form page response processing method and device
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a form page response processing method and device.
Background
When a user performs operations such as configuration entry of information (for example, setting item information) in a form page (for example, an H5 page, an applet page, and the like) at the front end, form data needs to be submitted. After receiving the submitted form data, the backend needs to process the data to return a corresponding result. This process is a response process of the back end to the form page.
When the back end responds to the submitted form data, the time consumption is more, different from the time consumption of the front end in query operation and the like. The back end not only needs to store the submitted form data, but also needs to verify the submitted form data before the storage operation, verify the legality of various data and the like, and the verification operation can generate a large amount of query processing, and especially when the verification involves the underlying business and the model is too complex, the verification time can be greatly increased. After the verification is successful, the submitted form data can be written, so that the user needs to wait for several seconds or even dozens of seconds on the front-end page, and the user feels that the front-end page is in a blocked or waiting state. Since the user does not understand the specific progress of the back end, it is highly likely that a malfunction (such as re-request, closing the front end page, etc.) will occur. Although the check and the commit can be separated by using a completely asynchronous mode, the operations limit operations such as commit storage and the like which are required to be performed after the check, so that the operations cannot be asynchronously processed.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a form page response processing method and apparatus that overcome the above problems or at least partially solve the above problems.
According to an aspect of the embodiments of the present invention, there is provided a form page response processing method, including:
receiving a form submission request triggered by a client;
starting a main thread and at least one sub-thread, processing the request and monitoring the processing time of the main thread; if the time for executing the processing exceeds the processing response time threshold, interrupting the processing of the main thread and returning and submitting prompt information to the client;
receiving a form submission request triggered again by the client;
and judging whether the at least one sub thread is processed or not, if so, executing corresponding operation according to the processing result of the at least one sub thread.
Optionally, when the processing of the back-end main thread is interrupted, the method further includes:
and continuing to execute the processing by at least one sub-thread, and storing the processing result in the back-end cache after the processing is finished by the execution of at least one sub-thread.
Optionally, the form submission request carries form data;
determining whether the at least one child thread has completed processing further comprises:
judging whether the form data carried in the received form submission request triggered again by the client is the same as the form data in the back-end cache or not;
if yes, at least one sub thread is judged to be processed.
Optionally, the form data comprises user data, item data and/or service data;
the processing is specifically to perform qualification verification processing on the user data; and/or performing data compliance verification processing on the article data and/or the service data.
Optionally, performing the corresponding operation according to the processing result of the at least one child thread further includes:
if the processing result is successful in verification, submitting and storing the form data carried by the form submitting request and returning the processing result to the client;
and if the processing result is verification failure, returning a client verification failure prompt.
According to another aspect of the embodiments of the present invention, there is provided a form page response processing apparatus, including:
the first receiving module is suitable for receiving a form submission request triggered by a client;
the processing module is suitable for starting the main thread and at least one sub-thread, processing the request and monitoring the processing time of the main thread; if the time for executing the processing exceeds the processing response time threshold, interrupting the verification processing of the main thread, and returning and submitting prompt information to the client;
the second receiving module is suitable for receiving the form submission request triggered again by the client;
the judging module is suitable for judging whether at least one sub thread is processed or not;
and the execution module is suitable for executing corresponding operation according to the processing result of the at least one sub thread if the judgment module judges that the at least one sub thread finishes processing.
Optionally, the apparatus further comprises:
and the storage module is suitable for continuously executing the processing by at least one sub thread, and stores the processing result in the back-end cache after the processing is finished by the execution of at least one sub thread.
Optionally, the form submission request carries form data;
the determination module is further adapted to:
judging whether the form data carried in the received form submission request triggered again by the client is the same as the form data in the back-end cache or not;
if yes, at least one sub thread is judged to be processed.
Optionally, the form data comprises user data, item data and/or service data;
the processing is specifically to perform qualification verification processing on the user data; and/or performing data compliance verification processing on the article data and/or the service data.
Optionally, the execution module is further adapted to:
if the processing result is successful in verification, submitting and storing the form data carried by the form submitting request and returning the processing result to the client; and if the processing result is verification failure, returning a client verification failure prompt.
According to still another aspect of an embodiment of the present invention, there is provided a computing device including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the form page response processing method.
According to another aspect of the embodiments of the present invention, there is provided a computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes a processor to perform an operation corresponding to the above form page response processing method.
According to the form page response processing method and device provided by the embodiment of the invention, a form submission request triggered by a client is received; starting a main thread and at least one sub-thread, processing the request and monitoring the processing time of the main thread; if the time for executing the processing exceeds the processing response time threshold, interrupting the processing of the main thread and returning and submitting prompt information to the client; receiving a form submission request triggered again by the client; and judging whether the at least one sub thread is processed or not, if so, executing corresponding operation according to the processing result of the at least one sub thread. The method and the device for processing the form page response improve the problems of overlong user waiting time, poor experience and the like caused by overlong form page response processing time, and the response processing of the form page is fed back to the user prompt information in time by monitoring the processing response time threshold, so that the user waiting time is reduced. For the processing of the form submission request, the back end starts the main thread and the at least one sub-thread to execute concurrently, so that the time spent on the processing is transparent to the user, the submission request can be quickly responded to and processed when the form submission request triggered again by the client is received, the quick processing can be realized, the processing result of the form submission request of the user can be conveniently and quickly fed back, and the bad experience that the user waits for the overlong time of the form submission request is greatly improved.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the embodiments of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the embodiments of the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a method for processing a form page response according to an embodiment of the invention;
FIG. 2 is a block diagram illustrating an architecture of a form page response processing apparatus according to an embodiment of the present invention;
FIG. 3 shows a schematic structural diagram of a computing device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating a form page response processing method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step S101, receiving a form submission request triggered by a client.
The form submission request triggered by the client is generally triggered by a user in a front-end form page displayed by the client, the form submission request carries form data, and the front-end form page can set the form data according to specific implementation conditions. The front form page may take the form of a page containing form items, such as the H5 page, applet page, etc. The user submits on the front-end form page, so that a form submitting request which is triggered by the client on the front-end form page and carries form data can be received. The form data comprises specific page items in the front-end form page and can also comprise submitted user data, and after a form submission request triggered by the client is received, the front-end form page waits for a response state.
And step S102, starting the main thread and at least one sub-thread, processing the request and monitoring the time for executing the processing by the main thread.
And after receiving the form submission request of the client, processing the form submission request. For the form submission request, in order to guarantee the data requirements of various aspects such as accuracy, reasonableness and legality of the form data, when the form submission request is processed, the form data is generally processed before being stored. Specifically, the form data includes, for example, user data, article data, service data, and the like, and the processing specifically includes performing qualification verification processing on the user data, performing data compliance verification processing on the article data and/or the service data, and the like. The qualification verification processing of the user data specifically comprises the steps of verifying whether the user data is qualified or not according to the user data, whether a user has authority to submit form data or not, whether the form data submitted by the user is consistent with the user data or not and the like; the data compliance verification processing of the article data and the service data specifically includes whether the data values, types and the like of the article data and the service data correctly conform to the verification regulations; item data, whether service data has a right to be submitted for operation, and the like.
In this embodiment, the back end executes the processing, where the back end is opposite to the front-end form page, and is specifically a server-side back end. And simultaneously starting multi-thread concurrent processing at the back end, for example, starting at least one sub-thread, and concurrently executing the processing of the form data by the at least one sub-thread and the main thread. Specifically, a sub-thread is started, and the sub-thread and the main thread simultaneously execute the same processing on the form data. The main thread executes the processing, so that the processing time is monitored, and the long-term waiting state of a front-end form page of the client caused by long time spent in the processing process is avoided.
Further, if a plurality of pieces of data to be verified exist in the processing of the form data, and there is no relation such as processing precedence order relation, association relation, etc. among the plurality of pieces of data to be verified, that is, there are a plurality of separable independent pieces of data to be verified, a plurality of sub-threads may be opened at the back end, the processing performed on the single piece of data is distributed to different sub-threads to be executed, and the plurality of sub-threads execute together to complete a plurality of processing pairs of single pieces of data. When the relation such as the precedence order relation, the incidence relation and the like during processing is involved, namely the relation is not separable, and when the form data needs to be checked according to the checking precedence order, the incidence relation and the like, the processing is executed by one sub thread. And after one or more sub-threads finish processing the form data, storing the form data and a processing result corresponding to the obtained form data in a back-end cache. The stored form data and the processing result of the form data have a corresponding relationship, and can be stored in a key value pair mode and the like.
Step S103, monitoring whether the time for the main thread to execute the processing exceeds a processing response time threshold.
When the form data includes large data and the verification process is complex, the time for the main thread to execute the process may reach 30s, and the user needs to spend a long time waiting for the response, resulting in poor user experience. The processing response time threshold is set according to feedback information of user bearable response time when processing is executed or according to time data of historical execution processing, and can also be set according to specific implementation situations. In order to reduce the waiting response of the user, the processing response time threshold value can be set to be 1s, for example, if the processing of the form data is not completed within the processing response time threshold value, the user is responded first, and the anxiety of the user waiting for the response is reduced. Specifically, when the main thread executes processing on the form data, the time for executing the processing is monitored. The time for the main thread to execute the processing is compared with the processing response time threshold, and if the time exceeds the processing response time threshold, step S104 is executed.
Further, if the time for the main thread to execute the processing is relatively short, that is, the processing of the form data is relatively simple, and the processing response time threshold is not exceeded, the processing result of the form data can be directly obtained within the processing response time threshold, and the embodiment can directly perform subsequent operations according to the processing result of the form data. Aiming at the conditions that the form data processing is complex and the processing time is more, the embodiment can greatly improve the experience effect of waiting for the response time of the user.
And step S104, interrupting the processing of the main thread and returning and resubmitting prompt information to the client.
And interrupting the processing of the form data by the current main thread, directly returning resubmission prompt information to the client, and resubmitting the resubmission prompt information according to the returned resubmission prompt information without continuously waiting. At this time, the processing of the form data by at least one sub-thread is continuously executed until the processing of the form data is completed, and the form data and the processing result of the form data are stored.
The resubmission prompt information displayed by the client can be displayed, for example, that the system is busy, the user asks for a later retrying, and the like. Further, according to the resubmission prompt information, the user does not need to wait for the response of the page all the time in the processing mode adopted by the prior art, and can restart the form submission request for the front form page at a later time. After the front-end form page displays the resubmission prompt information, data and the like in the page are not processed, and the front-end form page stays at the current front-end form page, so that a user can conveniently trigger the form submission request again at the client.
And step S105, receiving a form submission request triggered again by the client, and judging whether at least one sub-thread completes processing.
When a form submission request which is triggered again by the client and carries form data is received, whether the form data carried in the received form submission request which is triggered again by the client is the same as the form data in the back-end cache or not is judged, if yes, at least one sub-thread is processed, the back-end stores the processing result of the form data, the processing result corresponding to the form data can be directly obtained from the back-end cache, and step S106 is executed.
Further, for the form submission request triggered by the client, the form data carried in the received form submission request triggered again by the client is judged to be the same as the form data in the back-end cache, so that the processing result of the form data stored in the back end is obtained, and the form submission request is quickly responded. When the received form data carried in the form submission request triggered again by the client is judged to be different from the form data in the back-end cache, namely the back end does not store the processing result of the form data, the main thread and at least one sub-thread can be started first and the request is processed, the execution processing time of the main thread is monitored, and the submitted form submission request is responded quickly by submitting prompt information again. When the form data carried in the re-received form submission request triggered by the client again is judged to be the same as the form data in the back-end cache, namely the back end stores the processing result of the form data, the processing result of the form data can be directly obtained to perform subsequent operation on the form data, and the waiting response time of a user is greatly shortened.
Further, if the processing is the checking processing of the user data, when different front-end form pages use the same user data to carry out form submission requests, after the checking processing of the user data is completed for the first time and the processing result of the checking processing is stored, after whether the form data carried in the form submission request triggered by the receiving client again is the same as the form data in the back-end cache is judged, the user data in the form data received again can be compared with the user data of the form data in the back-end cache, if the user data are consistent, the processing result of the form data is directly obtained, the subsequent operation is carried out on the form data, the time spent on the checking processing of the user data when the form submission request is submitted every time is reduced, and the response time is greatly improved.
Further, the processing result of the form data stored in the back-end cache can set a cache time limit, and the processing result of the form data stored in the back-end cache is cleared after the storage reaches the cache time limit, so that the problems that the processing result of the stored form data is not updated in time due to the change of the qualification check of the user data, the stored processing result of the form data is incorrect and the like are solved.
And step S106, executing corresponding operation according to the processing result of at least one sub thread.
And according to the processing result, if the processing result is successful in verification, submitting and storing the form data, and returning the result of submitting and storing the form data to the client. If the processing result is verification failure, a client verification failure prompt is returned, and the user can submit a form submission request of new form data after the form data is modified again on the front-end form page of the client.
From receiving a form submission request carrying form data triggered again by a client, to executing corresponding operations according to processing results, the embodiment can directly acquire the processing results of the stored form data from a back-end cache, and submit and store the processing results, so that the time of the front-end form page in a waiting state is greatly shortened.
According to the form page response processing method provided by the embodiment of the invention, a form submission request triggered by a client is received; starting a main thread and at least one sub-thread, processing the request and monitoring the processing time of the main thread; if the time for executing the processing exceeds the processing response time threshold, interrupting the processing of the main thread and returning and submitting prompt information to the client; receiving a form submission request triggered again by the client; and judging whether the at least one sub thread is processed or not, if so, executing corresponding operation according to the processing result of the at least one sub thread. The method and the device for processing the form page response improve the problems of overlong user waiting time, poor experience and the like caused by overlong form page response processing time, and the response processing of the form page is fed back to the user prompt information in time by monitoring the processing response time threshold, so that the user waiting time is reduced. For the processing of the form submission request, the back end starts the main thread and the at least one sub-thread to execute concurrently, so that the time spent on the processing is transparent to the user, the submission request can be quickly responded to and processed when the form submission request triggered again by the client is received, the quick processing can be realized, the processing result of the form submission request of the user can be conveniently and quickly fed back, and the bad experience that the user waits for the overlong time of the form submission request is greatly improved.
Fig. 2 is a block diagram illustrating a structure of a form page response processing apparatus according to an embodiment of the present invention, and as shown in fig. 2, the apparatus includes:
the first receiving module 210 is adapted to: receiving a form submission request triggered by a client;
the processing module 220 is adapted to: starting a main thread and at least one sub-thread, concurrently processing the request, and monitoring the time for executing the processing by the main thread; if the execution processing time exceeds the verification response time threshold, interrupting the verification processing of the main thread and returning and submitting prompt information to the client;
the second receiving module 230 is adapted to: receiving a form submission request triggered again by the client;
the determination module 240 is adapted to: judging whether at least one sub thread is processed or not;
the execution module 250 is adapted to: if the determining module 240 determines that at least one sub-thread has completed processing, corresponding operations are executed according to the processing result of at least one sub-thread.
Optionally, the apparatus further comprises: the storage module 260 is adapted to: and continuing to execute the processing by at least one sub-thread, and storing the processing result in the back-end cache after the processing is finished by the execution of at least one sub-thread.
Optionally, the form submission request carries form data; the determining module 240 is further adapted to: judging whether the form data carried in the received form submission request triggered again by the client is the same as the form data in the back-end cache or not; if yes, at least one sub thread is judged to be processed.
Optionally, the execution module 250 is further adapted to: if the processing result is successful in verification, submitting and storing the form data carried by the form submitting request and returning the processing result to the client; and if the processing result is verification failure, returning a client verification failure prompt.
The descriptions of the modules refer to the corresponding descriptions in the method embodiments, and are not repeated herein.
According to the form page response processing device provided by the embodiment of the invention, the problems of overlong user waiting time, poor experience and the like caused by overlong form page response processing time are solved, and the response processing of the form page is fed back to the user prompt information in time by monitoring the processing response time threshold, so that the user waiting time is reduced. For the processing of the form data, the back end starts the main thread and the at least one sub-thread to execute concurrently, so that the time spent on the processing is transparent to the user, the processing can be performed by quickly responding to the submission request when the form submission request carrying the form data triggered again by the client is received, the fast processing can be realized, the processing result of the form submission request of the user can be fed back conveniently and quickly, and the bad experience that the user waits for the overlong time of the form submission request is greatly improved.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the executable instruction can execute the form page response processing method in any method embodiment.
Fig. 3 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and a specific embodiment of the present invention does not limit a specific implementation of the computing device.
As shown in fig. 3, the computing device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein:
the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically execute relevant steps in the above embodiment of the form page response processing method.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may be specifically configured to enable the processor 302 to execute the form page response processing method in any of the above-described method embodiments. For specific implementation of each step in the program 310, reference may be made to corresponding steps and corresponding descriptions in units in the above form page response processing embodiment, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of embodiments of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best modes of embodiments of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, the claimed embodiments of the invention require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of an embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of and form different embodiments of the invention. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention. Embodiments of the invention may also be implemented as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing embodiments of the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the embodiments of the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. Embodiments of the invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (10)

1. A form page response processing method, comprising:
receiving a form submission request triggered by a client;
starting a main thread and at least one sub-thread, processing the request and monitoring the processing time of the main thread; if the time for executing the processing exceeds the processing response time threshold, interrupting the processing of the main thread and returning and submitting prompt information to the client;
receiving a form submission request triggered again by the client;
and judging whether the at least one sub thread is processed or not, if so, executing corresponding operation according to the processing result of the at least one sub thread.
2. The method of claim 1, wherein, when the interrupting the processing of the back-end main thread, the method further comprises:
and continuing to execute the processing by the at least one sub-thread, and storing the processing result in a back-end cache after the execution of the at least one sub-thread is finished.
3. The method of claim 2, wherein the form submission request carries form data;
the determining whether the at least one child thread has completed processing further comprises:
judging whether the form data carried in the received form submission request triggered again by the client is the same as the form data in the back-end cache or not;
if yes, the at least one sub thread is judged to be processed.
4. The method of claim 3, wherein the form data comprises user data, item data, and/or service data;
the processing is specifically qualification verification processing on the user data; and/or performing data compliance verification processing on the article data and/or the service data.
5. The method of any of claims 1-4, wherein the performing corresponding operations according to the processing result of the at least one child thread further comprises:
if the processing result is successful in verification, submitting and storing the form data carried by the form submitting request and returning the processing result to the client;
and if the processing result is verification failure, returning a client verification failure prompt.
6. A form page response processing apparatus, comprising:
the first receiving module is suitable for receiving a form submission request triggered by a client;
the processing module is suitable for starting a main thread and at least one sub-thread, processing the request and monitoring the processing time of the main thread; if the time for executing the processing exceeds the processing response time threshold, interrupting the verification processing of the main thread, and returning and submitting prompt information to the client;
the second receiving module is suitable for receiving the form submission request triggered again by the client;
the judging module is suitable for judging whether the at least one sub thread is processed or not;
and the execution module is suitable for executing corresponding operation according to the processing result of the at least one sub thread if the judgment module judges that the at least one sub thread finishes processing.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the storage module is suitable for continuing to execute the processing by the at least one sub thread, and after the at least one sub thread finishes executing the processing, storing the processing result in a back-end cache.
8. The apparatus of claim 7, wherein the form submission request carries form data;
the determination module is further adapted to:
judging whether the form data carried in the received form submission request triggered again by the client is the same as the form data in the back-end cache or not;
if yes, the at least one sub thread is judged to be processed.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the form page response processing method of any one of claims 1-5.
10. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the form page response processing method of any one of claims 1-5.
CN201911030822.3A 2019-10-28 2019-10-28 Form page response processing method and device Active CN110795669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911030822.3A CN110795669B (en) 2019-10-28 2019-10-28 Form page response processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911030822.3A CN110795669B (en) 2019-10-28 2019-10-28 Form page response processing method and device

Publications (2)

Publication Number Publication Date
CN110795669A true CN110795669A (en) 2020-02-14
CN110795669B CN110795669B (en) 2022-03-29

Family

ID=69441655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911030822.3A Active CN110795669B (en) 2019-10-28 2019-10-28 Form page response processing method and device

Country Status (1)

Country Link
CN (1) CN110795669B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287644A (en) * 2020-09-30 2021-01-29 成都新潮传媒集团有限公司 Data submission method and device, computer equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180191869A1 (en) * 2016-12-29 2018-07-05 Microsoft Technology Licensing, Llc Optimized syncing of metadata changes using chunked response
CN109408214A (en) * 2018-11-06 2019-03-01 北京字节跳动网络技术有限公司 A kind of method for parallel processing of data, device, electronic equipment and readable medium
CN110188016A (en) * 2019-05-24 2019-08-30 努比亚技术有限公司 Detection method, terminal and storage medium of the application program without response obstruction
CN110377402A (en) * 2018-04-12 2019-10-25 腾讯科技(深圳)有限公司 Business data processing method, device, storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180191869A1 (en) * 2016-12-29 2018-07-05 Microsoft Technology Licensing, Llc Optimized syncing of metadata changes using chunked response
CN110377402A (en) * 2018-04-12 2019-10-25 腾讯科技(深圳)有限公司 Business data processing method, device, storage medium and computer equipment
CN109408214A (en) * 2018-11-06 2019-03-01 北京字节跳动网络技术有限公司 A kind of method for parallel processing of data, device, electronic equipment and readable medium
CN110188016A (en) * 2019-05-24 2019-08-30 努比亚技术有限公司 Detection method, terminal and storage medium of the application program without response obstruction

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287644A (en) * 2020-09-30 2021-01-29 成都新潮传媒集团有限公司 Data submission method and device, computer equipment and readable storage medium
CN112287644B (en) * 2020-09-30 2024-01-30 成都新潮传媒集团有限公司 Data submitting method, device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN110795669B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
JP2010211696A5 (en) Program and information processing apparatus
JP2006524381A5 (en)
US9170837B2 (en) Transaction concurrent execution control system, method and program for carrying out a control of concurrently executing a transaction, including measuring execution time from starting to ending of transaction execution
CN110795669B (en) Form page response processing method and device
CN115481058A (en) Execution method, device, access module and system of memory atomic operation instruction
CN112817995A (en) Data processing method and device, electronic equipment and storage medium
CN104753909A (en) Updated information authentication method, device and system
US10394557B2 (en) Debugging data processing transactions
CN107038025B (en) SOA architecture-based system calling method and device
CN110175182B (en) Data checking method and device
CN108062224A (en) Data read-write method, device and computing device based on file handle
CN113763116A (en) Order information processing method, device, equipment and readable storage medium
CN110765144B (en) Distributed heterogeneous database data processing method and device
CN108848183B (en) Login method and device for simulation user
CN110515553B (en) Volume deleting method and device
CN110008010A (en) System call method, device, equipment and readable storage medium storing program for executing
JP2944321B2 (en) Logical evaluation system
CN110728501B (en) Incoming part processing method and incoming part system
CN111611077A (en) Task parameter processing method, terminal and storage medium
CN115422519A (en) User verification method and device
US20240095114A1 (en) Intelligent healing of mainframe job errors
JPS6212538B2 (en)
US20240095116A1 (en) Early detection and avoidance of mainframe job errors
CN116450316A (en) Method, device, electronic equipment and storage medium for parallel transaction processing
CN113516464A (en) Payment information processing method and device

Legal Events

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