http
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 matter if you are creating a simple REST service or a complex one, you will need to handle panics to provide good resiliency and stability. Without panic recovery mechanisms in place, an uncaught panic in your HTTP handler will crash your entire server, leaving your clients without service and no meaningful error response.
Static website hosting with NGINX and LetsEncrypt
Static site generators are a fantastic way to manage a website. Static sites are faster and safer than dynamic sites. Nginx is an ideal web server for serving these static files.
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.