当前位置:网站首页>RPC understanding
RPC understanding
2022-06-30 09:07:00 【Dazhi Technology】
My understanding is that :
The principle of server communication is a socket The server A, another socket client B, Now if you want to communicate, write or read directly in stream mode . This will allow communication , But there's a problem . How to know more ? For example, you need to send the stream size , code ,Ip etc. . So there's an agreement , Agreements are norms , That is, the sent stream carries a lot of content . So back to the question .
The content sent is the text type , The client has to be serialized , Then the commonly used ones are json,xml And so on
If you want to make the content smaller , So there's binary . Turn text into binary and pass it on .
Speaking of rpc And http Interface , Don't be too complicated .rpc The protocol is simpler, the content is smaller , So the efficiency is a little higher
then rpc What is it? . Namely socket Add dynamic proxy , Think about it , Why can the client call your service .
rpc The communication principle is the interface class to be called , Method parameters , Send it to the server , After the server finishes processing , Return the result to us .
Go and have a look http://javatar.iteye.com/blog/1123915, I hope it helps you
边栏推荐
- 证券开户的优惠怎样才能得到?在线开户安全?
- Using appbarlayout to realize secondary ceiling function
- The elegant combination of walle and Jianbao
- Is it safe to open an account? How can anyone say that it is not reliable.
- Flink 数据偶尔数据积压导致checkpoint失败
- Flink sql -- No factory implements ‘org. apache. flink. table. delegation. ExecutorFactory‘.
- [protobuf] protobuf generates cc/h file through proto file
- Talk about how the kotlin collaboration process establishes structured concurrency
- Application of hongruan face recognition
- 【付费推广】常见问题合集,推荐榜单FAQ
猜你喜欢

Duplicate entry '2' for key 'primary appears in JPA‘

Wechat development tool (applet)

Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)

Flink 数据偶尔数据积压导致checkpoint失败

Redis design and Implementation (VII) | publish & subscribe

Interviewer: do you understand the principle of recyclerview layout animation?

Abstract factory pattern

使用华为性能管理服务,按需配置采样率

Based on svelte3 X desktop UI component library svelte UI

Concatapter tutorial
随机推荐
Interviewer: do you understand the principle of recyclerview layout animation?
Implementing custom drawer component in quick application
Introduction to MySQL basics day4 power node [Lao Du] class notes
Esp32 things (I): Preface
Occasionally, Flink data is overstocked, resulting in checkpoint failure
Esp32 (6): Bluetooth and WiFi functions for function development
Tidb v6.0.0 (DMR): initial test of cache table - tidb Book rush
Tidb 6.0: making Tso more efficient tidb Book rush
File upload component on success event, add custom parameters
快应用中实现自定义抽屉组件
vim 从嫌弃到依赖(21)——跨文件搜索
【付费推广】常见问题合集,推荐榜单FAQ
Redis design and Implementation (VII) | publish & subscribe
Unsupportedclassversionerror is reported when starting jar package. How to repair it
Opencv learning notes -day8 (keyboard typing (waitkey()); Wait for typing) action: triggers some action when the appropriate character is typed using the keyboard)
Opencv learning notes-day14 drawing of image geometry (rect class rotatedrect class, rectangle drawing rectangle circle drawing circular function line drawing line function ellipse drawing elliptic fu
Based on svelte3 X desktop UI component library svelte UI
Rew acoustic test (II): offline test
Mmcv expanding CUDA operator beginner level chapter
What are the SQL add / delete / modify queries?