CN102394867A - Technology for converting network concurrent communication request into tandem queue - Google Patents

Technology for converting network concurrent communication request into tandem queue Download PDF

Info

Publication number
CN102394867A
CN102394867A CN2011103070943A CN201110307094A CN102394867A CN 102394867 A CN102394867 A CN 102394867A CN 2011103070943 A CN2011103070943 A CN 2011103070943A CN 201110307094 A CN201110307094 A CN 201110307094A CN 102394867 A CN102394867 A CN 102394867A
Authority
CN
China
Prior art keywords
request
data
client
server
tandem queue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103070943A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN JINCHUI AUCTION CO Ltd
Original Assignee
SHENZHEN JINCHUI AUCTION 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 SHENZHEN JINCHUI AUCTION CO Ltd filed Critical SHENZHEN JINCHUI AUCTION CO Ltd
Priority to CN2011103070943A priority Critical patent/CN102394867A/en
Publication of CN102394867A publication Critical patent/CN102394867A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a technology for converting a network concurrent communication request into a tandem queue, which belongs to the technical field of computer communication and is a technology for converting a concurrent request of a TCP/IP (Transmission Control Protocol/Internet Protocol) communication client into a tandem queue request. A lot of clients concurrently request a server at the same time so that the same data write-read operation is not synchronous to cause data deadlock and inconsistency. In the technology, a client concurrent request is converted into the tandem queue request and only one request operation data exists so that the data consistency is guaranteed. Two usages are used for reading and writing the same data in a network and the data can be used when the data has accuracy and consistency. The server is used for changing the concurrent requests such as user account data, an electronic commerce online transaction, bids and deals in online auctions and the like into the tandem queue request according to the receiving sequence and sequentially executing so that the application system is more fair and just and the legal dispute problems such as the data inconsistency, the data deadlock abnormality and the like caused by the concurrent operation are avoided.

Description

The concurrent communication request of network is changeed the tandem queue technology
One, technical field:
Present technique belongs to the computer network communication technology field, utilizes bottom mechanics of communication Socket, ICP/IP protocol in stack algorithm, the computer network communication technology, and a series of method, realizes:
(1) server converts the concurrent TCP/IP Socket request that a large amount of user end to server send into the tandem queue request.
(2) server end utilizes single thread successively the client-requested in the parallel queue to be responded, in the process of response, to data lock, read, change, release.
(3) after server end is accomplished a request, continue to handle down next bar client-requested again.
Two, background technology:
During user account changes in e-commerce platform, the online transaction state changes, network auction is concluded the business; When a large number of users carries out read and write access to certain common data simultaneously; Consistency to data is difficult to ensure; General large-scale database system adopts when handling the same data of concurrent reading and writing and adds lock technology, in case dirty reading or dirty writing, but usually because lock improper deadlock or the other problems of causing.The realization of present technique is that the tandem queue Treatment Technology is changeed in concurrent request in a kind of network communication of developing of the TCP/IP network communication protocol, Socket API communication part, the programming language instruments such as (java) that utilize the computer bottom.The request that server sends a large amount of clients; Convert the tandem queue request into; Use the client-requested in the single-threaded response queue one by one then, synchronization has only request reading and writing data, guarantees the consistency of operation system data; Guarantee that application system is more fair, more just, legal dispute problem such as the data of avoiding causing because of concurrent operations are inconsistent, data interlock is unusual.
The technology that relates to has:
(1) TCP/IP network communication protocol, full name: Transmission Control Protocol/Internet Protocol is the communication protocol of heterogeneous network interconnection, can realize the interconnected communication between various heterogeneous networks or the xenogenesis machine through it.
(2) Socket model API communication part.
(3) Java development language.
Three, summary of the invention:
The concurrent communication request of network is changeed the tandem queue technology.
(1) a large amount of clients are initiated to ask with the TCP/IP Socket of server, and server listens to this request.
(2) server listens to a large amount of concurrent TCP/IP Socket requests, and the request that each intercepting thread will receive converts tandem queue into.
(3) the professional thread of server is a single thread, is responsible for the request msg of monitoring tandem queue, with the principle of first in first out, and the request of customer in response end one by one.
(4) server is in the process of response, to data lock, read, change, release.Because be single thread operation, there be not deadlock, dirtyly read, dirtyly write, inconsistent problem.
(5) after server end is accomplished a client-requested, continue to handle down next bar client-requested again.
Four, description of drawings:
Accompanying drawing is a computer program flow chart of the present invention.Among the figure, 1. flow process is: a large amount of user end to server are initiated parallel TCP/IP Socket request.2. flow process is: server converts concurrent request into the tandem queue mode according to sequencing.3. flow process is: server responds the client-requested in the tandem queue in order.
Five, embodiment:
(1) preparation:
(1) software distribution package of acquisition present technique: server end TCP/IP Socket processing software package.
(2) in server system software, quote, comprise server end TCP/IP Socket processing software package.
(3) in the exploitation of software systems, the api interface method that invoking server end TCP/IP Socket processing software package provides.
(2) server system software development:
(4) exploitation server service treatment system is used Socket API to set up with the long of client and is connected.
(5) the TCP/IP Socket of the concurrent reception client of server request will ask Socket object, method for processing business function address pointer to import this software kit api interface method into.
(6) the api interface method is carried out TCP/IP Socket request automatically and is converted tandem queue into, and readjustment (5) described method for processing business function once, carries out Business Processing, the request of customer in response end.

