Examples

Thirteen programs from the upstream MuxMaster examples directory. Each page links to the upstream source.

Thirteen runnable programs cover the production patterns MuxMaster is built for. Start with REST API for a complete bookstore service, including an HTTP QUERY (RFC 10008) search route, then read Maximum performance to see PoolRequestBundle, PoolFastParams, HandleFast, and UseFast working together, with an in-process /bench endpoint that compares a default and a pooled router on your own hardware.

The next four examples show how the pool lifetime contract shapes a program. Versioning and server-sent events run with PoolRequestBundle enabled. Upload file applies the drain-before-spawn rule to background work. Reverse proxy keeps the pool off, because a reverse proxy built on net/http.Transport is not pool-safe. The remaining seven cover authentication, caching, graceful shutdown, server-side rendering, and static files.

Every code excerpt is taken from the upstream program at the v1.3.0 tag, and every page links to the full upstream source.