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
Skalowalne architektury webowe
Search
Mariusz Gil
November 27, 2012
Programming
2
220
Skalowalne architektury webowe
Mariusz Gil
November 27, 2012
Tweet
Share
More Decks by Mariusz Gil
See All by Mariusz Gil
Aspect Oriented Programming
mariuszgil
1
280
Designing and implementing GraphQL API
mariuszgil
1
39
Discovering unknown with EventStorming ConFoo
mariuszgil
0
240
Game of Developer Life... Deconstructed
mariuszgil
1
150
Back to forgotten roots
mariuszgil
1
350
Go micro with microservices
mariuszgil
5
520
Machine Learning for the rescue
mariuszgil
0
340
Discovering graph structures
mariuszgil
3
510
Introduction to Aerospike with PHP
mariuszgil
8
710
Other Decks in Programming
See All in Programming
初心者がおさえておきたいAWS CDKのベストプラクティス 2024
konokenj
15
7.3k
DynamoDB コスト最適化っぽいことの基本 with Terraform
kuro_kurorrr
2
250
Rust.Nagoya #1
codemountains
0
170
「2024年版 Kotlin サーバーサイドプログラミング実践開発」の補講 〜O/Rマッパー編〜
n_takehata
2
260
Rubyのパフォーマンスプロファイリングの改善 / Enhancing performance profiling for Ruby
osyoyu
1
410
最近追加した型の紹介とその振り返り
aki19035vc
0
180
Trial
cairolibrary720
1
130
ぼっちを避けて楽しむためのアノテコノテ / Various Tips and Tricks to Avoid Loneliness and Have Fun
nrslib
3
1.7k
最古の関数型言語「Lisp」ことはじめ / lisp_in_kamiyama
uhooi
1
190
Composing an API the *right* way (Droidcon Berlin 2024)
zsmb
1
450
【Go言語】ジェネリクス
tomo1227
0
170
CSC307 Lecture 06
javiergs
PRO
0
360
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
124
16k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.8k
Git: the NoSQL Database
bkeepers
PRO
423
64k
A designer walks into a library…
pauljervisheath
201
24k
Writing Fast Ruby
sferik
623
60k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
52k
10 Git Anti Patterns You Should be Aware of
lemiorhan
652
58k
KATA
mclloyd
20
13k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
36
9.1k
How to Think Like a Performance Engineer
csswizardry
4
590
Building an army of robots
kneath
301
42k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
245
1.2M
Transcript
SsKkAaLlOoWwAaLlNnEe AaRrCcHhIiTtEeKkTtUuRrYy WwEeBbOoWwEe MmAaRrIiUuSsZz GgIiLl TtEeCcHh.3CcAaMmPp GgDdYyNnIiAa / PpPpNnTt ||||||
slowem wstepu - `
None
` ogry sa jak cebule...
` ...aplikacje tez maja warstwy... .
...ale male aplikacje sa jak wall-e ` -
view controller model
None
dual turbo ultimate
i can handle the load! ?
realnie?
500M odslon dziennie 15B+ odslon miesiecznie 20 inzynierow 40k requestow
w piku 1TB danych w hadoop dziennie 500 serwerow web 200 serwerow bazodanowych 30 serwerow memcache 20 serwerow redis 15 serwerow varnish 25 serwerow ha proxy 14 serwerow kolejek ` ` ` ` ` ` ` ` ` . ` - -
1 milion nowych uzytkownikow w 12 godzin ` .
PpAaTtTtEeRrNnSs DdEeSsIiGgNn
4podstawowe aspekty skalowania aplikacji 1
1
PpOoDdZzIiAaLl PpOoZzIiOoMmYy LlOoAaDd BbAaLlAaNnCcIiNnGg -
skalowanie
None
None
None
None
software? varnish / nginx amazon elastic load balancer / amazon
ec2 instance linux virtual server balancer / lvs node ha proxy / MySQL server
NnOoTtHhIiNnGg SsHhAaRrEeDd
KkEeEePp IiTt SsIiMmPpLlYy SsTtAaTtEeLlEeSsSs KkIiSsSs
2
CcAaCcHhIiNnGg
oszczednosc zasobow ` ` ` `
app cache data storage 1 get 2 fetch 3 set
app cache data storage 1 get 3 set software? memcached
redis nosql key-value storages varnish
There are only two hard things in Computer Science: cache
invalidation and naming things. Phil Karlton „
content delivery network load balancer 1 get app 2 get
3
OoFfFfLlIiNnEe PpRrZzEeTtWwAaRrZzAaNnIiEe
rownowazenie obciazen ` ` ` ` . .
app message queue data storage 1 register queue worker 2
consume 3 set
software? rabbitmq / activemq gearman kafka app queue worker 3
set
cron data storage database / hdfs dane hadoop map-reduce dane
dane
4
PpLlAaTtFfOoRrMmYy WwAaRrSsTtWwAa
load balancer web server web server app server app server
ancer web server web server app server app server GET
/services/users/latest.xml GET /services/users/:login/photos/latest.xml
...5
DdEePpLlOoYyMmEeNnTt MmOoNnIiTtOoRrIiNnGg AaUuTtOoMmAaTtYyZzAaCcJjAa OoRrAaZz...
UuWwAaGgIi WwAaRrTtEe
None
None
@MmAaRrIiUuSsZzGgIiLl
[email protected]
PpYyTtAaNnIiAa? |||||| SsPpEeAaKkEeRrDdEeCcKk.CcOoMm/Uu/MmAaRrIiUuSsZzGgIiLl