What are the differences and advantages of rpc over http requests?

Source: Internet
Author: User
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 CallRemote 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.

rpcI think it is a Protocol application, andhttpYes.
Applications are based on protocols, so there isrpcIs called

Http-based rpc implementation.

SorpcAnd commonhttpWhat are the advantages of requests?
The data structure of common http requests is simple, and then stateless, does not maintain a long connection, becausehttpContainsheaderIt will transmit several more bytes, resulting in poor optimization.
If your services do not care about these, then yourrpcBased onhttpAfter all, the existing protocols are easy to use.

Of course, all apps supportrpcBecause they all support commonTCP/IPProtocol stack.
Integration is difficult. You can only say you are right.rpcSelect a solution.
I don't have any recommendations, and I like what to choose.
Recommended.yar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.