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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
Transcript
25 slides
如何构建 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
Other Decks in Technology
See All in Technology
IP重複は"ランディングVPC"で受け止める ― PrivateLink と Transit Gatewayによるマルチテナント接続基盤の設計
hatahata021
3
260
AWS Well-Arhitected Frameworkセキュリティの柱 について
miu_crescent
PRO
2
170
gradle-best-practices 使ってみた
mikanichinose
0
220
コーディングできない僕にBobが舞い降りた
shumpei3
0
170
変更差分を読むために環境を整備しよう
pipepasta
1
610
社内アプリ基盤「Quartz」による、 非エンジニアとAIに本番デプロイを 任せても壊れないプラットフォームの設計
staka121
PRO
1
180
AIエージェントのアーキテクチャ設計
nsatoh
0
440
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
0
190
OCI Artifact による自動運転タクシーに向けた OTA 基盤の構築
biwashi
1
240
設計手法を「道具」として使いこなすために
a_suenami
7
1.6k
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
220
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
160
Featured
See All Featured
Scaling GitHub
holman
464
140k
So, you think you're a good person
axbom
PRO
2
2.3k
Designing Powerful Visuals for Engaging Learning
tmiket
1
660
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
360
Typedesign – Prime Four
hannesfritz
42
3.2k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Writing Fast Ruby
sferik
630
63k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
830