Claims (5)

1. the concurrent communication request of network is changeed the tandem queue technology, it is characterized in that: a large amount of user end to server ends send concurrent TCP/IPSocket request, and server converts the tandem queue request into, one by one customer in response end request in order.
2. " server converts the tandem queue request into " in claim 1 is characterized in that: server TCP/IP Socket is parallel to intercept client-requested, and the client-requested of receiving is changed by the order of first come, first served, and the result of conversion is tandem queue.
3. claim 1 said " customer in response end request in order one by one "; It is characterized in that: server from tandem queue, takes out at first a client-requested instruction that arrives, do not respond as yet one by one, responds; After response was accomplished, the side got into next bar Request Processing.
Claim 3 described " take out at first arrive, client-requested instruction of response as yet; respond "; It is characterized in that: according to client instruction, to data monopolize locking, the state that reads, writes, Updates Information, unlock at last; Return execution result and give client Socket, accomplish this request response process.
Economic rights require 4 described " to data monopolize locking, state reads, writes, Updates Information; unlock at last "; It is characterized in that: server is at synchronization; Have only a thread in client-requested of response, can not cause conflict locking, operation, the releasing process of data.
CN2011103070943A 2011-10-10 2011-10-10 Technology for converting network concurrent communication request into tandem queue Pending CN102394867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103070943A CN102394867A (en) 2011-10-10 2011-10-10 Technology for converting network concurrent communication request into tandem queue

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103070943A CN102394867A (en) 2011-10-10 2011-10-10 Technology for converting network concurrent communication request into tandem queue

Publications (1)

Publication Number Publication Date
CN102394867A true CN102394867A (en) 2012-03-28

Family

ID=45862076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103070943A Pending CN102394867A (en) 2011-10-10 2011-10-10 Technology for converting network concurrent communication request into tandem queue

Country Status (1)

