High-concurrency request method, system, medium, product and front-end server
By creating virtual domains in browser memory and processing business documents in groups, the problems of time consumption and data inconsistency in high-concurrency requests of ERP products are solved, achieving efficient and controllable concurrent processing and ensuring the stability and timeliness of business processes.
Patent Information
- Application Number
- CN202511745498.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-03-20
- Estimated Expiration
- 2045-11-26
AI Technical Summary
Existing ERP products suffer from issues such as long processing times, inconsistent data order, and browser TCP connection limitations when handling high-concurrency requests. In particular, batch payment processes are prone to business delays due to untimely manual review.
By creating multiple virtual domains in the browser's memory, business documents are processed concurrently in groups. The front-end processor is used for pre-inspection and group sending, which breaks through the browser's TCP connection limit and enables multi-path concurrent requests.
It improves the efficiency of concurrent processing of business documents, ensures data consistency and timely response to anomalies, reduces the complexity of system transformation and resource waste, and enhances users' controllability over business processing.
Smart Images

Figure CN121193818B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, in particular to a high-concurrency request method, system, medium, product and front-end server. BACKGROUND
[0002] The statements in this section merely provide background technology related to the present application and do not necessarily constitute prior art.
[0003] With the development of informatization, digitization and intelligentization, the technical base of ERP (Enterprise Resource Planning) products continues to expand, and the business demands of customers continue to expand, resulting in more and more content and more and more complexity of ERP products, resulting in some business processes requiring a large number of microservices, resulting in complex and time-consuming processes. According to compliance requirements, many business processes, such as batch payment processes at the payment node, must be manually audited and processed.
[0004] In the existing scheme, the following processing strategies are included: (1) serial processing by single click of the operator on the browser side, but as the business volume increases, this way is time-consuming and difficult to meet the requirements of time and efficiency; (2) batch operation by multi-selection of the operator on the browser side, but on the one hand, multi-selection is sent in sequence, which may cause inconsistency between front-end and back-end, and on the other hand, it is limited by the default number of TCP created by the browser, and high concurrency processing cannot be achieved; (3) automatic processing by the background, but if an abnormal business processing is encountered, the operator is notified by message or warning, and in the case that the operator does not check the message or warning in time, the business is affected. SUMMARY
[0005] In order to solve the problems of the prior art, the present application provides a high-concurrency request method, system, medium, product and front-end server, which can send multiple concurrent requests completely through a single operation of the user, breaking through the TCP connection limit of the browser single domain name and improving the efficiency of business document concurrent processing.
[0006] In order to achieve the above purpose, the present application adopts the following technical scheme:
[0007] In the first aspect, the present application provides a high-concurrency request method.
[0008] A high-concurrency request method applied to a front-end processor, comprising the following processes:
[0009] An IP address of a real server of a backend is acquired, a real domain name of the backend server is determined according to the IP address, and a plurality of backup virtual domain names are created in a memory of a browser, the real domain name and the backup virtual domain names are both used as data request domain names;
[0010] When the plurality of business documents are simultaneously selected, the selected plurality of business documents are pre-inspected, and a concurrent processing instruction is initiated after pre-inspection is qualified;
[0011] When the concurrent processing business documents exceed an upper limit number N of TCP connections on a single domain name of a browser, the business documents are grouped according to a total number M of data request domain names, and each data request domain name corresponds to a group;
[0012] The business documents of each group are sent to a corresponding data request domain name, each data request domain name occupies N TCP connections, and M*N concurrent requests are generated, so that the backend real server performs concurrent processing of the business documents according to the concurrent requests.
[0013] In an implementation form of the first aspect of the application, the plurality of backup virtual domain names are created in the memory of the browser, including:
[0014] The plurality of backup virtual domain names are generated by a virtual mapping module in the front-end processor according to the real domain name mapping.
[0015] In an implementation form of the first aspect of the application, the selected plurality of business documents are pre-inspected, and the concurrent processing instruction is initiated after pre-inspection is qualified, including:
[0016] When the business document meets a preset business document rule, and the front-end processor receives a user confirmation instruction, the concurrent processing instruction is initiated.
[0017] In an implementation form of the first aspect of the application, when the business documents are grouped, the format of the business documents of each group is consistent.
[0018] Secondly, the application provides a high-concurrent request system.
[0019] A high-concurrent request system is applied to a front-end processor, including:
[0020] A domain name mapping unit is configured to acquire an IP address of a real server of a backend, determine a real domain name of the backend server according to the IP address, and create a plurality of backup virtual domain names in a memory of a browser, the real domain name and the backup virtual domain names are both used as data request domain names;
[0021] A document pre-inspection unit is configured to, when a plurality of business documents are simultaneously selected, pre-inspect the selected plurality of business documents, and initiate a concurrent processing instruction after pre-inspection is qualified;
[0022] The document grouping unit is configured such that when the number of concurrently processed business documents exceeds the browser's single domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group.
[0023] The concurrent request unit is configured to send the business documents of each group to the corresponding data request domain name. Each data request domain name occupies N TCP connections, generating M×N concurrent requests, so that the backend real server can perform concurrent processing of business documents according to the concurrent requests.
[0024] In one implementation of the second aspect of the present invention, in the domain name mapping unit, a virtual mapping module in the front-end processor is used to generate multiple backup virtual domain names based on the real domain name mapping.
[0025] Thirdly, the present invention provides a high-concurrency request system.
[0026] A high-concurrency request system, comprising a front-end server and a back-end real server that communicate with each other;
[0027] The front-end server is configured to: obtain the IP address of the back-end real server, determine the real domain name of the back-end server based on the IP address, and create multiple backup virtual domain names in the browser's memory. Both the real domain name and the backup virtual domain names serve as data request domain names. When multiple business documents are selected simultaneously, the selected business documents undergo pre-checking. If the pre-check is successful, a concurrent processing instruction is initiated. When the number of concurrently processed business documents exceeds the browser's single-domain TCP connection limit N, the business documents are grouped according to the total number M of data request domain names, with each data request domain name corresponding to one group. The business documents in each group are sent to the corresponding data request domain name, with each data request domain name occupying N TCP connections, generating M×N concurrent requests and sending them to the back-end server.
[0028] The backend server is configured to perform parallel processing of M×N concurrent requests.
[0029] Fourthly, the present invention provides a front-end server, comprising: a processor and a computer-readable storage medium;
[0030] A processor, adapted to execute computer programs;
[0031] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the high-concurrency request method of the first aspect of the present invention.
[0032] Fifthly, the present invention provides a computer-readable storage medium storing a computer program adapted to be loaded by a processor and to execute the high-concurrency request method of the first aspect of the present invention.
[0033] In a sixth aspect, the present invention provides a computer program product comprising a computer program, which, when executed by a processor, implements the high-concurrency request method of the first aspect of the present invention.
[0034] Compared with the prior art, the beneficial effects of the present invention are:
[0035] This invention innovatively designs a high-concurrency request method. First, it actively obtains the IP address of the backend real server. Then, based on this IP address, it identifies the real domain name that the backend server could normally handle requests. Simultaneously, it creates multiple backup virtual domain names in the browser's memory, allowing the real domain name and these backup virtual domain names to jointly serve as data request domain names, establishing a multi-path request sending channel. When multiple business documents are selected simultaneously, these documents are pre-checked to ensure they meet processing specifications. Then, the operator actively initiates concurrent processing commands, rather than relying on automatic backend processing. This allows the operator to monitor the document processing progress in real time, avoiding business delays caused by untimely notifications when backend processing anomalies occur.
[0036] This invention determines whether the number of business documents to be processed concurrently exceeds the browser's single-domain TCP connection limit N. If it does, the business documents are evenly divided into M groups according to the total number M of data request domains consisting of the real domain and the backup virtual domain. Each data request domain corresponds to a dedicated document group, and each group of documents is sent to the corresponding request domain. Each request domain can occupy N TCP connections to transmit the documents in the corresponding group, thereby generating multiple groups of concurrent requests. This process not only replaces the serial processing method of operators clicking one by one, solving the problem of long processing time when the business volume increases, but also avoids the problem of inconsistent front-end and back-end data order caused by sequential sending of requests in multi-selection operations. It also breaks through the browser's single-domain TCP connection limit, truly realizing high-concurrency processing and comprehensively ensuring the efficiency of business processing, data consistency, and timely response to anomalies.
[0037] Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0038] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.
[0039] Figure 1 A flowchart illustrating a high-concurrency request method provided as an exemplary embodiment of the present invention;
[0040] Figure 2 A schematic diagram of a high-concurrency request system provided as an exemplary embodiment of the present invention;
[0041] Figure 3 A schematic diagram of a high-concurrency request system provided as another exemplary embodiment of the present invention;
[0042] Figure 4 A schematic diagram of a front-end processor provided for an exemplary embodiment of the present invention. Detailed Implementation
[0043] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0044] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0045] This implementation proposes a high-concurrency request method. Below is a brief introduction to the technical terms and related concepts involved in this solution: Concurrency is an important concept in computer science, referring to the ability to process multiple tasks within the same timeframe; DNS stands for Domain Name System, a core component of the Internet, responsible for resolving easy-to-remember domain names into IP addresses that computers can understand; For system stability, the Chrome browser allows a maximum of 6 TCP connections per domain name, preventing the creation of more connections, thus other concurrent requests must wait; TCP stands for Transmission Control Protocol, a core protocol in the Internet Protocol suite, responsible for reliable data transmission over the network.
[0046] This implementation of a high-concurrency request method is applied to front-end processors, such as... Figure 1 As shown, the process includes the following:
[0047] S101: Obtain the IP address of the backend real server, determine the real domain name of the backend server based on the IP address, and create multiple backup virtual domain names in the browser memory. Both the real domain name and the backup virtual domain names are used as data request domain names.
[0048] S102: When multiple business documents are selected at the same time, perform a pre-check on the selected business documents, and initiate a concurrent processing instruction after the pre-check is passed.
[0049] S103: When the number of concurrently processed business documents exceeds the browser's single-domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group;
[0050] S104: Send the business documents of each group to the corresponding data request domain name. Each data request domain name occupies N TCP connections, generating M×N concurrent requests, so that the backend real server can perform concurrent processing of business documents according to the concurrent requests.
[0051] In this implementation, a logical processing mechanism is added to the front-end processor (i.e., the client). This mechanism can be understood as a routing system that enables the grouping and partitioning of different resources for download, similar to a virtual DNS system. On the application server, you need a multi-domain resource storage mechanism. For example, images.erp.com is used for downloading and using image-related resources, js.erp.com for downloading and using script-related resources, and css.erp.com for downloading webpage layout resources. The server generates a mapping relationship between services and domain names. The client first downloads the file, and then, based on this mapping relationship, uses different domain names when retrieving different resources. This reduces the pressure on the same domain, scales up TCP bandwidth, improves user experience, and reduces the occurrence of problems. It should be noted that domain names are just an example; this can be expanded to handle more dimensions. With more dimensions, different business scenarios and different resources can be managed separately, avoiding bandwidth pressure on the main service and network traffic contention, and accelerating service deployment.
[0052] In this implementation, the front-end processor selects the business documents that need to be reviewed or processed in batches, performs a pre-check, and requires operators to review them according to regulations. After the review is confirmed to be correct, the operator selects all approved business documents in the front-end processor and performs concurrent processing.
[0053] In this implementation, when a large number of business documents exceed the browser's 6 TCP connection limit, a map-reduce process is performed on the client side. For example, if there are 4 virtual domains and 1 real domain (i.e., including 5 data request domains), all business documents are divided into 5 groups. Then, through a concurrency mechanism, the 5 groups of business documents are sent in the same format to the 4 virtual domains and 1 real domain. Based on the browser settings, this will result in a concurrent processing of 30 business documents (5 data request domains × 6 TCP connections). The sending efficiency is 5 times that of the previous method, and the processing time for this type of business document can be completed in only slightly more than one-fifth of the previous process, greatly improving product delivery efficiency.
[0054] By inventing a high-concurrency request method, the complexity of system transformation is significantly reduced. It eliminates the need to adjust the backend DNS architecture and domain name registration system, achieving multi-path concurrency solely through creating virtual domain names at the frontend browser memory level. This avoids the process costs and increased DNS server load associated with real domain name registration, and eliminates the need to modify backend server domain name resolution configurations, service access control, and data processing logic. It can quickly adapt to the existing ERP system's technical foundation and is compatible with various B / S architecture-based business platforms, reducing the workload and risks of frontend and backend collaborative transformation. Furthermore, it improves the "efficiency" of concurrent requests by filtering invalid business documents with format errors or incompatible permissions during the pre-inspection stage, preventing invalid requests from consuming TCP connections and backend processing resources. Combined with a user-initiated confirmation mechanism, it ensures that all concurrent requests are initiated based on compliant and error-free business documents, reducing resource waste caused by invalid requests. This allows high concurrency capabilities to focus on "effective business processing" rather than simply pursuing request quantity.
[0055] This invention ensures the stability and balance of concurrent processing. Through a dynamic grouping strategy, it achieves even distribution of TCP connection load across data request domains, avoiding issues such as overload and timeouts caused by excessively large data volumes in some groups, or idle connection resources due to insufficient data volumes in others. This allows each TCP connection to fully utilize its transmission capacity, reducing the drag on overall processing progress from localized overload, making the concurrent process smoother, and lowering the request failure rate caused by uneven load. It also enhances user control over business processing and the timeliness of anomaly responses. Unlike the "passive notification" mode of automatic backend processing, the frontend achieves "proactive control" through pre-initiation checks and manual confirmation before concurrent requests are initiated. During processing, it can perceive the request status of each domain in real time. If an anomaly occurs in a request for a virtual domain (such as timeout or response error), it can quickly locate the specific group and initiate a targeted retry without re-executing the entire concurrent process, reducing the time cost of anomaly recovery and avoiding business delays caused by untimely anomaly handling.
[0056] Optionally, in other implementations, the optimal number of virtual domain names is precisely calculated using parameters such as the total number of business documents and the capacity of a single TCP connection, achieving a balance between overcoming connection limitations and controlling server overhead. Specifically, these include:
[0057] (1);
[0058] in, The optimal number of domains for data requests; Represents the total number of pending business documents; This represents the average data volume of a single business document. This represents the maximum number of TCP connections a browser can make to a single domain. This represents the maximum amount of data that a single TCP connection can transmit in a single session. Represents the floor function; This serves as the total number of domains for data requests, used for subsequent business document grouping, to avoid insufficient or redundant domains.
[0059] Optionally, in other implementations, quantitative verification of group balance ensures that the data volume of business documents in each subgroup tends to be consistent, allowing the TCP connection of each data request domain to function fully. Specifically, this includes:
[0060] (2);
[0061] in, The value represents the group balance coefficient (dimensionless), with a range of [0,1]. The closer it is to 1, the better the balance. Representing the Total amount of business document data for each group; This represents the total amount of data in the largest business document among all groups; Represents the minimum total amount of business document data in all groups; This represents the average total amount of business document data across all groups; it sets a balance threshold. (e.g., 0.8), if < If the grouping strategy is not met, the grouping strategy will be readjusted (e.g., splitting large data groups and merging small data groups) until the balance requirement is met before initiating concurrent requests.
[0062] Optionally, in other implementations, the actual utilization rate of TCP connections is calculated in real time to provide a basis for subsequent adjustment of connection resources and ensure the transmission efficiency of concurrent requests. Specifically, this includes:
[0063] (3);
[0064] in, Represents the dynamic utilization rate of TCP connections; Represents the number of business documents actually transmitted concurrently; Represents the total duration of a single concurrent transmission; if If the utilization rate is less than 0.6 (i.e., the utilization rate is too low), then recalculate according to formula (1). And reduce the number of virtual domain names; if If the utilization rate is >0.9 (too high), increase the number of virtual domains to avoid connection overload.
[0065] Figure 2 A high-concurrency request system is shown, applied to a front-end processor, comprising:
[0066] Domain name mapping unit 201 is configured to: obtain the IP address of the backend real server, determine the real domain name of the backend server based on the IP address, and create multiple backup virtual domain names in the browser memory, with both the real domain name and the backup virtual domain name serving as the data request domain name;
[0067] The document pre-inspection unit 202 is configured to: when multiple business documents are selected at the same time, perform pre-inspection on the selected multiple business documents, and initiate concurrent processing instructions after the pre-inspection is qualified;
[0068] Document grouping unit 203 is configured to: when the number of concurrently processed business documents exceeds the browser's single domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group;
[0069] Concurrent request unit 204 is configured to send the business documents of each group to the corresponding data request domain name. Each data request domain name occupies N TCP connections, generating M×N concurrent requests, so that the backend real server can perform concurrent processing of business documents according to the concurrent requests.
[0070] It is understood that the aforementioned units can be individually or entirely merged into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of the present invention. The aforementioned units are based on logical functional division. In practical applications, the function of one unit can be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of the present invention, the system may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0071] According to another embodiment of the present invention, the system of this embodiment can be constructed by running a computer program (including program code) capable of performing the steps involved in the corresponding method of the present invention on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable recording medium, loaded into the aforementioned computing device through the computer-readable recording medium, and run therein.
[0072] Figure 3 A high-concurrency request system is shown, including a front-end server 301 and a back-end real server 302 that communicate with each other;
[0073] Front-end server 301 is configured to: obtain the IP address of the back-end real server, determine the real domain name of the back-end server based on the IP address, and create multiple backup virtual domain names in the browser memory. Both the real domain name and the backup virtual domain names are used as data request domain names. When multiple business documents are selected simultaneously, the selected business documents are pre-checked. If the pre-check is successful, a concurrent processing instruction is initiated. When the number of concurrently processed business documents exceeds the browser's single domain name TCP connection limit N, the business documents are grouped according to the total number of data request domain names M, with each data request domain name corresponding to one group. The business documents of each group are sent to the corresponding data request domain name, with each data request domain name occupying N TCP connections, generating M×N concurrent requests and sending them to the back-end server.
[0074] Backend server 302 is configured to perform parallel processing of M×N concurrent requests.
[0075] Figure 4 A front-end processor is shown. The computer device includes a processor 401, a communication interface 402, and a computer-readable storage medium 403. The processor 401, communication interface 402, and computer-readable storage medium 403 can be connected via a bus or other means.
[0076] The communication interface 402 is used to receive and send data. The computer-readable storage medium 403 can be stored in the memory of the electronic device. The computer-readable storage medium 403 is used to store computer programs, which include program instructions. The processor 401 is used to execute the program instructions stored in the computer-readable storage medium 403.
[0077] The processor 401 is the computing and control core of the electronic device. It is suitable for implementing one or more instructions, specifically for loading and executing one or more instructions to achieve the corresponding method flow or corresponding function.
[0078] Processor 401 is configured to perform the following procedure:
[0079] Obtain the IP address of the real backend server, determine the real domain name of the backend server based on the IP address, and create multiple backup virtual domain names in the browser memory. Both the real domain name and the backup virtual domain names are used as data request domain names.
[0080] When multiple business documents are selected at the same time, a pre-check is performed on the selected business documents. If the pre-check is successful, a concurrent processing instruction is initiated.
[0081] When the number of concurrently processed business documents exceeds the browser's single-domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group;
[0082] The business documents of each group are sent to the corresponding data request domain name. Each data request domain name occupies N TCP connections, generating M×N concurrent requests, so that the backend real server can process the business documents concurrently according to the concurrent requests.
[0083] This invention also provides a computer-readable storage medium, which is a memory device in an electronic device for storing programs and data. It is understood that the computer-readable storage medium here may include both built-in storage media in the electronic device and extended storage media supported by the electronic device. The computer-readable storage medium provides storage space for storing the processing system of the electronic device.
[0084] Furthermore, this storage space also contains one or more instructions suitable for loading and execution by the processor. These instructions can be one or more computer programs (including program code). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory; alternatively, it can also be at least one computer-readable storage medium located remotely from the aforementioned processor.
[0085] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor loads and executes the one or more instructions stored in the computer-readable storage medium to perform the following process:
[0086] Obtain the IP address of the real backend server, determine the real domain name of the backend server based on the IP address, and create multiple backup virtual domain names in the browser memory. Both the real domain name and the backup virtual domain names are used as data request domain names.
[0087] When multiple business documents are selected at the same time, a pre-check is performed on the selected business documents. If the pre-check is successful, a concurrent processing instruction is initiated.
[0088] When the number of concurrently processed business documents exceeds the browser's single-domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group;
[0089] The business documents of each group are sent to the corresponding data request domain name. Each data request domain name occupies N TCP connections, generating M×N concurrent requests, so that the backend real server can process the business documents concurrently according to the concurrent requests.
[0090] The present invention also provides a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the following process:
[0091] Obtain the IP address of the real backend server, determine the real domain name of the backend server based on the IP address, and create multiple backup virtual domain names in the browser memory. Both the real domain name and the backup virtual domain names are used as data request domain names.
[0092] When multiple business documents are selected at the same time, a pre-check is performed on the selected business documents. If the pre-check is successful, a concurrent processing instruction is initiated.
[0093] When the number of concurrently processed business documents exceeds the browser's single-domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group;
[0094] The business documents of each group are sent to the corresponding data request domain name. Each data request domain name occupies N TCP connections, generating M×N concurrent requests, so that the backend real server can process the business documents concurrently according to the concurrent requests.
[0095] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can implement the described functions using different methods for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0096] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of the present invention is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic cable, digital cable) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0097] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A high-concurrency request method, characterized in that, Applied to front-end processors, it includes the following processes: Obtain the IP address of the backend real server, determine the real domain name of the backend server based on the IP address, and create multiple backup virtual domain names in the browser memory. Both the real domain name and the backup virtual domain names are used as data request domain names. When multiple business documents are selected at the same time, a pre-check is performed on the selected business documents. If the pre-check is qualified, a concurrent processing instruction is initiated, including: when the business documents meet the preset business document rules and the front-end processor receives the user confirmation instruction, a concurrent processing instruction is initiated. When the number of concurrently processed business documents exceeds the browser's single-domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group; The business documents of each group are sent to the corresponding data request domain name. Each data request domain name occupies N TCP connections, generating M×N concurrent requests, so that the backend real server can process the business documents concurrently according to the concurrent requests.
2. The high-concurrency request method as described in claim 1, characterized in that, Create multiple alternate virtual domains in the browser's memory, including: Using the virtual mapping module in the front-end processor, multiple backup virtual domain names are generated based on the mapping of the real domain name.
3. The high-concurrency request method as described in claim 1, characterized in that, When grouping business documents, the format of each group of business documents should be consistent.
4. A high-concurrency request system, characterized in that, Applied to front-end processors, including: The domain name mapping unit is configured to: obtain the IP address of the backend real server, determine the real domain name of the backend server based on the IP address, and create multiple backup virtual domain names in the browser memory, wherein the real domain name and the backup virtual domain names are both used as data request domain names; The document pre-inspection unit is configured to: when multiple business documents are selected at the same time, perform pre-inspection on the selected multiple business documents, and initiate concurrent processing instructions after the pre-inspection is qualified, including: when the business documents meet the preset business document rules and the front-end processor receives the user confirmation instruction, initiate concurrent processing instructions; The document grouping unit is configured such that when the number of concurrently processed business documents exceeds the browser's single domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group. The concurrent request unit is configured to send the business documents of each group to the corresponding data request domain name. Each data request domain name occupies N TCP connections, generating M×N concurrent requests, so that the backend real server can perform concurrent processing of business documents according to the concurrent requests.
5. The high-concurrency request system as described in claim 4, characterized in that, In the domain name mapping unit, the virtual mapping module in the front-end processor is used to generate multiple backup virtual domain names based on the real domain name mapping.
6. A high-concurrency request system, characterized in that, This includes front-end servers and back-end real servers that communicate with each other; The front-end server is configured to: obtain the IP address of the back-end real server, determine the real domain name of the back-end server based on the IP address, and create multiple backup virtual domain names in the browser memory, wherein the real domain name and the backup virtual domain names are both used as data request domain names; When multiple business documents are selected at the same time, a pre-check is performed on the selected business documents. If the pre-check is qualified, a concurrent processing instruction is initiated, including: when the business documents meet the preset business document rules and the front-end processor receives the user confirmation instruction, a concurrent processing instruction is initiated. When the number of concurrent business documents exceeds the browser's single-domain TCP connection limit N, the business documents are grouped according to the total number of data request domains M, with each data request domain corresponding to one group; the business documents of each group are sent to the corresponding data request domain, with each data request domain occupying N TCP connections, generating M×N concurrent requests and sending them to the backend server; The backend server is configured to perform parallel processing of M×N concurrent requests.
7. A front-end server, characterized in that, include: Processor and computer-readable storage media; A processor, adapted to execute computer programs; A computer-readable storage medium storing a computer program that, when executed by the processor, implements the high-concurrency request method as described in any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and executed as described in any one of claims 1 to 3.
9. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the high-concurrency request method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Method for router to access webpage, and router
CN105915582A
Method for distributed cloud-side concurrent collection based on Avro RPC transmission
CN106502802A