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
Un site web mobile en Django
Search
Timothée Peignier
April 15, 2012
Programming
1
410
Un site web mobile en Django
Timothée Peignier
April 15, 2012
Tweet
Share
More Decks by Timothée Peignier
See All by Timothée Peignier
Dr. Rubocop
tim
0
140
Et votre backoffice ?
tim
0
250
Mesurer (par)tout, tout le temps
tim
2
550
Mobile Web Performance
tim
1
300
Other Decks in Programming
See All in Programming
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
410
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
640
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
260
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
370
ゆるい個人開発のススメ
kuroppe1819
10
990
Tailwind CSSを本気でカスタマイズする方法
fsubal
13
5.2k
Java 22 Overview
kishida
1
180
Anthropic Cookbook のおすすめレシピ
schroneko
7
880
Site Reliability Engineering for GMO
pyama86
7
1k
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
300
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
470
Featured
See All Featured
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.5k
Docker and Python
trallard
34
2.7k
Infographics Made Easy
chrislema
238
18k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
What's new in Ruby 2.0
geeforr
337
31k
The Pragmatic Product Professional
lauravandoore
25
5.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
21
1.6k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
221
21k
YesSQL, Process and Tooling at Scale
rocio
164
13k
Bash Introduction
62gerente
604
210k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Transcript
Un site web mobile en Django m.20minutes.fr
contraintes léger, rapide et versatile
léger RAM 256-1024 Mb CPU 600Mhz-1.2Ghz
léger Servir une version compressé Servir le strict nécessaire
django-pipeline concatenation + compression (js, css, html) + template js
https://github.com/cyberdelia/django-pipeline léger
rapide 100-500ms de latence 200kb/s-800kb/s en téléchargement
Limiter le nombre de requêtes Tricher sur les interactions rapide
rapide Donner une impression de rapidité
versatile Une seule implétementation pour tous les terminaux
versatile Servir la version la plus légère par défaut Pouvoir
servir pour n’importe quelle taille (images, vidéos, etc.)
versatile Tester, tester, tester.
le récap’ léger RAM/IO rapide Edge / 3G versatile Screen
/ OS
tenue en charge mesurer et réagir
Pages vues 6 645 000 Visites 3 125 000 en
chiffres #
Varnish Apache + modWSGI architecture MySQL & Redis
mixins class VideoListView(CacheControlMi xin, PaginationMixin, ListView): paginate_by = 10
cache_timeout = 60 https://gist.github.com/1231560
jitter class VideoDetailView(JitterCacheC ontrolMixin, DetailView): cache_range = [40, 80]
https://gist.github.com/1231560
mesurer applicatifs infrastructure logs notifications
mesurer applicatifs + infrastructure statsd collectd metrology https://github.com/cyberdelia/metrology
mesurer logs
mesurer notifications à toute l’équipe
réagir Métriques importantes à portée Date et contenu du
dernier déploiement
réagir Visualiser les problèmes et leur résolutions
réagir Avoir un accès direct aux erreurs
prévenir Vérifier et tester automatiquement hooks + tests +
ci + rollback
prévenir git hooks (pep8 + pyflakes) https://gist.github.com/2343286 self.assertMaxQueries(5) https://gist.github.com/2320495
le récap’ tout mesurer réagir en fonction prévenir en amont
Merci beaucoup (ne soyez pas timide, posez une question et
passez me dire bonjour ensuite) @cyberdelia