middleware
Building Production-Ready Rate Limiting Middleware in Go
Writing a logger middleware for use with Mux router
A logging middleware is a piece of software that sits between the incoming request and the final handler function in a web application. Its primary purpose is to log information about each request that comes through the application.
HTTP Panic Recover Middleware
No mater if you are creating a simple rest service or a complex one, you will need to handle panics in order to provide a good resiliency.
HTTP request tracing middleware
Request-based tracing provides a way to determine what exactly is happening with your requests and why.
It is handy when you want to reproduce and understand the problem that you are experiencing.
IP Based rate-limit middleware using go.uber.org/ratelimit
If you’re running a HTTP server and want to rate limit user requests, and most of the frameworks are providing their own middleware.
But if you want something simple and lightweight – or just want to learn – it’s not too difficult to roll your own middleware to handle rate limiting.