System architecture evolution
Traditional architecture
Distributed architecture
According to the function, the system is divided into several independent modules, each module before cooperation can complete the business logic, called distributed. Multiple systems cooperate with each other to complete the business process, and the systems have to communicate with each other.
SOA
The service-oriented architecture divides the project into presentation layer and service layer. The service layer includes business logic and only needs to provide services to the outside world.
The presentation layer only needs to deal with the interaction with the page, and the business logic is implemented by invoking the services of the service layer.
Dubbo
The distributed framework of remote service invocation solves the problem of communication between presentation layer and service layer in SOA architecture. It is also based on RPC transfer.
RPC
Remote procedure call protocol that invokes a service from another remote computer over the network
RMI
Remote method invocation (from one machine to call a method on another machine)
The difference between RPC and RMI:
RPC is a network service protocol, independent of operating system and language.
RMI is only available for java