---
title: "Unified Grid: How We Re-Architected Slack for Our Largest Customers"
description: "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."
url: "https://swe.quest/articles/unified-grid-how-we-re-architected-slack-for-our-largest-customers-0ecd04c49320fd50"
canonical: "https://slack.engineering/unified-grid-how-we-re-architected-slack-for-our-largest-customers/"
source: "Slack Engineering"
published: "2024-07-31"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["multi-tenancy","refactoring","system-design","distributed-databases","testing"]
---

# Unified Grid: How We Re-Architected Slack for Our Largest Customers

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2024-07-31, 10 min read, Case study. Original: [https://slack.engineering/unified-grid-how-we-re-architected-slack-for-our-largest-customers/](https://slack.engineering/unified-grid-how-we-re-architected-slack-for-our-largest-customers/)

## Summary

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. The work built on earlier Vitess resharding by channel ID and on RTM changes. APIs were fixed in one of three ways: allowing calls that no longer depended on workspace routing, prompting users to pick a workspace, or fanning queries out across the user's workspaces, capped at 50 relevant workspaces per user. The rollout used a "prototype the path" approach: dogfooding internally, two-pass API fixes, a parallel integration test suite run with org context, shared permission helpers and client data-store migrations, finishing in March 2024.

Written by swe.quest, not by the author.

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

## Topics

- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Distributed databases](https://swe.quest/tags/distributed-databases.md) (Data & databases)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- database sharding ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- multi-tenant SaaS architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))

## Keywords

Slack, Enterprise Grid, Unified Grid, Vitess, IA4

## Related posts

- [Role Management at Slack](https://swe.quest/articles/role-management-at-slack-b07a74302caf6820.md): Slack Engineering · 2021-05-24 · Medium · 9 min read · Identity & auth, System design, Microservices, Deployment, Go
  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.
- [Slack’s Migration to a Cellular Architecture](https://swe.quest/articles/slack-s-migration-to-a-cellular-architecture-7c9634739e313402.md): Slack Engineering · 2023-08-22 · Medium · 8 min read · Resilience, Load balancing, Distributed systems, Cloud platforms, SRE
  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.
- [How Meta built the infrastructure for Threads](https://swe.quest/articles/how-meta-built-the-infrastructure-for-threads-961a6b509998fe97.md): Meta Engineering · 2023-12-19 · Medium · 7 min read · Scaling, Distributed databases, Multi-tenancy, Serverless, Resilience
  Threads reached 100 million sign-ups in five days on existing shared Meta infrastructure rather than purpose-built systems, illustrated through two components: ZippyDB and Async.
- [Managing Slack Connect](https://swe.quest/articles/managing-slack-connect-caad7a7b33cd97bf.md): Slack Engineering · 2023-11-28 · Medium · 9 min read · Configuration management, MySQL, Search, System design, Scaling
  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.
- [Introducing Warehouses: Compute-compute separation in ClickHouse Cloud](https://swe.quest/articles/introducing-warehouses-compute-compute-separation-in-clickhouse-cloud-1fc38498daa39db3.md): ClickHouse · 2025-01-27 · Medium · 10 min read · Analytics & OLAP, Multi-tenancy, Cloud platforms, Distributed databases
  ClickHouse Cloud Warehouses let multiple services, each with its own endpoint, compute nodes, sizing, idling and network access rules, read and write the same data, isolating workloads such as ingestion, BI dashboards and ad-hoc analysis.

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)
