Server and Communication Design
RemotingThe technology can transmit data based on two communication protocols:TCPAndHTTP. This system design usesTCP.
Figure. remoting communication process
according to the design requirements of this course, the servers for data storage and processing include 5 values: carremoteservice , deleteservice , flightremoteservice , customerremoteservice , reservationremoteservice . Based on five data-type servers, this design adds a global server dedicated to transaction processing and various operations globalremoteservic .
This design applicationDOTNETInCOM +Technology and efficient useCOM +The component encapsulation Technology ensures the security of software development. This design createsCOM +Components, which encapsulate the interface methods exposed to the client by all servers. On the server side, you only need to write the services to be provided to the client in the interface corresponding to the component, the client also needs to reference this interface set to call the methods provided by the server.
Figure. The project list shows the structure and deployment of the entire system.
Figure. The interface for each server is implemented in the COM + component remotingserverdll
Figure. The interface implementation classes of each server are under your own project, which improves the interface implementation class during development.CodeSecurity