Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
如何构建 SaaS 应用 @RubyConfChina2015
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Zilong Wang
October 11, 2015
Technology
820
6
Share
如何构建 SaaS 应用 @RubyConfChina2015
介绍 SaaS 应用的架构,包括多租户、微服务、水平拓展等。
Zilong Wang
October 11, 2015
Other Decks in Technology
See All in Technology
AIが書いたコードを信じられない問題 〜レビュー負荷を下げるために変えたこと〜 / The AI Code Trust Gap: Reducing the Review Burden
bitkey
PRO
8
1.3k
実践ハーネスエンジニアリング:TAKTで実現するAIエージェント制御 / Practical Harness Engineering: AI Agent Control Enabled by TAKT
nrslib
12
4.7k
MLOps導入のための組織作りの第一歩
akasan
0
340
データを"持てない"環境でのアノテーション基盤設計
sansantech
PRO
1
130
バイブコーディングで3倍早く⚪⚪を作ってみた
samakada
0
110
EBS暗号化に失敗してEC2が動かなくなった話
hamaguchimmm
2
210
ServiceNow Knowledge 26 の歩き方
manarobot
0
120
マルチエージェント × ハーネスエンジニアリング × GitLab Duo Agent Platformで実現する「AIエージェントに仕事をさせる時代へ。」 / 20260421 GitLab Duo Agent Platform
n11sh1
0
170
AI: Making Admin and Users, Lives Better
kbmsg
0
110
ハーネスエンジニアリングの概要と設計思想
sergicalsix
9
5.1k
クラウドネイティブな開発 ~ 認知負荷に立ち向かうためのコンテナ活用
literalice
0
140
260422_Sansan_Tech_Talk__関西_vol.3_データ活用のリアル__矢田__.pdf
sansantech
PRO
0
110
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
3
330
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
How to train your dragon (web standard)
notwaldorf
97
6.6k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.2k
Navigating Weather and Climate Data
rabernat
0
170
How to Ace a Technical Interview
jacobian
281
24k
Between Models and Reality
mayunak
3
270
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
800
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
180
Transcript
如何构建 SaaS 应用 王子龙 @cookiebody
SaaS 是什么? 面向企业的互联网软件。
SaaS 是什么? 面向企业的互联网软件。
SaaS 是什么? 面向企业的互联网软件。
SaaS 市场潜力怎样?
SaaS 市场潜力怎样?
消费市场 企业市场
构建 SaaS 之架构 虚拟化 Virtualization 多租户 Multitenancy
自动部署和更新 虚拟化
多租户 所有数据都通过租户区分 所有操作都包含租户ID
多租户数据存储架构 尽量避免运行期间执行DDL
构建 SaaS 之架构 一体化 Monolithic 微服务 Microservice
示例 数据库 博客 论坛 应用进程 添加验证码图片 添加全文搜索
一体化 数据库 博客 论坛 全文搜索 验证码 应用进程 全文索引 Image Magick
CaptchaModule.generate CaptchaModule.validate(id, value) SearchModule.build(para) SearchModule.search(keyword)
微服务 数据库 博客 论坛 全文搜索 验证码 应用进程 全文索引 Image Magick
应用进程 应用进程 HTTP.post("captcha/generate") HTTP.post("captcha/validate", id, value) HTTP.post("search/build", para) HTTP.post("search", keyword)
None
None
构建 SaaS 之性能优化 热点数据长期缓存 慢操作异步化处理 Cache Database 获取
更改 App Worker Queue SSE Ajax Poll
构建 SaaS 之扩展 垂直扩展 水平扩展
三层结构 DB App App Web Server
水平扩展 DB App App Web Server Web Server App DB
Load Balancer Replication 放在负载均衡之后 无状态的App,直接加 集群中加节点
水平扩展之数据库 Sharding 适合非结构化数据 无需跨DB的事务
水平扩展 节点1 节点2 节点3 同个用户的数据,都存储在同个节点中 每个节点,都包含完整的基础设施 10K+ 用户 / 节点
50+ 节点
Ruby 相关技术栈 App Server Web framework Database
library
以往的企业软件,是为了提升工作效率。 目前,软件的机会,在于变革工作本身。 @levie Box CEO