当前位置:首页 > 报告详情

改变模式:我们为什么以及如何重新架构 Slack.pdf

上传人: 竿*** 编号:981569 2025-11-29 67页 8.46MB

1、Why and how we re-architected SlackIan HoffmanGeocentric Model of the Solar SystemHeliocentric Model of the Solar SystemWhat does this tell us?Subpar architectures can work for a long time001But they will become increasingly complicated002A better architecture will simplify complex problems003You sh

2、ould question your model004Hi,ImIan HoffmanStaff Engineer,SlackPreviously ChairishSlacks V1 ArchitectureThe Workspace ModelSlack OverviewCommunication app for businessesFirst-party Desktop client(Electron)and iOS/Android appsBackend is a monolith written in Hack(sort of like PHP)We run MySQL sharded

3、 using VitessSlack Architecture V1 1 Customer=1 WorkspaceSlack Architecture V1 Workspaces contain users,channels,messages,apps,etcSlack Architecture V1 Each workspace is a closed systemSlack Architecture V1 Architectural ImplicationsData for a single workspace is on a single database shard001Server

4、routes queries from workspaces to shards002More customers?No problembuy more shards003Slack Architecture V1 Slack Architecture V1 Loading an app in the workspace modelWhat if the data for one customer cant fit on one shard?ProblemsSlack Architecture V1 What if customers want multiple workspaces?Prob

5、lemsSlack Architecture V1 Slacks Architecture V2Enterprise GridEnterprise customers can have many workspacesSlack Architecture V2*Within the enterpriseEnterprise users can belong to many workspaces*Slack Architecture V2*Within the enterpriseData(channels,apps)can be shared with multiple workspaces*S

6、lack Architecture V2*Within the enterpriseData(channels,apps)can be shared with multiple workspaces*Slack Architecture V2*Within the enterpriseArchitectural ImplicationsAn“org”serves as a parent for many workspaces001Data for the org is stored on a single database shardIncludes channels,apps,etc tha

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
根据报告的内容,全文主要内容概括如下: 1. **Slack架构演变**:从最初的单一工作空间模型到企业网格,再到统一的网格架构,Slack的架构经历了多次重大重构。 2. **架构问题**:早期架构在处理大量数据和用户时遇到瓶颈,如数据碎片化、用户体验问题、效率低下等。 3. **解决方案**:通过构建统一的网格架构,Slack实现了用户在一个视图中查看所有可访问的工作空间,减少了数据冗余和API调用。 4. **实施过程**:包括原型设计、风险评估、API迁移、测试和逐步推广。 5. **关键数据**:564个使用工作空间上下文的API方法,332个在 workspace 级别不同的团队设置。 6. **结果**:统一的网格架构提高了效率,改善了用户体验,并成为Slack发展的关键。
Slack如何升级?" 从单体到统一网格" 用户体验如何改变?"
客服
商务合作
小程序
服务号
折叠