Dubbo interface http interfaces, Pegasus Interface

Original link: https: //www.cnblogs.com/yuanyuan2017/p/11430152.html

 

In addition to the interview will be asked http https requests outside contact other interfaces learned it?

First, what is the interface Dubbo

Dubbo Interface Alibaba is committed to providing high-performance open source and transparency of RPC remote service call programs, services and SOA governance programs, dubbo framework bid farewell to the traditional mode of web service, and then switch to the service provider and consumer patterns. Why is it a high-performance? It can be provided in a single cluster of servers dedicated service, so do not mix with other services, dubbo interface has SOA scheduling and load balancing by monitoring each server. consumer end without paying attention to how the provider side implementation, just subscribe to the service request to the appropriate server in the registry, thus achieving a high performance and transparency. After all, Dubbo Interface is a distributed service framework.

 

Second, why should Dubbo Interface

The official document says so:

"With the development of the Internet, Web applications continue to expand the size of conventional vertical application architecture has been unable to cope, distributed service architecture and flow computing architecture imperative need a control system to ensure an orderly evolution of architecture

 

Three , Dubbo interface http Interface What is the difference?

1, the protocol layer I.D.

HTTP, HTTPS using the application layer protocol application layer protocol: defines an interface for communication and data transmission in the network

DUBBO interface of the TCP / IP transport protocol is the transport layer: manages the network end to end data transmission; thus faster than the HTTP protocol

 

2, socket layer I.D.

dubbo default socket connection length, i.e. after the first visit to establish a connection, the subsequent request to the network using the same network channel

http1.1 default connection protocol using short, every request was the need for three-way handshake, and http2.0 agreement began to default socket connection instead of a long connection

 

First, the protocol layer

OSI seven-layer model for network structure
First layer: an application layer. It defines an interface for communication and data transmission in the network;
second layer: the presentation layer. Transmission format, encoding and decoding specifications of different system definition data;
Third Layer: Session Layer. Managing the user's session, the control logic for establishing a connection between the user and interrupt;
Fourth layer: the transport layer. Manages the network end to end data transmission;
fifth layer: the network layer. How to transfer data between network devices is defined;
Sixth layer: the link layer. Above the network layer packet is encapsulated into the data frames, to facilitate physical layer transmission;
Seventh layer: a physical layer. This layer is the transmission of these binary data.

The actual application process, which will be represented by a five-layer structure protocol layer, session layer incorporated into the application layer. Because HTTP is an application layer protocol, and TCP / IP is the transport layer protocol, so using TCP / IP protocol DUBBO natural performance than the HTTP protocol soon.



Author: Hou beads with the
link: https: //www.jianshu.com/p/ea2d3cfca26d
Source: Jane books
are copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

 

Guess you like

Origin www.cnblogs.com/welcome-ladies/p/11902304.html