Tagged articles
5 articles
Page 1 of 1
360 Tech Engineering
360 Tech Engineering
Jun 27, 2019 · Backend Development

Introducing gobox: A Lightweight Go Framework for HTTP Request Handling

This article introduces gobox, a self‑developed lightweight Go framework that treats each module as a box, explains its HTTP request handling architecture, key components such as System, Router, SimpleRouter, ActionContext, Controller, demonstrates graceful‑restart support with gracehttp, and provides a complete runnable example with sample curl outputs.

HTTPgoboxgraceful restart
0 likes · 8 min read
Introducing gobox: A Lightweight Go Framework for HTTP Request Handling
Tencent Cloud Developer
Tencent Cloud Developer
Mar 14, 2019 · Backend Development

Implementing Graceful (Hot) Restart for Go HTTP Services

To implement a graceful hot restart for a Go HTTP service, the program listens for SIGHUP, forks a child process that inherits the listening socket via an extra file descriptor, the parent stops accepting new connections and shuts down while the child begins serving, ensuring uninterrupted client requests.

GoProcess Forkgraceful restart
0 likes · 10 min read
Implementing Graceful (Hot) Restart for Go HTTP Services
Qunar Tech Salon
Qunar Tech Salon
Aug 23, 2016 · Backend Development

Design and Implementation of Pitcher: A Go‑Based Reverse Proxy Middleware

The article presents Pitcher, a Go‑implemented reverse‑proxy middleware, detailing its one‑core‑multiple‑routes architecture, callback‑based module model, hot‑configuration reload, graceful restart strategies, GC optimizations, service splitting, and various transport choices such as TCP/protobuf, UDP, and Unix domain sockets to achieve high‑performance, scalable traffic entry for Qunar.

GC optimizationGograceful restart
0 likes · 15 min read
Design and Implementation of Pitcher: A Go‑Based Reverse Proxy Middleware