- Building Microservices with Go
- Nic Jackson
- 192字
- 2021-07-15 17:28:06
Designing a Great API
Regardless of whether you are experienced in building APIs and microservices and looking for the techniques on how you can apply them with Go or you are completely new to the world of microservices, it is worth spending the time to read this chapter.
Writing an API contract feels part art, part science and, when you discuss your design with other engineers, you will most certainly agree to disagree, not to the level of tabs versus spaces, but there is certainly something personal about API contracts.
In this chapter, we will look at the two most popular options, which are RESTful and RPC. We will examine the semantics of each approach, which will equip you with the knowledge to argue your case when the inevitable discussion (read argument) occurs. Choosing between REST or RPC may be entirely down to your current environment. If you currently have services running that implement a RESTful approach, then I suggest you stick with it, likewise if you now use RPC. One thing I would suggest is that you read the entire chapter to understand the semantics, pros, and cons of each approach.
- Android Wearable Programming
- C++程序設計(第3版)
- Cocos2D-X權威指南(第2版)
- Oracle 11g從入門到精通(第2版) (軟件開發視頻大講堂)
- Game Programming Using Qt Beginner's Guide
- Learning AWS Lumberyard Game Development
- Linux:Embedded Development
- Getting Started with LLVM Core Libraries
- CoffeeScript Application Development Cookbook
- C#程序設計教程(第3版)
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- Django 5企業級Web應用開發實戰(視頻教學版)
- Python函數式編程(第2版)
- 例說FPGA:可直接用于工程項目的第一手經驗
- Android熱門應用開發詳解