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
Azure NUS ACM talk 2 - Scaling your Webapp on A...
Search
laurenceputra
September 22, 2012
Technology
2
110
Azure NUS ACM talk 2 - Scaling your Webapp on Azure
By Ruiwen and Laurence
laurenceputra
September 22, 2012
Tweet
Share
More Decks by laurenceputra
See All by laurenceputra
STEM in the industry
laurenceputra
0
28
Azure Geek Girls talk
laurenceputra
1
61
Azure NUS ACM talk 1 - Meeting your VM
laurenceputra
1
79
Leadership Class Presentation
laurenceputra
0
88
Azure talk for NUS
laurenceputra
1
97
GeekcampSG - Introduction to Distributed Systems
laurenceputra
5
1.5k
MongoDB for PHP User Group SG
laurenceputra
2
1.2k
Other Decks in Technology
See All in Technology
非機能品質を作り込むための実践アーキテクチャ
knih
5
1.6k
pg_bigmをRustで実装する(第50回PostgreSQLアンカンファレンス@オンライン 発表資料)
shinyakato_
0
110
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
180
多様なメトリックとシステムの健全性維持
masaaki_k
0
120
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
1.5k
エンジニアカフェ忘年会2024「今年やらかしてしまったこと!」
keropiyo
0
100
事業貢献を考えるための技術改善の目標設計と改善実績 / Targeted design of technical improvements to consider business contribution and improvement performance
oomatomo
0
150
最近のSfM手法まとめ - COLMAP / GLOMAPを中心に -
kwchrk
3
350
2024年にチャレンジしたことを振り返るぞ
mitchan
0
150
Working as a Server-side Engineer at LY Corporation
lycorp_recruit_jp
0
380
新機能VPCリソースエンドポイント機能検証から得られた考察
duelist2020jp
0
230
プロダクト開発を加速させるためのQA文化の築き方 / How to build QA culture to accelerate product development
mii3king
1
290
Featured
See All Featured
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
Statistics for Hackers
jakevdp
796
220k
Six Lessons from altMBA
skipperchong
27
3.5k
Writing Fast Ruby
sferik
628
61k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
What's in a price? How to price your products and services
michaelherold
244
12k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
4 Signs Your Business is Dying
shpigford
182
21k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Faster Mobile Websites
deanohume
305
30k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Transcript
WINDOWS AZURE SCALING YOUR APPS HOW TO GET STARTED, AND
WHAT YOU NEED TO GET GOING by & Laurence Putra Chua Ruiwen
WHAT THIS TALK IS NOT A guide to using x,
y, or z web development framework. OR A 100% sure fire way to scale
BUT RATHER some of the best practices As well as
tools that you will find helpful in your app.
QUICK POLL HOW MANY OF YOU ... 1. ... run
your own servers? 2. ... runs a website of some sort? 3. ... understands distributed systems? 4. ... has done sysadmin stuff before?
WHAT DO YOU GUYS WHAT TO HEAR ABOUT?
CLOUDFLARE Provides you with DNS layer caching
None
None
WHY USE IT?
DEMO
MONGODB Why MongoDB? 1. It's AWESOME 2. It's FLEXIBLE 3.
It's FAST
And it’s really easy to do all those hardcore DevOps
stuff that you’ve been hearing about. Stuff like High Availability, Sharding, and Backups ...
... Add in the fact that you can add in
new fields any time. Fast ...
... and backup your ENTIRE database without facing performance issues
WHO USES MONGODB Craigslist, SAP, Codecademy, Disney, IGN, EA, Guardian,
Business Insider, Forbes, New York Times, CNN, Trello, bit.ly, Eventbrite, Foursquare, College Humor, Justin.tv, Grooveshark, about.me...
KEY CONCEPTS
SHARDING
HOW IT IS DONE? Spiltiing data into logical chunks based
on a predefined shard key
None
None
REPLICATION “Replication in computing involves sharing information so as to
ensure consistency between redundant resources, such as software or hardware components, to improve reliability, fault-tolerance, or accessibility. - Wikipedia”
HUMAN SPEAK “Storing your data multiple times in multiple locations
and praying hard that all of them do not die at the same time.”
None
None
None
None
Reads on any of the nodes Writes only on master
node Eventually correct data
MERGING THE 2
None
None
None
DEMO I am going to take a live production server
down Really Geekcamp.SG's server
SETTING UP MONGODB MongoDB website
MIXPANEL Awesome Analytics site. Allows you to see ALL your
stats in real-time
USING IT As simple as m i x p a
n e l . t r a c k ( " B u t t o n c l i c k e d " ) ;
DEMO
HOW DOES IT ALL COME TOGETHER?
DEMO GEEKCAMP.SG'S CODE Github link
SELF INFLICTED PAIN
None
NETFLIX SIMIAN ARMY Chaos Monkey Latency Monkey Conformity Monkey Doctor
Monkey Janitor Monkey Security Monkey Chaos Gorilla
CHAOS MONKEY Shuts down instances randomly Allows the team to
learn about weaknesses in the system Gets the team to build auto recovery systems
LATENCY MONKEY Introduces artificial delays in api client-server communication layer
Simulates server degradation Useful for testing fault tolerance of new services
CONFORMITY MONKEY Shuts down servers that don’t adhere to best
practices Forces the service owner to relaunch them properly
DOCTOR MONKEY Runs checks on health of servers Remove unhealthy
servers from service and alerts service owner
SECURITY MONKEY Scans for security violations or vulnerabilities Ensures that
SSL and DRM certs are not expiring
CHAOS GORILLA Shuts down all instances within an availability zone
Talk about overkill
BEST PART IS SIMIAN ARMY IS ENTIRELY OPEN SOURCE Github
link here!
NEW RELIC
THE END QUESTIONS?
None