- Hands-On RESTful Web Services with Go
- Naren Yellavula
- 129字
- 2021-06-24 17:04:28
Working with Middleware and RPC
In this chapter, we are going to look at two new concepts. First, we will learn about middleware, and how can we build one from scratch. Then, we will move to a better middleware solution written by the community, called Gorilla handlers. We will then see the use cases where middleware is helpful. After that, we will learn about developing Remote Procedure Call (RPC) services with Go's internal RPC and JSON-RPC. Then, we will move to an advanced RPC framework called Gorilla HTTP RPC.
The topics we cover in this chapter are as follows:
- What is middleware?
- Multiple middleware and chaining
- Painless middleware chaining with alice
- Using Gorilla handlers middleware for logging
- What is RPC?
- JSON-RPC using Gorilla RPC