CN111724262B - Subsequent package query system of application server and working method thereof - Google Patents
Subsequent package query system of application server and working method thereof Download PDFInfo
- Publication number
- CN111724262B CN111724262B CN202010584928.4A CN202010584928A CN111724262B CN 111724262 B CN111724262 B CN 111724262B CN 202010584928 A CN202010584928 A CN 202010584928A CN 111724262 B CN111724262 B CN 111724262B
- Authority
- CN
- China
- Prior art keywords
- packet
- request
- subsequent
- application server
- communication platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000012545 processing Methods 0.000 claims abstract description 34
- 230000004044 response Effects 0.000 claims abstract description 33
- 230000008569 process Effects 0.000 claims abstract description 22
- 238000004891 communication Methods 0.000 claims abstract description 20
- 230000005540 biological transmission Effects 0.000 claims abstract description 16
- 230000003993 interaction Effects 0.000 claims abstract description 4
- 238000013507 mapping Methods 0.000 claims description 3
- 230000007547 defect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Abstract
The invention discloses a follow-up package query system of an application server, which is characterized by comprising a client, a communication platform and the application server; the client performs multi-task parallel transmission with the application server through the communication platform, the application server consists of a multi-service control center and a plurality of service units, the client is used for deploying program files of local services and user interaction, the communication platform is used for providing load balancing, and the multi-service control center is used for distributing requests received by the communication platform to the service units and feeding back results processed by the service units to the communication platform. The invention transmits the response packet with larger data to the requesting party through parallel processing, so that the system can process more requests in unit time, thereby improving the throughput and the data processing capacity of the system.
Description
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a follow-up package query system of an application server and a working method thereof.
Background
Currently, as the market trading scale of nationwide futures continues to increase, higher demands are placed on the performance of futures trading systems. Thus, what we are currently doing is: the method for the subsequent package query technology of the application server enables the application server to process more requests in unit time, thereby improving the throughput of the system.
In the prior art, the widely used processing flow of the application server in the same industry is as follows: the first step: receiving a request; and a second step of: processing the request; and a third step of: and returning a response packet to the requesting party, and a fourth step: the requestor processes the reply data.
The above process is widely used in many fields and can be used for completing functions in most situations, but the process has certain defects, namely: under the condition that the length of a response packet obtained by processing the request by the application server is large, the time consumption for processing a single request by using the flow is large, and the processing efficiency is low, so that the performance of the system is influenced to a certain extent, and the user experience of using the client is further influenced. The root cause of the defect is that if the response data packet is large, the transmission process of the data packet takes a lot of time, so that the requester needs to wait a long time to receive a complete response packet and then process the response packet.
Disclosure of Invention
The invention aims to provide a follow-up packet query system of an application server and a working method thereof, which aim to send a response packet with larger data to a requester through parallel processing in the process of sending the response packet to the requester, so that the system can process more requests in unit time to improve the throughput of the system.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the follow-up package query system of the application server comprises a client, a communication platform and the application server; the client performs multi-task parallel transmission with the application server through the communication platform,
the application server is composed of a multi-service control center and a plurality of service units,
the client is used for deploying program files of local services, and user interaction,
the communication platform is used to provide load balancing,
the multi-service control center is used for distributing the request received by the communication platform to the service unit and feeding back the result processed by the service unit to the communication platform.
In the above device, the service unit is configured to process different service types.
In the above device, the service unit is configured to process the service type after parsing the information of the request packet, and generate an answer packet after obtaining the result.
The invention provides a working method of a follow-up packet query system of an application server, which is characterized in that larger response packet data is divided into a plurality of continuous data packets, and the data packets and a request instruction are sent to a requesting party in a segmented and time-sharing mode after mapping association is established; and performing multi-tasking and multi-threading while feeding back data requesting instruction information.
The invention provides a working method of a follow-up package query system of an application server, which comprises the following steps:
(1) Receiving a request instruction and judging the type of the request instruction;
(2) If the request is a new request, judging the length of the response packet and the maximum length of the single transmission data packet after finishing processing, wherein the maximum length of the single transmission data packet is constrained by an application layer protocol;
(3) If it is a subsequent request, a thread needs to be created separately to process the subsequent request, and this thread is named as a subsequent packet processing thread.
In the above method, in step (2), if the length of the response packet is greater than the maximum length of the single transmission data packet, the response packet data is written to the buffer file, and then the response packet partial data is returned to the requester, and the requester is informed that the subsequent request and the offset address of the buffer file are required.
In the above method, the offset address is used to obtain the associated location from which the data is fetched from the cache file when the subsequent packet request is processed.
In the above method, in step (3),
the request packet is first placed in a subsequent packet processing thread queue,
the subsequent packet processing thread then fetches the request packet from the queue,
and finally, the subsequent packet processing thread takes out the subsequent packet according to the cache file name and the offset position of the subsequent packet, returns the subsequent packet to the requester, and sets the offset address of the next packet until all the subsequent requests in the queue are processed.
In the method, in the process of sending the whole response packet to the requester, when the subsequent packet processing thread processes the subsequent packet request, the sent subsequent packet information is processed at the same time.
The beneficial effects are that: compared with the prior art, the invention has the following advantages:
(1) After the application server processes the request of the client, it obtains the processed data (response packet), and then compares the length of the response packet with the maximum length of the single transmission data packet constrained by the application layer protocol.
(2) If the length of the response packet is larger than the maximum length of the single transmission data packet constrained by the application layer protocol, writing the data of the response packet into a cache file and storing the data, and sending the response packet data (the subsequent packet) in batches through subsequent requests, so that the client can process after receiving part of the data of the response packet, and the client does not need to wait for processing after receiving the whole response packet, thereby realizing parallel processing.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the embodiments needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic diagram of a system structure provided in this embodiment.
Fig. 2 is a schematic diagram of a business process provided in this embodiment.
Detailed Description
The invention will be further described with reference to examples and drawings, to which reference is made, but which are not intended to limit the scope of the invention.
Examples
The embodiment provides a follow-up package query system of an application server, which comprises a client, a communication platform and the application server; the client performs multi-task parallel transmission with the application server through the communication platform,
the application server is composed of a multi-service control center and a plurality of service units,
the client is used for deploying program files of local services, and user interaction,
the communication platform is used to provide load balancing,
the multi-service control center is used for distributing the request received by the communication platform to the service units and feeding back the result processed by the service units to the communication platform,
the service unit is used for processing different service types.
The service unit is used for processing the service type after analyzing the information of the request packet, and generating an answer packet after obtaining the result.
Dividing the larger response packet data into a plurality of continuous data packets, and sending the data packets to a requesting party in a segmented time-sharing mode after mapping association is established between the data packets and a request instruction; and performing multi-tasking and multi-threading while feeding back data requesting instruction information.
The working method of the follow-up package query system of the application server provided by the embodiment comprises the following steps:
(1) Receiving a request instruction and judging the type of the request instruction;
(2) If the request is a new request, judging the length of the response packet and the maximum length of the single transmission data packet after finishing processing, wherein the maximum length of the single transmission data packet is constrained by an application layer protocol;
(3) If it is a subsequent request, a thread needs to be created separately to process the subsequent request, and this thread is named as a subsequent packet processing thread.
In step (2), if the length of the response packet is greater than the maximum length of the single transmission data packet, writing the response packet data into the buffer file, then returning the response packet part data to the requester, informing the requester that the offset address of the buffer file is required for the subsequent request,
the offset address is used for acquiring an associated position for fetching data from the beginning of the cache file when processing a subsequent packet request.
In step (3), the request packet is first placed in a subsequent packet processing thread queue,
the subsequent packet processing thread then fetches the request packet from the queue,
and finally, the subsequent packet processing thread takes out the subsequent packet according to the cache file name and the offset position of the subsequent packet, returns the subsequent packet to the requester, and sets the offset address of the next packet until all the subsequent requests in the queue are processed.
In the whole process of sending the response packet to the requester, when the subsequent packet processing thread processes the subsequent packet request, the sent subsequent packet information is processed at the same time.
The specific embodiments described herein are offered by way of example only to illustrate the spirit of the invention. Those skilled in the art may make various modifications or additions to the described embodiments or substitutions thereof without departing from the spirit of the invention or exceeding the scope of the invention as defined in the accompanying claims.
Claims (1)
1. The working method of the follow-up package query system of the application server is characterized by comprising the following steps of: the system comprises a client, a communication platform and an application server; the client performs multi-task parallel transmission with the application server through the communication platform; the application server consists of a multi-service control center and a plurality of service units; the client is used for deploying the program files of the local service and user interaction; the communication platform is used for providing load balancing; the multi-service control center is used for distributing the request received by the communication platform to the service unit and feeding back the result processed by the service unit to the communication platform; the service unit is used for processing different service types; the service unit is used for processing the service type after analyzing the information of the request packet to obtain a result and generating an answer packet;
dividing the larger response packet data into a plurality of continuous data packets, and sending the data packets to a requesting party in a segmented time-sharing mode after mapping association is established between the data packets and a request instruction; and performing multi-task and multi-thread and simultaneously feeding back data of the request instruction information; the method comprises the following steps:
(1) Receiving a request instruction and judging the type of the request instruction;
(2) If the request is a new request, judging the length of the response packet and the maximum length of the single transmission data packet after finishing processing, wherein the maximum length of the single transmission data packet is constrained by an application layer protocol;
(3) If the request is a subsequent request, a thread is required to be independently created to process the subsequent request, and the thread is named as a subsequent packet processing thread;
in the step (2), if the length of the response packet is greater than the maximum length of the single transmission data packet, writing the response packet data into a cache file, then returning partial response packet data to a requester, and informing the requester that the requester needs a subsequent request and an offset address of the cache file; the offset address is used for acquiring an associated position from which data is fetched from the cache file when a subsequent packet request is processed;
in the step (3), firstly, a request packet is put into a subsequent packet processing thread queue, then the subsequent packet processing thread obtains the request packet from the queue, finally, the subsequent packet processing thread takes out the subsequent packet according to the cache file name and the offset position of the subsequent packet, returns the subsequent packet to a request party, and sets the offset address of the next packet until all subsequent requests in the queue are processed; in the whole process of sending the response packet to the requester, when the subsequent packet processing thread processes the subsequent packet request, the sent subsequent packet information is processed at the same time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010584928.4A CN111724262B (en) | 2020-06-24 | 2020-06-24 | Subsequent package query system of application server and working method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010584928.4A CN111724262B (en) | 2020-06-24 | 2020-06-24 | Subsequent package query system of application server and working method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111724262A CN111724262A (en) | 2020-09-29 |
CN111724262B true CN111724262B (en) | 2024-03-22 |
Family
ID=72568518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010584928.4A Active CN111724262B (en) | 2020-06-24 | 2020-06-24 | Subsequent package query system of application server and working method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111724262B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114900471B (en) * | 2021-11-29 | 2023-11-28 | 上海大学 | High-performance non-blocking data transmission method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2007200660A1 (en) * | 2000-11-24 | 2007-03-08 | Catharon Productions, Inc. | Computer Multi-Tasking via Virtual Threading |
CN101753586A (en) * | 2010-01-20 | 2010-06-23 | 北京数码视讯科技股份有限公司 | Method for transmitting data, process method for receiving data and device |
CN102841783A (en) * | 2011-06-24 | 2012-12-26 | 镇江华扬信息科技有限公司 | Delphi-based three-layer database system implementation method |
CN102957627A (en) * | 2012-11-19 | 2013-03-06 | 浪潮电子信息产业股份有限公司 | Method for improving data transmission efficiency on basis of TCP (Transmission Control Protocol) long connection |
CN104580226A (en) * | 2015-01-15 | 2015-04-29 | 上海瀚之友信息技术服务有限公司 | Session data sharing system and method |
CN105681222A (en) * | 2016-03-03 | 2016-06-15 | 深圳市同创国芯电子有限公司 | Method and apparatus for data receiving and caching, and communication system |
CN111273869A (en) * | 2020-01-20 | 2020-06-12 | 苏州浪潮智能科技有限公司 | Distributed storage system performance optimization method, system, electronic device and medium |
CN111324438A (en) * | 2020-02-18 | 2020-06-23 | 北京嘀嘀无限科技发展有限公司 | Request scheduling method and device, storage medium and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8495166B2 (en) * | 2010-04-21 | 2013-07-23 | Microsoft Corporation | Optimized caching for large data requests |
US8769544B2 (en) * | 2011-09-01 | 2014-07-01 | Qualcomm Incorporated | Method and system for managing parallel resource request in a portable computing device |
US10015228B2 (en) * | 2015-10-28 | 2018-07-03 | Dell Products L.P. | Remote desktop protocol client for a standards-based web browser |
-
2020
- 2020-06-24 CN CN202010584928.4A patent/CN111724262B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2007200660A1 (en) * | 2000-11-24 | 2007-03-08 | Catharon Productions, Inc. | Computer Multi-Tasking via Virtual Threading |
CN101753586A (en) * | 2010-01-20 | 2010-06-23 | 北京数码视讯科技股份有限公司 | Method for transmitting data, process method for receiving data and device |
CN102841783A (en) * | 2011-06-24 | 2012-12-26 | 镇江华扬信息科技有限公司 | Delphi-based three-layer database system implementation method |
CN102957627A (en) * | 2012-11-19 | 2013-03-06 | 浪潮电子信息产业股份有限公司 | Method for improving data transmission efficiency on basis of TCP (Transmission Control Protocol) long connection |
CN104580226A (en) * | 2015-01-15 | 2015-04-29 | 上海瀚之友信息技术服务有限公司 | Session data sharing system and method |
CN105681222A (en) * | 2016-03-03 | 2016-06-15 | 深圳市同创国芯电子有限公司 | Method and apparatus for data receiving and caching, and communication system |
CN111273869A (en) * | 2020-01-20 | 2020-06-12 | 苏州浪潮智能科技有限公司 | Distributed storage system performance optimization method, system, electronic device and medium |
CN111324438A (en) * | 2020-02-18 | 2020-06-23 | 北京嘀嘀无限科技发展有限公司 | Request scheduling method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111724262A (en) | 2020-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7219121B2 (en) | Symmetrical multiprocessing in multiprocessor systems | |
WO2019128535A1 (en) | Message management method and device, and storage medium | |
US7822814B2 (en) | Determining on demand right size buffering within a socket server implementation | |
JPH10500509A (en) | Event distribution apparatus and method in operating system | |
CN106850698A (en) | A kind of User space RPC agreement multithreading optimization methods and system | |
CN111200606A (en) | Deep learning model task processing method, system, server and storage medium | |
CN115964319A (en) | Data processing method for remote direct memory access and related product | |
CN109462659A (en) | Embedded device remote access control system, method and storage medium | |
CN111724262B (en) | Subsequent package query system of application server and working method thereof | |
CN109002364A (en) | Optimization method, electronic device and the readable storage medium storing program for executing of interprocess communication | |
CN112104679B (en) | Method, apparatus, device and medium for processing hypertext transfer protocol request | |
WO2019024235A1 (en) | Electronic device, server allocation control method and computer readable storage medium | |
CN109801425A (en) | Queue poll reminding method, device, equipment and storage medium in the label business of face | |
CN107229424B (en) | Data writing method for distributed storage system and distributed storage system | |
US20030084164A1 (en) | Multi-threaded server accept system and method | |
CN114979286B (en) | Access control method, device, equipment and computer storage medium for container service | |
CN111427674A (en) | Micro-service management method, device and system | |
CN113472846B (en) | Message processing method, device, equipment and computer readable storage medium | |
CN113986516A (en) | Distributed task scheduling system based on Hongming system | |
CN115250276A (en) | Distributed system and data processing method and device | |
CN114390104A (en) | Process forensics system, method, apparatus, computer device and medium | |
CN112965796B (en) | Task scheduling system, method and device | |
CN113157415B (en) | Farm rendering method, device, electronic equipment and storage medium | |
CN115599571A (en) | Data processing method and device, electronic equipment and storage medium | |
CN117057815A (en) | Unmanned network virtual seat service method, system, equipment and storage medium |
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 | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 210 Liangjing Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203 Applicant after: Shanghai Jinshida Software Technology Co.,Ltd. Address before: 210 Liangjing Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203 Applicant before: Shanghai Kingstar Software Technology Co.,Ltd. Country or region before: China |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |