---
title: "Managing Slack Connect"
description: "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."
url: "https://swe.quest/articles/managing-slack-connect-caad7a7b33cd97bf"
canonical: "https://slack.engineering/managing-slack-connect/"
source: "Slack Engineering"
published: "2023-11-28"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["configuration","mysql","search","system-design","scalability"]
---

# Managing Slack Connect

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2023-11-28, 9 min read, Case study. Original: [https://slack.engineering/managing-slack-connect/](https://slack.engineering/managing-slack-connect/)

## Summary

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. The application-layer store first grew into a tightly coupled monolith of per-pref logic, so it was refactored into a container that delegates to per-pref wrapper classes implementing transform, isValid and migrate, with exceptions isolated per pref. Wrapper classes won over code generation because each pref differed too much to template. For admin dashboards, multi-table reads over partitioned data caused latency and timeouts, so Slack denormalized connection data into Solr instead of MySQL, accepting a roughly five-second indexing delay in exchange for full indexing, array-field queries and dynamic fields that scale to millions of connections.

Written by swe.quest, not by the author.

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

## Topics

- [Configuration management](https://swe.quest/tags/configuration.md) (Reliability & operations)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)

## Prerequisites

- MySQL sharding basics ([easy posts on MySQL](https://swe.quest/tags/mysql.md?difficulty=easy))
- Protocol Buffers
- search indexes ([easy posts on Search](https://swe.quest/tags/search.md?difficulty=easy))

## Keywords

Slack Connect, MySQL, Protobuf, Solr, Memcached, Vitess

## Related posts

- [Unified Grid: How We Re-Architected Slack for Our Largest Customers](https://swe.quest/articles/unified-grid-how-we-re-architected-slack-for-our-largest-customers-0ecd04c49320fd50.md): Slack Engineering · 2024-07-31 · Medium · 10 min read · Multi-tenancy, Refactoring & migrations, System design, Distributed databases, Testing
  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.
- [Admixer Aggregates Over 1 Billion Unique Users a Day using ClickHouse](https://swe.quest/articles/admixer-aggregates-over-1-billion-unique-users-a-day-using-clickhouse-371a80bbeb209b05.md): ClickHouse · 2022-01-11 · Medium · 8 min read · Analytics & OLAP, Ads, Scaling, Data pipelines
  Admixer's ad exchange ingests about 100 billion records a day, over 1 million inserts per second, into a 15-server ClickHouse cluster after outgrowing MSSQL and the per-transaction pricing of Azure Table Storage.
- [Data Lineage at Slack](https://swe.quest/articles/data-lineage-at-slack-fbf2aa4b9e9054d0.md): Slack Engineering · 2021-08-17 · Medium · 8 min read · Data pipelines, Privacy, Analytics & OLAP
  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).
- [How HighLevel rebuilt its data platform for speed, scale, and simplicity on ClickHouse Cloud](https://swe.quest/articles/how-highlevel-rebuilt-its-data-platform-for-speed-scale-and-simplicity-on-826417013669e8fd.md): ClickHouse · 2026-01-12 · Medium · 8 min read · Analytics & OLAP, Databases, Scaling, Observability
  HighLevel replaced MySQL, Elasticsearch, Firestore and a document database with ClickHouse Cloud for lead activity, workflow logs, notifications and billing dashboards.
- [Email Classification](https://swe.quest/articles/email-classification-eca32c5c2123a429.md): Slack Engineering · 2021-07-28 · Medium · 11 min read · MySQL, Consistency models, System design, Scaling
  Slack classifies invited email addresses as internal or external, so it can steer users toward Workspace Invites or Slack Connect.

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)
