Netty vs RPC

Comparison of Netty and RPC

1. RPC : RPC (Remote Procedure Call Protocol) - Remote Procedure Call Protocol, which is a protocol that requests services from a remote computer program through a network without knowing the underlying network technology. (It can be to maintain a long connection for remote calls)
2. Netty uses synchronous blocking IO (BIO) for remote service (process) calls based on Java NIO, RPC framework or RMI and other methods
. Each connection corresponds to one thread (the number of threads affects the server performance (memory consumption and thread switching time waste))
4. Compared with other open source serialization frameworks, the code stream after Java serialization is too large for RPC, whether it is network transmission or Persistence to disk will lead to additional resource occupation;


refer to the original text (Netty High Performance of Netty Series): http://www.infoq.com/cn/articles/netty-high-performance

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326989194&siteId=291194637
RPC
RPC