Country Link
CN (1) CN102394867A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014029323A1 (en) * 2012-08-24 2014-02-27 腾讯科技(深圳)有限公司 Parallel service processing method, device and system
CN103702184A (en) * 2013-12-26 2014-04-02 Tcl集团股份有限公司 Method and system for managing multi-screen interactive equipment
CN104599170A (en) * 2015-02-05 2015-05-06 上海百筹金融信息服务有限公司 Crowd funding bid auction system supportive of high concurrency
CN104899057A (en) * 2015-05-13 2015-09-09 北京金山安全软件有限公司 Software module updating method and device
CN104980513A (en) * 2015-06-19 2015-10-14 上海久云信息科技有限公司 Concurrent conflict and permission processing method for cooperative grouping through multiple clients
CN106341345A (en) * 2016-08-18 2017-01-18 北京奇虎科技有限公司 Concurrent request processing method and device
WO2017128789A1 (en) * 2016-01-25 2017-08-03 上海斐讯数据通信技术有限公司 Communication method and system
CN107133304A (en) * 2017-04-28 2017-09-05 努比亚技术有限公司 A kind of data manipulation method, device and computer-readable recording medium
CN107358425A (en) * 2017-06-29 2017-11-17 湖南搜云网络科技股份有限公司 The calculating of tranaction costs and method of payment and device, transaction platform and storage medium
CN107483640A (en) * 2017-09-25 2017-12-15 山东浪潮云服务信息科技有限公司 A kind of buffering updating method, server and operation system
CN107872398A (en) * 2017-06-25 2018-04-03 平安科技(深圳)有限公司 High concurrent data processing method, device and computer-readable recording medium
WO2018103565A1 (en) * 2016-12-09 2018-06-14 Zhejiang Dahua Technology Co., Ltd. Methods and systems for data transmission
CN110493311A (en) * 2019-07-17 2019-11-22 视联动力信息技术股份有限公司 A kind of method for processing business and device
CN111104412A (en) * 2018-10-25 2020-05-05 阿里巴巴集团控股有限公司 Single-thread-based concurrency control method, device and system

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014029323A1 (en) * 2012-08-24 2014-02-27 腾讯科技(深圳)有限公司 Parallel service processing method, device and system
US10310913B2 (en) 2012-08-24 2019-06-04 Tencent Technology (Shenzhen) Company Limited Method, device and system for processing parallel services
CN103702184A (en) * 2013-12-26 2014-04-02 Tcl集团股份有限公司 Method and system for managing multi-screen interactive equipment
CN104599170A (en) * 2015-02-05 2015-05-06 上海百筹金融信息服务有限公司 Crowd funding bid auction system supportive of high concurrency
CN104899057A (en) * 2015-05-13 2015-09-09 北京金山安全软件有限公司 Software module updating method and device
CN104980513A (en) * 2015-06-19 2015-10-14 上海久云信息科技有限公司 Concurrent conflict and permission processing method for cooperative grouping through multiple clients
CN104980513B (en) * 2015-06-19 2019-02-26 上海久云信息科技有限公司 A kind of multi-client collaboration grouping concurrency conflict and permission processing method
WO2017128789A1 (en) * 2016-01-25 2017-08-03 上海斐讯数据通信技术有限公司 Communication method and system
CN106341345A (en) * 2016-08-18 2017-01-18 北京奇虎科技有限公司 Concurrent request processing method and device
US11570120B2 (en) 2016-12-09 2023-01-31 Zhejiang Dahua Technology Co., Ltd. Methods and systems for data transmission
US11012366B2 (en) 2016-12-09 2021-05-18 Zhejiang Dahua Technology Co., Ltd. Methods and systems for data transmission
WO2018103565A1 (en) * 2016-12-09 2018-06-14 Zhejiang Dahua Technology Co., Ltd. Methods and systems for data transmission
CN107133304A (en) * 2017-04-28 2017-09-05 努比亚技术有限公司 A kind of data manipulation method, device and computer-readable recording medium
CN107872398A (en) * 2017-06-25 2018-04-03 平安科技(深圳)有限公司 High concurrent data processing method, device and computer-readable recording medium
WO2019001256A1 (en) * 2017-06-25 2019-01-03 平安科技(深圳)有限公司 High-concurrency data processing method and apparatus, and computer readable storage medium
CN107358425A (en) * 2017-06-29 2017-11-17 湖南搜云网络科技股份有限公司 The calculating of tranaction costs and method of payment and device, transaction platform and storage medium
CN107483640A (en) * 2017-09-25 2017-12-15 山东浪潮云服务信息科技有限公司 A kind of buffering updating method, server and operation system
CN111104412A (en) * 2018-10-25 2020-05-05 阿里巴巴集团控股有限公司 Single-thread-based concurrency control method, device and system
CN111104412B (en) * 2018-10-25 2023-05-30 阿里巴巴集团控股有限公司 Concurrent control method, device and system based on single thread
CN110493311A (en) * 2019-07-17 2019-11-22 视联动力信息技术股份有限公司 A kind of method for processing business and device
CN110493311B (en) * 2019-07-17 2022-04-19 视联动力信息技术股份有限公司 Service processing method and device

Similar Documents

Publication Publication Date Title
CN102394867A (en) Technology for converting network concurrent communication request into tandem queue
CN109255713B (en) Method for acquiring accounting right in block chain network within certain time period
CN104731859B (en) Data processing method and device
Bell et al. Optimizing bandwidth limited problems using one-sided communication and overlap
JP2021504813A (en) Blockchain network transaction processing methods, devices, equipment and storage media
CN103873321A (en) Distributed file system-based simulation distributed parallel computing platform and method
JP2009522647A (en) Workflow object model
TW200912258A (en) Method and system of reading of utility meter data over a network
CN105930417B (en) A kind of big data ETL interactive process platform based on cloud computing
CN110458468A (en) A kind of task processing method, device, electronic equipment and storage medium
JP2009123201A (en) Server-processor hybrid system for processing data
CN109254854A (en) Asynchronous invoking method, computer installation and storage medium
CN101888349A (en) Interworking gateway of MSN and XMPP
CN102024234A (en) Electronic transaction service platform
CN101155190A (en) Dynamic loading of protocol adapters on a client
CN101834765A (en) System and method for remote file transfer
CN115481058A (en) Execution method, device, access module and system of memory atomic operation instruction
JP5479710B2 (en) Processor-server hybrid system and method for processing data
CN111984733A (en) Data transmission method and device based on block chain and storage medium
CN106384274B (en) A kind of data synchronizing processing method and system of domain name auction
CN106204263B (en) Transaction progress control method and device
CN108462737A (en) Individual-layer data consistency protocol optimization method based on batch processing and assembly line
CN1200382C (en) Data updating method and system
CN104268767A (en) Core service object consistency processing method and core service object agency
Mehta et al. Performance enhancement of scheduling algorithms in clusters and grids using improved dynamic load balancing techniques

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120328