- 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.
- 深度實踐OpenStack:基于Python的OpenStack組件開發(fā)
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- ThinkPHP 5實戰(zhàn)
- CentOS 7 Linux Server Cookbook(Second Edition)
- JavaFX Essentials
- NativeScript for Angular Mobile Development
- TypeScript實戰(zhàn)指南
- ASP.NET開發(fā)與應用教程
- Learning Apache Karaf
- Vue.js 2 Web Development Projects
- SQL Server 2008 R2數(shù)據(jù)庫技術(shù)及應用(第3版)
- Go語言底層原理剖析
- 深度探索Go語言:對象模型與runtime的原理特性及應用
- PhoneGap 4 Mobile Application Development Cookbook
- Clojure Polymorphism