I recently saw jsonrpc and learned a little about rpc, but the information I saw on the Internet is basically repeated and I really don't understand it. I would like to ask the following questions: What is the difference between rpc and http requests? What are the advantages and efficiency? Is the application (ios, andriod) Supporting rpc? The threshold is low for rp... I recently saw jsonrpc and learned a little about rpc, but the information I saw on the Internet is basically repeated and I really don't understand it. I would like to ask the following questions:
What are the differences, advantages, and efficiency between rpc and http requests?
Whether the app (ios, andriod) supports rpc is not high.
It is difficult to integrate rpc with the framework or the original project. Is it worthwhile?
Reply content:
I recently saw jsonrpc and learned a little about rpc, but the information I saw on the Internet is basically repeated and I really don't understand it. I would like to ask the following questions:
What are the differences, advantages, and efficiency between rpc and http requests?
Whether the app (ios, andriod) supports rpc is not high.
It is difficult to integrate rpc with the framework or the original project. Is it worthwhile?
All rpc names are available,Remote Procedure Call
Remote process call: Description of the closing port.
A simple understanding is as follows:
Your computer (client) wants to call a function in the program on the server for your purpose.
rpc
I think it is a Protocol application, andhttp
Yes.
Applications are based on protocols, so there isrpc
Is called
Http-based rpc implementation.
Sorpc
And commonhttp
What are the advantages of requests?
The data structure of common http requests is simple, and then stateless, does not maintain a long connection, becausehttp
Containsheader
It will transmit several more bytes, resulting in poor optimization.
If your services do not care about these, then yourrpc
Based onhttp
After all, the existing protocols are easy to use.
Of course, all apps supportrpc
Because they all support commonTCP/IP
Protocol stack.
Integration is difficult. You can only say you are right.rpc
Select a solution.
I don't have any recommendations, and I like what to choose.
Recommended.yar