Hessian is also a lightweight ws service. The advantage is that you don’t need to care about the process. When calling, it is like calling a local one. After all, it is RMI. For http, you need to do the object parsing yourself,
hessian is a lightweight RPC service implemented based on the Binary-RPC protocol. It will serialize and deserialize your instances. Advantages:
方便呀,很多事情你不用管,可以穿文件呀,数据大点也可以呀
-----from dubbo's documentation, a description of hessian, you can read----- Remote call protocol based on Hessian.
Number of connections: multiple connections Connection method: short connection Transmission protocol: HTTP Transmission method: synchronous transmission Serialization: Hessian binary serialization Scope of application: Incoming and outgoing parameter data packets are larger, the provider is larger than the consumer There are many users, and the provider is under great pressure to transfer files. Applicable scenarios: page transfer, file transfer, or interoperability with native hessian services (1) Constraints:
Parameters and return values need to implement the Serializable interface Parameters and return values cannot be customized to implement List, Map, Number, Date, Calendar and other interfaces. You can only use the implementation that comes with JDK, because Hessian will do special processing and customize the implementation class All attribute values in will be lost.
Hessian is also a lightweight ws service. The advantage is that you don’t need to care about the process. When calling, it is like calling a local one. After all, it is RMI. For http, you need to do the object parsing yourself,
hessian is a lightweight RPC service implemented based on the Binary-RPC protocol. It will serialize and deserialize your instances.
Advantages:
-----from dubbo's documentation, a description of hessian, you can read-----
Remote call protocol based on Hessian.
Number of connections: multiple connections
Connection method: short connection
Transmission protocol: HTTP
Transmission method: synchronous transmission
Serialization: Hessian binary serialization
Scope of application: Incoming and outgoing parameter data packets are larger, the provider is larger than the consumer There are many users, and the provider is under great pressure to transfer files.
Applicable scenarios: page transfer, file transfer, or interoperability with native hessian services
(1) Constraints:
Parameters and return values need to implement the Serializable interface
Parameters and return values cannot be customized to implement List, Map, Number, Date, Calendar and other interfaces. You can only use the implementation that comes with JDK, because Hessian will do special processing and customize the implementation class All attribute values in will be lost.