- Building Microservices with Go
- Nic Jackson
- 234字
- 2021-07-15 17:28:14
RPC API design
Some of the principles we have just discussed for creating a good RESTful API can also apply to RPC. However; one of the main differences is that you may not be using HTTP as your transport; therefore you are not always going to be able to use HTTP status codes as an indicator of success or failure. RPC stands for Remote Procedure Call and dates way back before the Internet. It was originally conceived as a way to execute a procedure that could be running in a separate application on the same machine or even potentially on the network. While we take this for granted now, back in the 90s this was cutting edge. Unfortunately, frameworks such as CORBA and Java RMI gave RPC a bad name and even now if you speak to an opponent of RPC they will most likely bring these two frameworks up. The benefits, however, were performance, using binary serialization is incredibly efficient on the network and we no longer have the tight coupling that RMI and CORBA enforced. We are also not trying to do anything too clever; we are no longer attempting to share an object across two processes we are taking a more functional approach, that is, methods that return immutable objects. This gives us the best of both worlds; the simplicity of interoperation and the speed and small payload of binary messages.
- OpenStack Cloud Computing Cookbook(Third Edition)
- 計算機網絡
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- 深度學習經典案例解析:基于MATLAB
- Vue.js前端開發基礎與項目實戰
- 樂學Web編程:網站制作不神秘
- RTC程序設計:實時音視頻權威指南
- 區塊鏈:以太坊DApp開發實戰
- 零基礎學Java(第4版)
- 機械工程師Python編程:入門、實戰與進階
- 軟件項目管理實用教程
- Scala for Machine Learning(Second Edition)
- Learning AWS
- Solutions Architect's Handbook
- Python應用與實戰