Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
如何构建 SaaS 应用 @RubyConfChina2015
Search
Zilong Wang
October 11, 2015
Technology
850
6
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
如何构建 SaaS 应用 @RubyConfChina2015
介绍 SaaS 应用的架构,包括多租户、微服务、水平拓展等。
Zilong Wang
October 11, 2015
Other Decks in Technology
See All in Technology
AI駆動開発における開発環境のセキュリティの考え方
yamahiro
2
660
E2Eってつらくないですか?E2Eの管理コストを下げる手段とその実践
akaboshinit
5
2.6k
日本AIベンチャーレポート2026
kentarofujii
0
260
Adversary Infrastructure Hunting101
disconinja
0
170
【Oracle AI SPOTLIGHT ウェビナー】事例から見る!なぜOCIが選ばれたのか ― AI時代のクラウド戦略を紐解く ―
oracle4engineer
PRO
1
120
推論基盤と Scale-Up Interconnect の現状と制約から俯瞰する技術動向
markunet
2
590
Technical Project Manager の役割とやりがい、少しだけ AI
yoshiiryo1
0
130
Claude Code on Bedrock で統制をかける小ネタ集/claude-code-bedrock-governance-tips
emiki
1
13k
AIエージェントに 権限と鍵をどこまで渡すか
nrinetcom
PRO
2
140
キヨさん67歳 AIコーディングエージェント物語
happysamurai294
0
120
Claude for Google Workspaces ポン出し/claude-for-google-workspace-slide-conversion
emiki
0
13k
バイブコーディングの特徴と「コケて直す」ループ
happysamurai294
0
110
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
GitHub's CSS Performance
jonrohan
1033
470k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
460
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Docker and Python
trallard
47
4.2k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
820
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
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