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
Architecture with NoSQL: Experiences of a SaaS ...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
lautis
August 21, 2012
Technology
4
750
Architecture with NoSQL: Experiences of a SaaS startup
Presentation at WICSA 2012 Industry day.
lautis
August 21, 2012
Tweet
Share
More Decks by lautis
See All by lautis
Real-Time with Flowdock
lautis
2
200
Other Decks in Technology
See All in Technology
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
1
850
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
110
あたらしい上流工程の形。 0日導入からはじめるAI駆動PM
kumaiu
4
690
Tebiki Engineering Team Deck
tebiki
0
23k
3分でわかる!新機能 AWS Transform custom
sato4mi
1
310
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
Kubecon NA 2025: DRA 関連の Recap と社内 GPU 基盤での課題
kevin_namba
0
110
入社1ヶ月でデータパイプライン講座を作った話
waiwai2111
1
210
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
120
制約が導く迷わない設計 〜 信頼性と運用性を両立するマイナンバー管理システムの実践 〜
bwkw
2
750
無ければ作る! バイブコーディングで作ったものを一気に紹介
tatsuya1970
0
110
What happened to RubyGems and what can we learn?
mikemcquaid
0
190
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
260
How to Talk to Developers About Accessibility
jct
2
120
AI: The stuff that nobody shows you
jnunemaker
PRO
2
230
The SEO Collaboration Effect
kristinabergwall1
0
350
Agile that works and the tools we love
rasmusluckow
331
21k
WCS-LA-2024
lcolladotor
0
430
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
46
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
420
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
86
Google's AI Overviews - The New Search
badams
0
900
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Transcript
Architecture with NoSQL Experiences of a SaaS startup Ville Lautanala
None
•Single page JavaScript front-end •Thousands of concurrent users •Three replicated
databases •X servers on two continents •99.98% availability Facts
Streaming API MongoDB Redis + IRC, Twitter, RSS, and Email
integrations WebSocket API Message Backend PostgreSQL Rails App
MongoDB • Document-oriented • JSON based queries • Scalable reads
and writes • Replication and failover built-in • No transactions, no JOINs
SSD == Awesome
None
Chef
Manage servers with code 1. Edit recipes 2. knife upload
3. ??? 4. Profit!!!
Redis: in-memory DB •Key-value store •Data-structure server •Network accessible shared
memory •Non-blocking event-bus (pub/sub)
Flowdock message processing Redis Queue Redis Pubsub MongoDB Flowdock Backend
Redis is SPoF
ZooKeeper
ZooKeeper? •Highly-available key-value store •Enables distributed coordination •Listen for value
changes •Eventual consistency with quorum semantics
Node Manager Node Manager Redis Node Redis Node ZooKeeper Monitor
Update Redis Failover
Zoos are kept.
Chef ZooKeeper Configuration files Dynamic configuration variables Server installation Failover
handling Chef vs ZooKeeper
Network fail Flowdock Comcast Problems
Taking control of the routes 1. Submarine communications cable 2.
3rd party CDN/Load Balancers 3. AWS as SSL endpoint
This Is How We Roll •GeoDNS chooses endpoint •Encrypted VPN
mesh between servers •Servers near client act as SSL endpoint •Request processed near data
150ms faster page requests from U.S.
Conclusions •MongoDB a bit like MySQL 15 years ago •Some
NoSQL databases are suitable for distributed setups •Hardware and network issues needs to be addressed
Thanks!