- 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.
- Vue 3移動Web開發與性能調優實戰
- 深入理解Bootstrap
- LabVIEW入門與實戰開發100例
- Ceph Cookbook
- Mastering Ubuntu Server
- STM32F0實戰:基于HAL庫開發
- Interactive Applications Using Matplotlib
- 軟件測試技術指南
- JAVA程序設計實驗教程
- Python數據結構與算法(視頻教學版)
- 第一行代碼 C語言(視頻講解版)
- 零基礎學Kotlin之Android項目開發實戰
- SQL Server 2016 從入門到實戰(視頻教學版)
- TypeScript圖形渲染實戰:2D架構設計與實現
- Sitecore Cookbook for Developers