Slide 1

Slide 1 text

Symfony2 killed me! Olivier Dolbeau sfPot Nantes #1

Slide 2

Slide 2 text

@odolbeau Web Architect Olivier Dolbeau

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

From monolithic to microservices.

Slide 7

Slide 7 text

Front Admin API Workers Monolithic application

Slide 8

Slide 8 text

“It does everything, even coffee” Every developer ever

Slide 9

Slide 9 text

So big!

Slide 10

Slide 10 text

406 187 NLOC There are “only” 268 041 NLOC for symfony/symfony

Slide 11

Slide 11 text

29 582 Commits There are “only” 15 506 commits for symfony/symfony There are “only” 10 228 commits for joyent/node There are “only” 9 266 commits for twbs/bootstrap There are 44 809 commits for rails/rails (but it’s ruby… #troll)

Slide 12

Slide 12 text

~ 75 contributors There are 1 193 contributors for symfony/symfony

Slide 13

Slide 13 text

3 536 tests There are 17 593 tests for symfony/symfony

Slide 14

Slide 14 text

20 minutes to run them all 28 minutes for symfony/symfony… #fake

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Cons ● Conflicts ● Time consuming ● Maintenance ● Learning curve ● Side effects

Slide 18

Slide 18 text

“With minor change comes major bugs” Myself based on its personal experience.

Slide 19

Slide 19 text

Objectifs Our technical objectives at Blablacar

Slide 20

Slide 20 text

Exponential growth 20 million members in April 2015

Slide 21

Slide 21 text

countries NEW IN 2015 India Mexico Hungary Romania Serbia Croatia 19

Slide 22

Slide 22 text

BlaBlaCar is deploying multiple datacenters.

Slide 23

Slide 23 text

We need to localize our data.

Slide 24

Slide 24 text

MICRO-SERVICES

Slide 25

Slide 25 text

Micro-services Users, ratings, notifications, moderation...

Slide 26

Slide 26 text

Overview

Slide 27

Slide 27 text

Overview

Slide 28

Slide 28 text

NO API!

Slide 29

Slide 29 text

Enter the gateway...

Slide 30

Slide 30 text

● It’s code. ● It use DDD. ● Everyone love it! ● It’s very well organized. ● There’s a lot of (very) strict rules. ● It separate business logic & data access. ● It’s a vendor! It’s easy to use everywhere!

Slide 31

Slide 31 text

Global organisation

Slide 32

Slide 32 text

How to: Get a rating

Slide 33

Slide 33 text

Business

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

Request

Slide 36

Slide 36 text

Usage

Slide 37

Slide 37 text

Usage

Slide 38

Slide 38 text

Usage

Slide 39

Slide 39 text

Usage

Slide 40

Slide 40 text

Usage

Slide 41

Slide 41 text

Response

Slide 42

Slide 42 text

Handler

Slide 43

Slide 43 text

Global organisation

Slide 44

Slide 44 text

Data

Slide 45

Slide 45 text

● Cache ready ● backend agnostic

Slide 46

Slide 46 text

● Cache ready ● backend agnostic Encapsulation FTW!

Slide 47

Slide 47 text

D BALStorage

Slide 48

Slide 48 text

RedisStorage

Slide 49

Slide 49 text

Gateway ● Flexible ● Usable everywhere ● Very strict ● Easy to test ● Deployed when needed ● Used for all new projects

Slide 50

Slide 50 text

V3 Previous ecosystem

Slide 51

Slide 51 text

Gateway V3 W W W W W C W C C C W Current ecosystem W ● 90 workers ● 40 commands

Slide 52

Slide 52 text

V3 W W W W W C W C C C W Future ecosystem? W Gateway Gateway Gateway

Slide 53

Slide 53 text

V3 W W W W W C W C C C W Future ecosystem? W B B B B B B D D D

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content