Shipyard: How We Built Slack’s Next-Generation EC2 Platform
Shipyard is Slack's EC2 platform that replaces continuously Chef-converged, long-lived instances with immutable, layered AMIs deployed through progressive, metric-gated rollouts.
Shipyard is Slack's EC2 platform that replaces continuously Chef-converged, long-lived instances with immutable, layered AMIs deployed through progressive, metric-gated rollouts.
Across 200+ agent-driven E2E runs against Slack test workspaces, agents using Playwright MCP were the most reliable (0% failures on a simple thread-reply flow, ~12% on a longer search flow).
Slack AI's LLM serving evolved over three years through four phases: self-managed AWS SageMaker endpoints in an escrow VPC, Amazon Bedrock Provisioned Throughput, a hybrid of Provisioned Throughput and On-Demand with spillover routing, and finally a multi-cloud setup adding GCP Vertex AI.
Slack replaced 700+ SSH-based Airflow operators that ran jobs directly on EMR master nodes with REST-based submission through Quarry, its internal job gateway.
Slack's multi-agent security investigation service keeps long-running agent teams coherent through three context channels rather than accumulating full message history.
Slack's HTTP/3 rollout exposed a client-side observability gap: HTTP/3 runs over QUIC on UDP, and neither the commercial SaaS probing tools Slack evaluated nor the Prometheus Blackbox Exporter could probe QUIC endpoints.
Slack replaced four conflicting desktop/mobile notification preference systems with one unified model that separates what to be notified about (All new posts, Mentions, Mute) from how notifications arrive (independent desktop and mobile push toggles).
Slack's Security Engineering team replaced a single-prompt prototype for triaging security alerts with a multi-agent system that chains narrowly scoped model invocations, each constrained by a JSON-schema structured output.
After a third-party VPAT audit following its IA4 redesign, Slack's Android team triaged recurring accessibility issues and fixed most of them: TalkBack now announces errors from OutlinedTextField and SKBanner, list headings are marked, and a custom SKListAccessibilityDelegate overrides CollectionInfo so decorative dividers aren't counted as list items.
Slack cut the 60-minute build pipeline for Quip and Slack Canvas's backend by applying classic software engineering principles (hermetic, idempotent, granular units of work and clean separation of concerns) before adopting Bazel.
Slack split its single production Chef environment into six AZ-mapped environments (prod-1 to prod-6) so newly provisioned nodes no longer pull a possibly bad config from one shared source during scale-outs. prod-1 acts as an hourly canary taking the latest cookbook artifact, while prod-2 through prod-6 advance on a release train where a new version starts only after the previous one reaches prod-6.
Slack's Deploy Safety Program cut customer impact hours from change-triggered incidents by 90% from the 2024 peak, after finding that 73% of customer-facing incidents came from Slack's own changes, mostly code deploys.
Slack cut redundant frontend builds in its monorepo E2E pipeline by using `git diff` three-dot notation against `main` to detect whether a PR touches frontend code, and when it doesn't, serving a recent production frontend build from S3 through an internal CDN instead of rebuilding.
Slack's enterprise search, which brings Google Drive and GitHub results into Slack search and AI Answers, uses a federated, real-time design instead of an index.
Slack added automated accessibility checks to its desktop end-to-end tests by integrating Axe into Playwright via @axe-core/playwright, after embedding checks in Jest/React Testing Library proved impractical with its custom Jest setup.
Slack built a conversion tool to move 242 Jenkins pipelines to GitHub Actions by layering corrections on top of GitHub's Actions Importer, which fully converted about 50% of pipelines, partially converted 45% and failed on 5%.
Slack's internal Kibana cluster failed in January 2024 after running out of disk, a consequence of co-locating its Elasticsearch storage on the same hosts as the application.
Slack Enterprise Grid audit logs record platform actions and include anomaly events that flag unusual behaviour such as new user agents, excessive downloads, unexpected scraping, IP address changes and session fingerprint mismatches.
Slack's Astra log search engine replaced fixed-size chunk slots on cache nodes with dynamically sized chunks, because undersized chunks wasted allocated disk space and oversized chunks from recovery tasks could overflow their slots.
Slack built a set of internal generative-AI developer tools that it estimates will save 10,000+ engineering hours this year.
Spikes of EOFError on SQL queries in Quip's Python backend (which also powers Slack canvas) traced back to connection-state checks that only tracked closes initiated by the application.
Slack evolved its Chef setup for tens of thousands of EC2 instances from a single stack, where every cookbook change hit all environments at once on the hour, into multiple sharded Chef stacks with versioned cookbook rollouts.
Slack re-architected its backend and clients to replace the workspace-centric model, where session tokens carried a workspace ID used for shard routing and access control, with an org-wide Unified Grid view for Enterprise Grid customers.
Slack migrated 60+ EMR clusters serving 40+ teams from EMR 5 (Spark 2.4/Hive 2) to EMR 6 with Spark 3 as the single compute engine.
Slack automatically invalidates user credentials that show up in threat intelligence feeds from breaches, dark web forums, botnets and infostealer malware.
Slack detects stolen session cookies by spotting session forking: a last-access timestamp is stored in both the cookie and the database, and a mismatch on a later request means more than one copy of the cookie is in use.
Slack built the Bedrock Rollout Operator, a Kubebuilder-based Kubernetes operator that drives StatefulSet rollouts through a StatefulsetRollout custom resource.
Slack converted over 15,000 Enzyme tests to React Testing Library ahead of its React 18 upgrade by combining AST codemods with an LLM (Claude 2.1).
Slack AI was designed around four principles: customer data never leaves Slack's trust boundary, no LLM training on customer data, the AI only sees what the requesting user can see, and all existing compliance controls still apply.
Slack's ReleaseBot automates deploys of its monolithic Webapp, shipping 30-40 times a day with a median of 3 PRs per deploy.
Slack enforced IMDSv2 across roughly 60,000 EC2 instances in hundreds of AWS accounts.
Slack's Workflow Builder added drag-and-drop from a new steps sidebar into workflows by moving react-beautiful-dnd's DragDropContext to wrap the whole builder page, with two draggable/droppable lists.
Slack built per-connection configuration for Slack Connect using a single MySQL table keyed by source and target team ID, with org-level defaults modeled as target team 0 and settings stored as a Protobuf blob to avoid per-setting columns and tables.
A customer's bulk removal of users triggered Slack's "forget user" async job, which fanned out into a huge number of "leave channel" jobs.
Slack replaced a single cron box running all scripts from one crontab with a distributed cron execution service built mostly from existing infrastructure.
A Slack request reaches its main region in AWS us-east-1 through a chain of hops.
Slack moved its critical user-facing services in us-east-1 to a cellular architecture where each availability zone is a cell that can be drained, after a 2021 gray-failure network outage in one AZ caused user-visible errors across all AZs.
Slack's Service Delivery Index – Reliability (SDI-R) is a company-wide composite metric that multiplies status-site uptime (minutes key user workflows like sending messages fall below a threshold) by API availability (successful/total requests), expressed in 9s and tracked hourly and daily against quarterly targets.
Slack's real-time messaging runs on four Java services: stateful in-memory Channel Servers sharded by consistent hashing, regionally deployed Gateway Servers holding websocket subscriptions, stateless Admin Servers bridging the Webapp backend, and Presence Servers tracking online users.
Slack models every notification as its own distributed trace, using the notification_id as the trace_id and span links back to the sender's message trace, so notification flows can be sampled at 100% while ordinary backend requests stay at 1%.
Slack has open-sourced Hakana, a Rust-based type checker and static analyzer for Hack, built on Psalm's design and reusing the Hack parser bundled with HHVM.
Slack migrated its 400+ module Android codebase to non-transitive R classes, where each module's R class contains only its own resources, yielding ~14% faster incremental builds after resource or layout changes and an ~8.5% (about 5.5MB) APK/DEX size reduction.
Standing up GovSlack on AWS GovCloud took Slack's Cloud Foundations team nearly two quarters, mostly spent adapting tooling to partition differences.
Slack runs roughly 1,400 Terraform state files across AWS, GCP, DigitalOcean and NS1, split per account, region and large service so each change touches fewer resources.
A dedicated mobile Developer Experience team grew from 3 to 8 engineers and cut CI feedback time and failure rates by targeting the pain points that surveys, NPS and metrics like time to merge showed hurt developers most. iOS test time fell from about 50 minutes to an average of 9 by moving from Xcodebuild to Bazel with disk caching and bazel-diff, so only affected targets are tested.
Slack built a unified Recommend API so product teams can bootstrap new ML recommenders from reusable components (fetchers, filters, feature augmentation via a Feature Store, model scoring and rerankers) instead of building bespoke systems.
Slack consolidated its sprawling, hand-managed "snowflake" Jenkins clusters into BuildRock, a build-as-a-service platform.
Slack added orchestration-level circuit breakers to Checkpoint, its CI/CD orchestration service, to stop cascading failures between internal systems such as GitHub Enterprise, Jenkins, test environments, Flannel, Vitess and search.
Slack moved webapp development off laptops (where Hack/HHVM, a 30-minute clone and Docker-based setups were slow and brittle) onto short-lived AWS EC2 remote environments accessed through VSCode Remote SSH.
Slack's Clips background blur and image replacement run as a browser and desktop pipeline.
Slack's year-and-a-half Duplo initiative concluded by modernizing its iOS and Android codebases: iOS moved to a custom VIPER-style feature architecture, stricter SwiftLint rules banning singletons and NotificationCenter, Combine (via CombineX until iOS 12 was dropped), and broader SlackKit adoption, while Android replaced Gson with Moshi, Android Priority Job Queue with WorkManager, and handwritten API calls with an internal Retrofit-based library, and introduced coroutines and Compose incrementally. iOS ended 68% modernized and 81% modularized with CI stability rising from 77% to 90% and average time-to-merge down 64%, Android reached 92% modularization, and local builds later dropped nearly 50% with Bazel and M1 Macs.
Slack moved to running its Koi Pond load-testing clients continuously, 24/7, against an organization 4x the size of its largest customer.
A Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic.
Slack's mobile DevXp team cut CI test job failures from 57% of failing builds to under 5% by automating flaky test detection and suppression across 27,000+ iOS and Android tests.
Slack split its monolithic iOS and Android app targets into owned Feature, Service and Library modules with strict linking rules, such as interface/implementation pairs on iOS, to cut build times, untangle dependencies and clarify code ownership.
Slack restructured CI for its Webapp monorepo from mostly pre-merge end-to-end testing into three tiers: a small pre-merge set (<1% of e2e tests) that blocks merges, a post-merge set (<10%) that blocks deploys, and a bi-hourly batched regression pipeline for low-criticality features.
Slack standardized roughly 10 Kafka clusters (0.7 PB, 6.5 Gbps peak) onto Kafka 2.0.1 and automated their operation with Chef, Terraform ASGs, Consul-assigned Zookeeper IDs, Cruise Control, Kafka Manager and a Prometheus offset exporter.
Slack chose to refactor its iOS and Android codebases in place through Project Duplo, a cross-platform effort in three phases: Stabilization, Modularization and Modernization.
A Kubernetes validating and mutating admission webhook can be a minimal, stateless Go HTTPS server that receives AdmissionReview requests and returns allow/deny decisions or base64-encoded JSON patches.
Slack's third attempt to enable DNSSEC on slack.com caused a 24-hour outage for under 1% of users.
Slack added Hack support to Semgrep so its 5+ million lines of Hack could be scanned for security vulnerabilities, since no static analysis tools exist for the language.
A year after launching Whitecastle, its AWS network redesign built on Transit Gateway, Slack found that proxy environment variables (http_proxy/no_proxy) were the biggest migration drag.
Slack bent the growth curve of its webapp CI spend, which had been rising about 10% month over month, by using observability (dashboards, metrics and tracing) to drive three changes.
Slack added Android 11 Conversation Bubbles for DMs on top of MessagingStyle notifications, Sharing Shortcuts and BubbleMetadata.
Slack built a central Data Lineage Service that automatically captures table- and column-level lineage by hooking Airflow success callbacks and dashboard audit logs, then parsing the submitted SQL with ANTLR (backed by a large unit-test suite).
Slack's public API design rests on six principles: do one thing well, minimize time to first "Hello world", keep naming consistent, return meaningful errors, design for scale, and avoid breaking changes.
Slack classifies invited email addresses as internal or external, so it can steer users toward Workspace Invites or Slack Connect.
Slack's Android app replaced dagger-android activity injection with a custom Anvil code generator: annotating an activity with @InjectWith(scope) generates an AnvilInjector wrapping Dagger's intrinsic MembersInjector plus a @ContributesTo binding module that adds it to a scope-level multibinding map.
Slack built FocusTransitionManager, a React Context-based coordinator that lets sender components request focus moves via transitionFocusTo({focusKey}) and receiver components claim them via shouldTransitionFocus, so keyboard and screen-reader users don't lose focus when React re-renders remove the focused element.
After a Jenkins and plugin upgrade, Slack's Jenkins UI broke whenever an integrity job marked a node offline using a custom Groovy OfflineMessage class extending Localizable.
Slack replaced its coarse guest/member/admin/owner hierarchy with a role-based access control system that grants granular permissions such as ARCHIVE_CHANNEL scoped to an enterprise or workspace entity.
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.
Slack extended its backend distributed tracing to iOS, Android and JavaScript clients so engineers could pinpoint why client actions like channel switches are slow.
Slack moved its websocket ingress tier, serving millions of concurrent connections, from HAProxy to Envoy Proxy.
Slack moved its PHP 5 backend to HHVM in 2016 for speed and stayed for Hack, whose static type checker reports type errors as code is typed rather than at runtime.
Slack rewrote its Electron desktop app (Slack 3.0) to replace the buggy Chromium webview, which sometimes failed to render after being hidden, with BrowserView, a window-like API that can only be created from the main process.