Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Twelve Apps
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Lindolfo Rodrigues
March 30, 2013
Programming
77
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Twelve Apps
YAPC::Brasil 2012
Lindolfo Rodrigues
March 30, 2013
Transcript
27 slides
Saturday, March 30, 13
Fazendo uma App usando a metodologia dos ’12 elementos’ Saturday,
March 30, 13
Backgroung • IaaS e PaaS • O mundo nas nuvens
• Idealizados por usuários de PaaS Saturday, March 30, 13
Codebase Saturday, March 30, 13
Saturday, March 30, 13
Saturday, March 30, 13
Dependencies • Declare suas dependências no Makefile.PL • bin/bootstrap.sh •
http://bit.ly/thesetup_vimeo Saturday, March 30, 13
Saturday, March 30, 13
Dependencies • local::lib • cartoon • Use versões de modulos
que você testou Saturday, March 30, 13
Config • Guarde suas configs em variáveis de ambiente •
$ENV[‘FOO’] Saturday, March 30, 13
Saturday, March 30, 13
Backing Services Saturday, March 30, 13
Build, Release and run Saturday, March 30, 13
Processes • Trate cada parte de sua aplicação como uma
aplicação unica que não compartilha estado • Evite “Sticky Session” Saturday, March 30, 13
Port Binding • Aplicações auto-contidas • Consegue rodar em userspace
• Coloque o starman no seu Makefile.PL Saturday, March 30, 13
Concurrency Saturday, March 30, 13
Disposability • Sua App precisa ter um start/restart/stop script •
Inicia sozinha e bem rápido • monit Saturday, March 30, 13
Saturday, March 30, 13
Dev/Prod parity • Devops • deploy continuo Saturday, March 30,
13
Logs • event stream • pipeline Saturday, March 30, 13
Saturday, March 30, 13
logstash Saturday, March 30, 13
Saturday, March 30, 13
Saturday, March 30, 13
Logs • Metricas para eventos • https://github.com/heroku/pulse • logrouters •
http://github.com/heroku/logplex • http://github.com/heroku/fluentd Saturday, March 30, 13
Admin Process • Processos em administrativos deve usar a mesma
base de codigo da App • bin/cleanoldstuff.pl • Aproveita o seu DB::Schema Saturday, March 30, 13
Conclusão • Nem tudo aqui pode se aplicar para você.
• ...mas algumas coisas já são mais que ‘Boas Praticas’ e já caem no “Você não faz assim?” Saturday, March 30, 13
More Decks by Lindolfo Rodrigues
See All by Lindolfo Rodrigues
Optimize for Happiness
lorn
1
120
Big data: Muito além do MapReduce
lorn
1
67
Perl para Sysadmins e DBAs
lorn
1
200
A busca pelo deploy continuo
lorn
1
94
Palestra de testes
lorn
1
80
Other Decks in Programming
See All in Programming
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
180
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
140
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
190
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
Crash Auto Pipelines
veronikapj
1
430
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
220
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
930
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
660
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
380
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
2
490
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
190
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
200
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
The Language of Interfaces
destraynor
162
27k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Building Applications with DynamoDB
mza
96
7.3k
Faster Mobile Websites
deanohume
310
32k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
1k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k