---
title: "Load Testing with Koi Pond"
description: "Koi Pond is Slack's load-testing tool that boots lightweight simulated clients (koi), grouped into schools of up to 5,000, which open real websocket connections and call Web APIs."
url: "https://swe.quest/articles/load-testing-with-koi-pond-0d1865c57c75034d"
canonical: "https://slack.engineering/load-testing-with-koi-pond/"
source: "Slack Engineering"
published: "2021-04-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 14
tags: ["testing","performance","scalability","realtime","capacity-planning"]
---

# Load Testing with Koi Pond

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2021-04-23, 14 min read, Case study. Original: [https://slack.engineering/load-testing-with-koi-pond/](https://slack.engineering/load-testing-with-koi-pond/)

## Summary

Koi Pond is Slack's load-testing tool that boots lightweight simulated clients (koi), grouped into schools of up to 5,000, which open real websocket connections and call Web APIs. They run two kinds of work. Behaviors are templated API sequences fired at frequencies taken from real workspace usage. Formations make a percentage of koi act together within a time window to recreate thundering herds such as mass reactions in an announcement channel. Scaling from 5,000 to 1 million koi before a large customer launch, alongside manual QA and API Blast, exposed problems that single-endpoint tools missed: real-time server overload from file-sharing fan-out, a missing rate limit on chat.postMessage, and a monitoring database that needed more shards.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)

## Prerequisites

- load testing basics ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- websockets ([easy posts on Real-time systems](https://swe.quest/tags/realtime.md?difficulty=easy))
- API rate limiting

## Keywords

Koi Pond, Slack, API Blast, Puppet Show, Vitess, Flannel, Go templates

## Related posts

- [Continuous Load Testing](https://swe.quest/articles/continuous-load-testing-cb6889189cd6bc8f.md): Slack Engineering · 2022-04-29 · Medium · 13 min read · Testing, Performance engineering, Resilience, Kubernetes, Deployment
  Slack moved to running its Koi Pond load-testing clients continuously, 24/7, against an organization 4x the size of its largest customer.
- [Automating performance tests](https://swe.quest/articles/automating-performance-tests-3c422bee8eb7f6b1.md): Supabase · 2024-02-21 · Medium · 7 min read · Testing, Performance engineering, Observability, Infrastructure as code, CI/CD
  Supabase built its performance-testing pipeline while rewriting its WebSocket-based Realtime service, starting with manual k6 load generators on AWS VMs and adding Grafana/Prometheus to diagnose loader resource exhaustion.
- [Building an End to End load test automation system on top of Kubernetes](https://swe.quest/articles/building-an-end-to-end-load-test-automation-system-on-top-of-kubernetes-7beb3707dbd053ca.md): Zalando Engineering · 2021-03-01 · Medium · 9 min read · Testing, Performance engineering, Kubernetes, Payments & fintech, Capacity planning
  Zalando's payments team built an automated end-to-end load testing system in its Kubernetes test cluster.
- [Performance Testing At Scale—for BFCM and Beyond](https://swe.quest/articles/performance-testing-at-scale-for-bfcm-and-beyond-2d2b72564f475785.md): Shopify Engineering · 2023-01-27 · Medium · 15 min read · Capacity planning, Performance engineering, Testing, Scaling, E-commerce
  Shopify prepares for Black Friday Cyber Monday by repeatedly running full-scale load tests against production: scaling Shopify Core and dependencies (nginx routing, ProxySQL, key/value store) to their BFCM profile, layering five Cronograma-driven traffic flows (browse/buy, admin, flash sale, Storefront API, Hydrogen/Oxygen) with an abort switch, then scaling down in reverse order and running blameless retrospectives.
- [2026 World Cup: Breaking Records, Spiky Charts and Reliability at Scale](https://swe.quest/articles/2026-world-cup-breaking-records-spiky-charts-and-reliability-at-scale-5c9caeadf4dd35de.md): Meta Engineering · 2026-10-15 · Easy · 4 min read · Capacity planning, Scaling, Resilience, Load balancing, SRE
  The 2026 World Cup set Meta platform records, including WhatsApp peaking above 30 million messages per second during the final, with traffic surges driven by match breaks and whistles rather than live gameplay.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
