# smallnest/1m-go-tcp-server

benchmarks for implementation of servers which support 1 million connections

Repository: https://github.com/smallnest/1m-go-tcp-server
Canonical: https://ross.abutalabs.com/products/1m-go-tcp-server
Language: Go
License Family: other
Topics: benchmark, golang, go, epoll
Last push: 2021-04-15T14:32:27+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2756, "days_push": 1966, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1928, forks 356 (observed 2026-08-28T04:05:55.893286+00:00)

## What it is
A collection of Go TCP server implementations benchmarked at supporting 1 million concurrent connections, comparing goroutine-per-connection, epoll, prefork, and workerpool (Reactor) approaches. It includes throughput and latency test results plus Linux kernel tuning guidance.

## Use cases
- benchmark tcp servers handling 1 million connections in go
- compare epoll vs goroutine-per-connection performance
- learn how to write high-concurrency tcp servers in go
- tune linux for massive numbers of tcp connections
- understand reactor pattern and prefork server designs

## When to choose
- you want to learn or benchmark extreme-concurrency TCP server patterns in Go
- you need reference epoll-based server/client implementations
- you want real throughput and latency numbers for different concurrency models

## When to avoid
- you need a production-ready TCP server framework
- you need a maintained library with a license and active releases
- you target platforms other than Linux, since epoll is Linux-specific

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: benchmarking, http-server, networking, concurrency
- domain: networking, performance, developer-tools
- platform: go
- tags: epoll, tcp-server, c10k, high-concurrency, goroutines, reactor-pattern, linux

## Member repositories
- smallnest/1m-go-tcp-server (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.893286+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:09:08.290772+00:00, confidence not recorded.
  - readme: https://github.com/smallnest/1m-go-tcp-server (fetched 2026-08-28T04:05:55.893286+00:00, sha e25bcbfc0c48)
- Data as of 2026-08-30T08:39:29.467469+00:00.
