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
From 1 to 20 million users the technical story ...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Matthieu Moquet
June 06, 2015
Programming
1.9k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
From 1 to 20 million users the technical story of BlaBlaCar
IPC Spring Berlin 2015
Matthieu Moquet
June 06, 2015
More Decks by Matthieu Moquet
See All by Matthieu Moquet
Migrating to containers
mattketmo
0
430
CQRS & Event Sourcing — LavaJUG
mattketmo
1
600
Running container at BlaBlaCar — While 42 (San-Francisco)
mattketmo
0
410
ForumPHP 2015
mattketmo
0
1.1k
CQRS & Event Sourcing
mattketmo
7
1.5k
Take care of your logs with ELK
mattketmo
8
840
Event Sourcing
mattketmo
9
4.2k
Localization should not be a pain (anymore)
mattketmo
1
850
Understanding git
mattketmo
5
770
Other Decks in Programming
See All in Programming
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
510
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
360
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.2k
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
870
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
120
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
280
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
710
Event is what happens
moro
2
3.4k
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
190
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
490
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
350
オーケストレーション記述言語 Katari
yukikurage
0
220
Featured
See All Featured
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
BBQ
matthewcrist
90
10k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
510
Chasing Engaging Ingredients in Design
codingconduct
0
390
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
The Limits of Empathy - UXLibs8
cassininazir
2
760
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
290
[SF Ruby Conf 2025] Rails X
palkan
3
1.5k
The untapped power of vector embeddings
frankvandijk
2
2k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
830
Transcript
the technical story of From 1 to 20 million users
Matthieu Moquet @MattKetmo web engineer at
Leader ride-sharing service Our goal is to become the 1st
travel platform
Why this talk? ❖ History of the BlaBlaCar platform ❖
Overview our main technical choices ❖ Understand of our culture & methodologies
v1.0 2005–2006
The prototype
v2.0 (2008) – Plain PHP
2008 2010 2011 2012 v2.0
None
None
Homemade framework + No code convention + Messy = Not
maintainable in the long term
$ wc -‐l lib.trip.php Longest method: 1000+ lines 3678
None
No tests
Going further will be a pain Hiring will be hard
We need to change things
Refactor all the code
Symfony 2.0
Because community matters
Attract new talented & motivated people
Separation of Concerns Dependencies Injection Integration & Unit tests etc.
Embrace best practices
Update product design
None
Agility is our best strength
— Eberhardt Von Kuenheim « The big will not always
eat the small, but the fast ones will overtake the slow ones »
10+ deployments per day
DEVOPS… before it was cool « if you break it
you fix it »
Automation Automatize as much as possible to reduce the time
between dev and prod
Simple development workflow Master Branch
git push origin feat-awesome Deploy on staging environment is as
simple as
Staging env. for QA & product owners https://feat-awesome.staging.blablacar.com
Continuous Integration https://github.com/alexandresalome/behat-launcher
None
Localization Update translations on the fly
Frontend server Databases Backoffice Sync translations Update translations
Download last translations when app boot Update translations Mobile app
CDN Backoffice
openl10n.io
Progressive Rollout ❖ Open new countries with v3 one by
one ❖ It took about 2.5 years to run v3 everywhere ❖ Today we can deploy new features for a set of users (by attributes or random)
Monitoring
ELK
Monitoring
Departure to new horizons…
Opportunity to change backend But we still keep the same
primary database
Database Updates Sync replication & No Master SPOF
Better archiving strategy
Photo Storage Don’t store static BLOB into MySQL. Use an
elastic filesystem storage. MySQL AWS S3
elasticsearch ❖ Horizontally scalable ❖ Geo type index ❖ Aggregations
Varnish Fast reverse proxy cache 30% HIT/MISS Firemode to handle
high traffic (TTL) Be careful with authenticated user blocks (Javascript is your friend)
SPDY (HTTP 2.0) Fast API calls for (compliant) mobile clients
ngx_http_spdy_module
Asynchronous jobs Command Command Handlers Commands Queueing Ack
workers/ mail sms push
image-‐resize indexer cache-‐invalidation elasticsearch-‐indexation trip-‐publication ... github.com/swarrot
Horizontal scalability
Event dispatcher Every business events is dispatched into RabbitMQ Easy
to watch the events (in real-time or batchs)
Data Warehouse Log every business event into Hadoop user.register user.edit_bio
user.left_rating user.post_trip ...
user.register user.edit_bio user.left_rating user.post_trip ... user.register user.post_trip ... Real-Time dashboard
Log every business event into Elasticsearch
Such performances. Many users. Wow.
How to serve the product worldwide?
Datacenter centric One datastore to rule them all? It ain’t
gonna work. ?? ??
Monolithics Micro-Services
Today we are mainly Monolithics But we would love using
more Micro-Services Easier to deploy Development workflow Legacy database Smaller teams Faster deployments Easier to scale out
Gateway Principles (Clean Architecture) Decouple models (not db) Isolate business
& data accesses (in the Monolytics to better decouple in micro services) Restrictive rules Enter the
Gateway RegisterUser PublishTrip PostMessage UpdateBio PostRating Users Messages Trips Business
Data
But this is a long term project…
caching In the short term we invested on
Points of presence & Varnish
Mobile First
But how to cache the API? GET /api/trips?from=Paris&to=Berlin Authorization:
Bearer 7c82e855b0415f27bd92d HTTP/1.1 200 OK { "trips": [...] }
{ Reverse proxy is useless if only the app knows
the authorizations Reverse Proxy Client User Scopes Access Token
Let the reverse proxy check authorization directly Reverse Proxy But
here is a latency problem
Use of stateless token Reverse Proxy So we don’t need
a database anymore
Json Web Token
What mobile apps send GET /api/trips?from=Paris&to=Berlin Authorization: Bearer eyJhbGciOiJIUzI1NiI...
What backend servers receive GET /api/trips?from=Paris&to=Berlin X-‐Auth-‐User: 1337
X-‐Auth-‐Client: android X-‐Auth-‐Scope: user_info,messages
App gets an Access Token from the origin Reverse Proxy
App submit request with Access Token Reverse Proxy transform Access Token header into custom X-Auth headers
Cachable response HTTP/1.1 200 OK Content-‐Type application/json Vary:
X-‐Auth-‐Scope ! { "trips": [ ... ] }
Long term solution to deliver data close to the client
❖ Manage massive amounts of data ❖ High Availability ❖
Multi Datacenter replication
‣ Know the read requests before creating your data models
‣ Create as many tables (KeySpaces) than you have views ‣ Denormalize the data (no join allowed)
CQRS & Event Sourcing ❖ Separate Read & Write ❖
Eventual consistency ❖ But hard to do with legacy software / database See talk PHPTour 2015 at moquet.net
C* C* C* Primary Data C* Read Data User post
message Endpoint
Messaging (micro) service Expose an HTTP API
2008 2012 2013 2014 2015 2016 2 6 15 30+
… ?
blablatech.com We’re hiring Follow us
Thank You Slides available at moquet.net/talks/ipc-2015-blablacar Leave feedbacks at @MattKetmo