On Github odolbeau / prez-forum-php
Created by Olivier Dolbeau / @odolbeau
How Blablacar is born ?
How Blablacar works ?
Because it's sexy !
Quick & dirty !
Now let's move !
Plain old school PHP
From scratch
Use the same database than the V1
Launch in France
Launch in Spain
Launch in UK
Launch in Italy
million users use website every month
Average rpm during last month
Average response time during last month (in ms)
commits on Git (in the 3 last years)
lines of code...
France (with booking)
Spain
UK
Italy
And still need ! =)
To search trip ? SQL !
Imagine if YOU have to update the lib.trip.php file !
3770 lines
69 functions
926 lines... for 1 function !
if (...) { if () { for () { if (){ }else{ } } if () { for () { if () ; else } } } if(){ } }
Let's do beautiful code !
PSR-2
Code reviews
Launch in Belgium
Launch in Netherlands
Launch in Portugal
Launch in Luxembourg
Launch in Poland
UK
Italy
Spain
Released in 1 week only
Launch in Germany
No more SQL !
No more SQL !
No more SQL !
No more tail on servers !
No more manual installation !
Between 5 and 15 deployments / day
New Relic for application monitoring
S3 for photo
EC2 (logstash, newsletters, ...)
30 slots for dev / preprod env
V2: 8 680
V3: 2 790
V2: 329
V3: 278
V2: 285 588
V3: 199 774
Inside sf2 !
(you're going to hear about it in the next slides)
Very hard to maintain
The front should not access directly to DB
(I really want do to that ! \o/)
Follow me: @odolbeau
You want to work with us ? cv@blablacar.com