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
True story of re-architecting website for scale...
Search
Sergejus
November 11, 2013
Technology
71
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
True story of re-architecting website for scale on Windows Azure
Sergejus
November 11, 2013
More Decks by Sergejus
See All by Sergejus
Bringing Developers to the Next Level
sergejusb
0
230
Continuous Happiness by Continuous Delivery
sergejusb
2
3.9k
Windows Azure from practical point of view
sergejusb
1
82
Windows Azure Web Sites: new cloud hosting offering
sergejusb
2
77
Intro to Big Data using Hadoop
sergejusb
2
140
Optimizing ASP.NET application performance: tough but necessary
sergejusb
2
68
Release Often, Release Safely
sergejusb
1
61
Web Scale with NoSQL
sergejusb
1
88
NoSQL – What’s that.pdf
sergejusb
1
75
Other Decks in Technology
See All in Technology
AI時代の開発生産性は、個人技からチーム設計へ
moongift
PRO
4
2.3k
ruby.wasmとPicoRuby.wasmに対応した仮想DOMライブラリを作ってる話 #kaigieffect_kaigi
sue445
PRO
0
150
しくみを学んで使いこなそう GitHub Copilot app
torumakabe
2
290
OPENLOGI Company Profile for engineer
hr01
1
74k
非定型なドキュメントを効率よくリファクタする 〜えぇ!?仕様書27本の移行が1日で終わったって!?〜
subroh0508
2
550
ソニー銀行におけるビジネスアジリティ向上のためのクラウドシフト戦略
srenext
0
710
Kaggleで成長するために意識したこと
prgckwb
2
410
なぜ私たちのSREプラクティスはなかなか機能しないのか 〜システムより先に組織を見る〜 / Why our SRE practices aren't really working
vtryo
4
4k
Terraform共通モジュールをチーム横断で“変えられる”運用へ ― リリースと適用の分離
kekke_n
1
3.3k
SoccerMaster: A Vision Foundation Model for Soccer Understanding
kzykmyzw
0
130
AICoEでAIネイティブ組織への進化
yukiogawa
0
190
Devsumi 2026 Summer 人もAIも使える共通基盤を事業の加速装置にする~デザインシステム運用に学ぶ組織レバレッジ~ 渡辺 凌央
legalontechnologies
PRO
1
230
Featured
See All Featured
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
270
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
900
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
Mind Mapping
helmedeiros
PRO
1
280
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.4k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
170
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Music & Morning Musume
bryan
47
7.3k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
750
Transcript
True story of re-architecting website for scale on Windows Azure
1,3 billion+ web transactions / day 3 datacenters / 300+
servers
Lithuanian-based startup 20K+ unique visitors per month can go viral
any day soon
HOSTING WINDOWS AZURE website, blog static content database photos Linux
| Apache | MySQL | PHP Linux | Nginx | FTP
~260K page views / month ~9K page views / day
~1K page views / hour ~0,2 page views / second 20K+ but spikes up-to 50 page views / second
Cloud gives more flexibility and scalability options Windows Azure is
Microsoft’s Cloud Platform BizSpark gives Windows Azure for free for 1 year Let’s move!
VIRTUAL MACHINE
HOSTING WINDOWS AZURE website, blog static content database photos Linux
| Apache | MySQL | PHP Linux | Nginx | FTP
WINDOWS AZURE website, blog static content database photos Linux |
Apache | MySQL | PHP Linux | Nginx | FTP
Dedicated VM for storing content is suboptimal in the cloud
Manual management & scaling No backups SCALING ISSUE #1
BLOB STORAGE
WINDOWS AZURE website, blog static content database photos Linux |
Apache | MySQL | PHP Linux | Nginx | FTP
WINDOWS AZURE website, blog static content database photos Linux |
Apache | MySQL | PHP HTTP
Static content on the same VM as website and blog
Different scalability targets Photos are part of static content SCALING ISSUE #2
WINDOWS AZURE website, blog static content database photos Linux |
Apache | MySQL | PHP HTTP
WINDOWS AZURE website, blog database static content Linux | Apache
| MySQL | PHP HTTP
Database on the same VM as website and blog Very
different scalability targets and strategies SCALING ISSUE #3
WINDOWS AZURE website, blog database static content Linux | Apache
| MySQL | PHP HTTP
WINDOWS AZURE database static content Linux | MySQL HTTP website,
blog Linux | Apache | PHP
Blog on the same VM as website Different scalability targets
SCALING ISSUE #4
WEBSITES
WINDOWS AZURE database static content Linux | MySQL HTTP website,
blog Linux | Apache | PHP
WINDOWS AZURE database static content Linux | MySQL HTTP website
Linux | Apache | PHP blog IIS | PHP
FURTHER SCALING
Website gets more requests than can handle SCALING ISSUE #5
WINDOWS AZURE database static content Linux | MySQL HTTP website
Linux | Apache | PHP blog IIS | PHP
WINDOWS AZURE database static content Linux | MySQL HTTP website
Linux | Apache | PHP blog IIS | PHP
Database gets more queries than can handle SCALING ISSUE #6
WINDOWS AZURE database static content Linux | MySQL HTTP website
Linux | Apache | PHP blog IIS | PHP
WINDOWS AZURE read-only database static content HTTP website Linux |
Apache | PHP blog IIS | PHP write-only database Linux | MySQL Linux | MySQL
Read-only database gets more queries than can handle SCALING ISSUE
#7
WINDOWS AZURE read-only database static content HTTP website Linux |
Apache | PHP blog IIS | PHP write-only database Linux | MySQL Linux | MySQL
WINDOWS AZURE read-only database static content HTTP website Linux |
Apache | PHP blog IIS | PHP write-only database Linux | MySQL Linux | MySQL
Write-only database gets more queries than can handle SCALING ISSUE
#8
This is a nice issue to have Split write-only database
into shards with multiple read-only slaves for each shard accessed via layer of distributed cache
DEMO
WINDOWS AZURE database static content SQL Database HTTP blog IIS
| PHP
WINDOWS AZURE SERVICES
Windows Azure Virtual Machine for VMs Windows Azure Blob Storage
for static content Windows Azure Website for hosting web site WINDOWS AZURE
Windows Azure Service Bus for messaging Windows Azure Cache Service
for distributed caching Windows Azure Notification Hubs for push notification Windows Azure HDInsight for big data WINDOWS AZURE
WINDOWS AZURE DATA SERVICES SQL Database Storage HDInsight Cache Backup
Recovery Manager APP SERVICES Media Services Service Bus Notification Hubs BizTalk Services Active Directory Multi-Factor Auth NETWORK SERVICES Virtual Network Traffic Manager COMPUTE Virtual Machines Web Sites Mobile Services Cloud Services Pricing calculator: http://www.windowsazure.com/en-us/pricing/calculator/?scenario=full
None
None
None