A, SOA: is a service-oriented architecture is an architectural design
For example, a number of projects have access to a database, less secure, or large code duplication,
A department can access the data set to a service or a project, all projects by this service to access the database, increase security, reduce the amount of code duplication
Between projects and services and with http, or webservice agreement, or socket-based RPC, but as more and more business, more service, the service will be more and more, more and more services,
So it needs service governance, dobbo and can springcloud
Implement SOA architecture is commonly used service
1.dubbo
2.webservice
3.dubbox Dangdang
4.httpclient
Two, RPC remote procedure call protocol
The client calls the remote server, can only be called, do not know the specific implementation, security is relatively high
Three, DUBBO
1, Provider: service provider, the server to provide services
2, Consumer: consumer, the client calls the server, observer mode, news subscription, depending on the service end of the address registration center to call the server, the server calls the proxy object
3, Container: Dubbo container, dependent on the spring containers
4, Registry: a registry, when the start of the service vessel registered to the registry, allowing the client to call
5, monitor: the listener, provider and consumer statistics sent every minute calls to monitor
6, Registration Center
Release ports in the firewall configuration file
vim /etc/sysconfig/iptables
Restart the firewall
service iptables restart
7, dubbo agreement
dubbo agreement nio taking a single long connection, there may be a problem when large file transfers
rmi protocol
hessian protocol http protocol