Go & performance infrastructure

Companies that trusted Evil Martians with their Go:
WallarmTeleportDoximityPhotobucketNATSKeygen

Evil Martians run a concurrency and performance audit, provide embedded Go engineers, and scope builds like a broker migration.

Step one: the Go performance audit

The audit runs two weeks with one engineer. We profile your services with pprof and runtime/trace, run the race detector in CI, and load-test the hot paths. You get a ranked plan for everything we find, with the top fix shipped as a pull request in your repo. Pricing starts from $14,000.

The Evil Martians method

Cluster operations belong to our platform engineering practice and Rails tuning to performance & scale. We take the Go: the services on your cluster, the pipelines feeding them, and the binaries your customers run. Teams hire us three ways: a concurrency and performance audit, an embedded Go engineer, or a scoped build like a broker migration.

  • Event pipelines and brokers.
    Kafka and NATS topologies, partitioning, consumer groups, exactly-once semantics, and analytics ingestion into ClickHouse.

  • Concurrency correctness.
    Mutex and channel review, data races under -race in CI, goroutine leak detection, context cancellation that actually propagates.

  • Profiling and benchmarking.
    Pprof, runtime/trace, allocation and GC tuning, and load tests on xk6-cable, our Go k6 extension.

  • Go CLIs and on-premise binaries.
    Single-binary tools your customers run inside private networks, cross-compiled for every platform they use.

When a stress test left one AnyCable pod stuck, still reporting connected clients and sending nothing, we sent the Go process SIGQUIT, grouped the 4,663 goroutines in its dump into 27 unique stacks with goroutine-inspect, and traced the deadlock to a misused sync.RWMutex.

We benchmarked five WebSocket servers for Node.js apps, our Go server among them, on identical 32 vCPU, 32 GB Railway boxes. AnyCable Pro held 822,037 idle connections at about 18 KB each, using 14.8 GB and 7.9% CPU, while default Socket.io topped out near 120K. The benchmark code is public.

For AnyCable+, we built Troubleshooting Logs, which stream verbose logs from a running Go server without a restart. Benchmarking our slog handler cut its idle overhead from 266.0 to 8.939 ns per call, within the margin of error of running no handler at all, and we open sourced it as slog-spy.

Throughput flattening out? Book a free 30-min call to scope a Go performance audit.

Our work speaks for itself

Teleport

We’ve been Teleport’s partner since 2020, through a $1.1B valuation. We built their access plugin ecosystem in Go, shipping into gravitational/teleport-plugins with tests and enterprise install guides, and authored two more Go repositories in their organization.

These plugins are currently the #1 selling point for our Teleport product.

Wallarm

Wallarm protects 20,000+ applications and APIs, and their traffic had outgrown the NATS pipeline carrying it. We moved the core event pipeline to Kafka in two months with zero outages: dozens of topics, roughly 30k RPS on the busiest one. Duplicate events had been corrupting their ClickHouse analytics, so we reached exactly-once semantics with materialized views tuned to filter duplicates without losing throughput.

imgproxy

We built imgproxy, the Go image server used by Photobucket, Algolia and eBay. For Photobucket, which hosts more than 10 billion images, we added the ARM build it needed to run on AWS Graviton. Optimole uses imgproxy to serve WordPress sites images around 70% smaller on average. In our benchmark, imgproxy handled 1,000 resize requests from four concurrent users in 200MB of RAM. More in our guide to imgproxy for businesses.

More Go we shipped