use
Delphi
Establish communication and data exchange servers -
TRANSCEIVER technology analysis (on)
Author: Firebird
Redbirdli@hotmail.com
introduction
In domestic common information development and implementation projects, most developed workloads are focused on the difference in demand for different customers, and modifications to a particular module will eventually meet the software functionality of customers. But for the development of the manufacturer, facing different software versions of different customers will lead to a series of issues such as repetitive labor, cost increase, maintenance, and decline in compatibility and stability. Therefore, developers recognize the productization of software, in order to have shorter project cycles and strong market competitiveness, to adapt to different customers, but will not be inadvertent, is customer satisfaction A balance point for commercial interests.
TRANSCEIVER
concept
Transceiver is a general communication productive software designed and developed to meet different applications and business projects. A unified controlled communication and data exchange available in a platform neutral application in multiple applications, and the original intention is to reduce the duplication of communication modules and the centralized management of communication software. By integrating the transceiver processing of the existing common communication method, integrated with the data stream of the Source to Subderation, and the communication abnormal fault tolerance buffer processing (Queue) constitutes the powerful function of Transceiver to meet the needs of enterprise communication.
The following is a transceiver application example
Communication direction
Source (SOURCE)
Queue
SBIT
Implement function
C1. Send data
S1. Get from the local File
If there is an abnormality in the resort, the data can be buffered in Transceiver and is responsible for retransmit by transceiver.
T1. Submit to the remote TCP port
Transfer files to the remote end
C2. Receive data
S2. Get from the remote POP3
T2. Submit to another SMTP account
Mail forwarding
C3. Send data
S3. Get from local DB
T3. Submit to the remote HTTP page
Read and submit to the web from the database
C4. Receive data
S4. Get from the remote FTP
T4. Submit to the local COM for processing
Get it from the distal end and handed with COM
C5. Receive data
S5. Get from remote DCOM
T5. Submit to the local MSMQ queue
Get deposit messages from remote components waiting for processing
Source and Source (Source) and Source (Target) are unified as ports (port), such as S1 ~ S5, T1 to T5, all of which are created and managed by Transceiver at runtime; and similar C1 Several communication process definitions of ~ C5 are considered channel (Channel), one of the Channel that can complete the basic communication function is composed of two ports (one for Source, one is Target), Queue is a fault tolerance layer when communication is abnormal.
As shown, Transceiver can provide full support for the transmission / reception of two types of communication processes. And the type, quantity, and corresponding relationship of the source and sources are not limited, and the matching relationship between Source and Target can be freely set. The above form simply lists several use cases of the Transceiver communication feature, which integrates the three-level data communication elements of Application, Data, and Protocol, which can adapt to complex and variable communication needs, providing maximized flexibility for the application's communication needs. Sexual and reuse.
Figure 1: Interactivity of Transceiver Communication Port (Port)
TRANSCEIVER
Features
1. Data Send (Send) / Receive Service between LAN / WAN, Different Operation System / Application System
???? Transceiver's currently supported communication port (port):
communication method
Interactive layer
Send end
Receiving end
Recommended environment
TCP
protocol
√
√
Enterprise Quick Ethernet / No firewall network
FTP
protocol
√
√
File transfer / with file server
SMTP
protocol
√
B2C / has a mail sending server
POP3
protocol
√
B2C / has a mail receiving server
HTTP
protocol
√
√
Network / Internet environment across firewalls
File
data
√
√
Read / write from local files to local files
MSMQ
data
√
√
Other systems / different applications such as large hosts
DB
data
√
√
Customized database structure / Different applications
COM / DCOM
application
√
√
Business logic mapped to dedicated module interface / environment with specific data processing requirements
?
As mentioned by Transceiver Application, according to Transceiver's definition of Port and Channel, eight ports of the above Send / Receive can achieve 8x8 64 flexible communication methods, enough to meet complex and variable enterprise application communication. surroundings.
Note: Since the demand environment of the UDP protocol is similar to TCP, the author is not specially realized, if there is a need to be flexible; while the application level, it is also easy to implement CORBA and EJB component interface (Port) Being the organic component of Transceiver Shell.
2. Queue mechanism for buffering processing, the data buffer queue tracking and data resend can be tracked.
3. Data logging, the time, content, source, output, buffer, current state of the data, the current state record.
4. Multi-language support, provide data conversion and multilingual support interfaces of the user interface, users can freely add interface language types and data transcoding components based on language requirements.
?
TRANSCEIVER
achieve
Transceiver consists of two parts: Transceiver Service and Transceiver Console, Transceiver Service can be divided into two logical layers of Transceiver Kernel and Transceiver Shell.
Figure 2: Transceiver design architecture
First, ??????????? TRANSOLE
The Console's functionality is to provide valid port, channel definitions, rules, and settings for transport logs, data queues, environmental parameters, etc. in the control panel application form. Do not pass Console, users can also modify Transceiver system configuration. The library and registry are manually setup, limited to space, only to provide three screenshots, indicating that the interface multi-language dynamic support, Transceiver shell port definition, Transceiver Channel Defines the operational effect of three aspects, and do not repeat the details.
Drawings
3: Multi-language dynamic support for Transceiver Console
(Figure
4,
5 Interface language is different
)
Drawings
4: Pass
Transceiver console
Transceiver Server Definition Communication
Port
Drawings
5: Combination
Sourceport and
TargetPort is
Transceiver Server Definition Communication
Channel