CN100411380C - Conversion method between synchronization and asynchronization in network data exchange - Google Patents
Conversion method between synchronization and asynchronization in network data exchange Download PDFInfo
- Publication number
- CN100411380C CN100411380C CNB021365784A CN02136578A CN100411380C CN 100411380 C CN100411380 C CN 100411380C CN B021365784 A CNB021365784 A CN B021365784A CN 02136578 A CN02136578 A CN 02136578A CN 100411380 C CN100411380 C CN 100411380C
- Authority
- CN
- China
- Prior art keywords
- message
- data exchange
- conversion process
- message queue
- network data
- 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.)
- Expired - Lifetime
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention discloses a conversion method between synchronization and asynchronization in network data exchange, which relates to network data exchange, particularly to the data exchange between different application systems. Considered that each system is different with the exchange mode of a data exchange platform, the interprocess communication mode in the data exchange platform is improved, namely that various communication modes are simultaneously adopted at the interprocess communication mode, and the interprocess communication mode of queues and short connection can be simultaneously adopted in the data exchange platform. Thus, the reliability, the extensibility and the stability of the data exchange platform can be enhanced, and the data exchange platform is suitable for the exchange mode of each subsystem. The complexity of the process control of the data exchange platform can be reduced.
Description
Technical field
The present invention relates to network data exchange, the particularly exchanges data between different application systems.
Background technology
At present the method for information exchange has two kinds of synchronous exchange and asynchronous exchanges in the network.Synchronous exchange refers to that both sides adopt simplex mode, i.e. only transmission in one direction of data.Asynchronous exchange refers to that both sides adopt full duplex mode, and promptly data can the while transmitted in both directions.Information exchange adopts single switching method that certain limitation is arranged between different application systems, and system does not have extensibility.
Summary of the invention
Consider that each system is different with the exchanged form of data interchange platform, and will improve data interchange platform reliability, extensibility, stability and adapt to each subsystem exchanged form, reduce the process control of data interchange platform complexity own, we improve communication modes between data switching plane internal process for this reason, promptly adopt multiple communication modes simultaneously in the Inter-Process Communication mode; In data interchange platform, adopt communication mode between formation, short connection process simultaneously.
Summary of the invention as shown in Figure 1, step is as follows:
The first step, this method are mainly by conversion process, message queue, short connecting to form.Conversion process is at first created message queue, the short connection.Message queue is a kind of communication modes between process.
The short connection is meant that setting up a kind of socket between process connects, and communication is just closed socket after finishing.
Second step, A system initiate requests transaction message, and the A system initiates to wait for the response message that the B system concludes the business after the requests transaction message always usually.At this moment, we just adopt short connected mode, start the port Port1 that monitors the A system after the A system initiates request.This moment, requests transaction message was on conversion process.
The 3rd step, conversion process call format transfer function, this function converts the message format of A system the message format of B system to, and a kind of elongated bag is converted to another kind of elongated bag, and concrete grammar is according to message bag different field, take out different pieces of information, be filled up in the another kind of message bag.Conversion process sends to the B system to requests transaction message more then.Usually the B system will receive the service request of N subsystem.Because the requested service difference, it is different needing response speed, quantity.Because B system business characteristics, we adopt the message queue communication modes.Conversion process and B system communication adopt two message queues: message queue IN deposits requests transaction message, another message queue OUT deposits and replys transaction message.Conversion process can not stop to send requests transaction message in message queue IN.The B system reads requests transaction message from message queue IN, handle through the B system business, ceaselessly writes in message queue OUT replying transaction message, has so just realized the asynchronous communication between conversion process and B system.
The 4th step, conversion process do not stop to read from message queue OUT to reply transaction message.Conversion process will send to the A system replying transaction message, and conversion process is connected to the port Port1 of A system, and such socket has just been set up.This moment, conversion process sent to the A system replying transaction message, and communication finishes socket and closes.Finish the synchronous communication between A system and conversion process like this.
More than 4 steps realized communication synchronous versus asynchronous conversion between A system and B system, improve the system expandability.
Description of drawings
Fig. 1 is the conversion process operation chart;
Fig. 2 is the social security card schematic flow sheet.
Embodiment
In the social security card engineering of Shanghai City, we adopt the method to finish each subsystem first and ensure the information exchange of card service centre.Subsystem refers to medicare system, common reserve fund system, system of Labour ﹠ Social Security, civil administration system.Each subsystem is carried out information exchange with ensureing card service centre.Each subsystem is similar to the A system, ensures that card service centre is similar to the B system, as shown in Figure 2.
Medicare system is initiated the social security card status poll, a dedicated query process is arranged in medicare system, query procedure is initiated requests transaction message, because query procedure is initiated to wait for the transaction message of replying that ensures card service centre after the requests transaction message always, we just adopt short connected mode, start the port Port1 that monitors the A system after query procedure is initiated request.
Conversion process receives request and forwards the request to and ensures card service centre.To receive the service request of N subsystem because ensure card service centre, the requested service difference, it is different needing response speed, quantity, so we adopt the message queue communication modes.Conversion process adopts two message queues with ensureing the communication of card service centre: message queue IN deposits requests transaction message, another message queue OUT deposits and replys transaction message.Conversion process can not stop to send requests transaction message in message queue IN.Ensure that card service centre reads requests transaction message from message queue IN, through ensureing card service centre Business Processing, ceaselessly in message queue OUT, write replying transaction message, so just realized conversion process and ensured the asynchronous communication that blocks between service centre.
The response service request process of guarantee card service centre receives the laggard line data operation of request, transaction message is replied in the Query Result generation send to conversion process, and conversion process is transmitted to the medical insurance query procedure after receiving and replying transaction message.
Claims (3)
1. the conversion method during a network data exchanges between synchronous versus asynchronous is characterized in that, described method is by conversion process, message queue and short connecting to form, and concrete steps are as follows:
A, conversion process are created message queue IN, message queue OUT and are connected with short;
B, A system initiate requests transaction message to the B system, and short the connection starts the port Port1 that monitors the A system;
C, conversion process call format function, the message format of A system is converted to the message format of B system, and requests transaction message sent among the message queue IN, the B system reads requests transaction message from message queue IN, and will reply transaction message and write among the message queue OUT;
The port Port1 that d, conversion process are connected to the A system sets up socket;
E, conversion process do not stop to read from message queue OUT to reply transaction message, send to the A system;
F, communication finish the back socket and close.
2. the conversion method in the network data exchange as claimed in claim 1 between synchronous versus asynchronous, it is further characterized in that described short the connection is meant that setting up a kind of socket between process connects.
3. the conversion method in the network data as claimed in claim 1 exchange between synchronous versus asynchronous, it is further characterized in that, described B system receives the service request of a plurality of subsystems.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021365784A CN100411380C (en) | 2002-08-19 | 2002-08-19 | Conversion method between synchronization and asynchronization in network data exchange |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021365784A CN100411380C (en) | 2002-08-19 | 2002-08-19 | Conversion method between synchronization and asynchronization in network data exchange |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1477835A CN1477835A (en) | 2004-02-25 |
CN100411380C true CN100411380C (en) | 2008-08-13 |
Family
ID=34146553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB021365784A Expired - Lifetime CN100411380C (en) | 2002-08-19 | 2002-08-19 | Conversion method between synchronization and asynchronization in network data exchange |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100411380C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7953794B2 (en) * | 2005-01-14 | 2011-05-31 | Microsoft Corporation | Method and system for transitioning between synchronous and asynchronous communication modes |
CN101247319B (en) * | 2007-02-16 | 2011-06-08 | 华为技术有限公司 | Method, system and asynchronous SOCKET for processing asynchronous message alignment |
CN104917695A (en) * | 2015-04-23 | 2015-09-16 | 同济大学 | Data management system |
CN111459834B (en) * | 2020-04-15 | 2023-08-22 | 中国银行股份有限公司 | Asynchronous transaction performance testing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05244186A (en) * | 1991-08-06 | 1993-09-21 | Fujitsu Ltd | Atm/stm conversion circuit |
US5666362A (en) * | 1995-07-25 | 1997-09-09 | 3Com Corporation | Method and apparatus for asynchronous PPP and synchronous PPP conversion |
CN1210409A (en) * | 1997-08-28 | 1999-03-10 | 国际商业机器公司 | Server-side asynchronous form management |
CN1249647A (en) * | 1998-09-16 | 2000-04-05 | 电话通有限公司 | Radio mobile equipment with improved operation in unusable phase of network |
-
2002
- 2002-08-19 CN CNB021365784A patent/CN100411380C/en not_active Expired - Lifetime
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05244186A (en) * | 1991-08-06 | 1993-09-21 | Fujitsu Ltd | Atm/stm conversion circuit |
US5666362A (en) * | 1995-07-25 | 1997-09-09 | 3Com Corporation | Method and apparatus for asynchronous PPP and synchronous PPP conversion |
CN1210409A (en) * | 1997-08-28 | 1999-03-10 | 国际商业机器公司 | Server-side asynchronous form management |
CN1249647A (en) * | 1998-09-16 | 2000-04-05 | 电话通有限公司 | Radio mobile equipment with improved operation in unusable phase of network |
Also Published As
Publication number | Publication date |
---|---|
CN1477835A (en) | 2004-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101320361B (en) | Multi-CPU communication method and system | |
CN102480426B (en) | Communication method based on peripheral component interconnect-express (PCIE) switching bus and PCIE switching system | |
CN101599991A (en) | A kind of method of the lifting network file system performance based on high-speed communication protocol | |
CN102203744A (en) | Storage controller data redistribution | |
JPH0685877A (en) | High-performance communication channel, data processing system provided with above channel and method for recovery of operation | |
CN1964285A (en) | A master control device with double CPU and realization method | |
CN201639589U (en) | Embedded dual-redundant network card based on ARM | |
CN100508500C (en) | Interplate communicating method and interface plate | |
CN100411380C (en) | Conversion method between synchronization and asynchronization in network data exchange | |
CN102843435A (en) | Access and response method and access and response system of storing medium in cluster system | |
CN101175073B (en) | Double-controller communication system and method based on hard disk controller | |
WO2024067529A1 (en) | Rdma-based link establishment method and apparatus, and device and storage medium | |
CN1964286B (en) | A master control device with double CPU | |
WO2024041304A1 (en) | Communication method and apparatus for double cpus in pos machine, system and medium | |
CN105471718A (en) | Realization method of full duplex message queue | |
US8473966B2 (en) | Iterative exchange communication | |
JP5317185B2 (en) | Hot standby system and hot standby method | |
WO2018133879A1 (en) | Server and data processing method thereof | |
CN111639043A (en) | Communication device | |
CN102624511B (en) | Channel building method, exchanger and communication system | |
CN1758627B (en) | Control method for realizing data soft-change communication using DPRAM as medium | |
US9647976B2 (en) | Method and device for implementing end-to-end hardware message passing | |
CN101964748A (en) | Data exchange method and system | |
JP3799741B2 (en) | Bus controller | |
CN107566481B (en) | Method for realizing remote data copy control information transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CX01 | Expiry of patent term | ||
CX01 | Expiry of patent term |
Granted publication date: 20080813 |