Slide 1

Slide 1 text

Still On Symfony What have we learned 1 Baldur Rensch

Slide 2

Slide 2 text

Who is this guy? architecting at Nordstromrack.com | HauteLook contributing on GitHub: @baldurrensch opining on twitter: @brensch 2

Slide 3

Slide 3 text

What is this all about? Our tech stack Monitoring and Logging Testing Multiple Kernels What are we thinking about Current Challenges

Slide 4

Slide 4 text

Last year we had one web property: this year we have a second property running on the same platform: [1,2,3] 4

Slide 5

Slide 5 text

Last year we had one web property: Off-price, Limited Time Sale Events 5 this year we have a second property running on the same platform:

Slide 6

Slide 6 text

Last year we had one web property: Off-price, persistent catalog 6 this year we have a second property running on the same platform:

Slide 7

Slide 7 text

Our Technologies in the browser 7

Slide 8

Slide 8 text

Our Technologies Caching 8 in the browser

Slide 9

Slide 9 text

Our Technologies Caching Application layer 9 in the browser

Slide 10

Slide 10 text

Our Technologies Caching Application layer Data Store 10 in the browser

Slide 11

Slide 11 text

and of course Caching Application layer Data Store 11 in the browser

Slide 12

Slide 12 text

Yes, we are still using Symfony. Yes, we still love it. [4] 12

Slide 13

Slide 13 text

What have we added since? 13

Slide 14

Slide 14 text

Search 14

Slide 15

Slide 15 text

Text 15

Slide 16

Slide 16 text

Text Search here

Slide 17

Slide 17 text

Text or by category

Slide 18

Slide 18 text

Text faceting

Slide 19

Slide 19 text

We are pushing at least 10M updates per day 19 We do near-real-time inventory updates

Slide 20

Slide 20 text

Monitoring & Logging 20 [19]

Slide 21

Slide 21 text

Sentry [5,6] 21

Slide 22

Slide 22 text

StatsD & Grafana 22 Response codes Query times Response types [14, 15, 16]

Slide 23

Slide 23 text

New Relic 23

Slide 24

Slide 24 text

What’s on our Dashboard? 24 [13]

Slide 25

Slide 25 text

Testing 25 [8]

Slide 26

Slide 26 text

How we test PHPUnit Behat Solr Javascript PhantomJS 26

Slide 27

Slide 27 text

AliceBundle 27 [11,12]

Slide 28

Slide 28 text

TravisCI This is what our build pipeline looks like 28

Slide 29

Slide 29 text

TravisCI Install Solr, PHP, extensions and nginx with PHP- FPM 29

Slide 30

Slide 30 text

TravisCI Install Database schemata, and fixture data 30

Slide 31

Slide 31 text

TravisCI Start PhantomJS 31

Slide 32

Slide 32 text

TravisCI All kinds of linters and fixers 32

Slide 33

Slide 33 text

Multiple Kernels - Why? 33 [10] HauteLook Nordstrom Rack Admin

Slide 34

Slide 34 text

Layout src/ hautelook/ common/ rack/ features/ there is also vendors/ 34

Slide 35

Slide 35 text

Layout src/ hautelook/ common/ rack/ features/ AppKernel Resources/ config/ console HauteLook 35

Slide 36

Slide 36 text

Layout src/ common/ rack/ features/ CommonApp Kernel config/ Shared configuration and AppKernel 36 hautelook/

Slide 37

Slide 37 text

Layout src/ common/ rack/ features/ Functional tests hautelook/ rack/ admin/ 37 hautelook/

Slide 38

Slide 38 text

Layout src/ common/ rack/ features/ AppKernel Resources/ config/ console Nordstrom Rack 38 hautelook/

Slide 39

Slide 39 text

Layout src/ common/ rack/ features/ All the bundles 39 hautelook/

Slide 40

Slide 40 text

Configuration 40 hautelook/ config/ all/ prod/ dev/ test/ rack/ common/ overwrite Always one file per bundle, named after the config!

Slide 41

Slide 41 text

Warning! Buzzword Bingo 41 What’s next?

Slide 42

Slide 42 text

Service Oriented Architecture 42 [17]

Slide 43

Slide 43 text

Containers (Docker) Docker is awesome for SOA Tooling very premature Some problems on Mac with shared directories 43

Slide 44

Slide 44 text

Service Discovery (Consul) A lot of potential in the process of writing a library 44 [9]

Slide 45

Slide 45 text

Orchestration [7] 45

Slide 46

Slide 46 text

Current Challenges 46 [18]

Slide 47

Slide 47 text

When developing with PHP at scale, it seems often there are no best practices 47

Slide 48

Slide 48 text

When developing with PHP at scale, it seems often there are no best practices 48 Example:

Slide 49

Slide 49 text

When developing with PHP at scale, it seems often there are no best practices 49 Example: Example: Dealing with Master/Slave connections in Doctrine. Schema builder does not like it.

Slide 50

Slide 50 text

When developing with PHP at scale, it seems often there are no best practices 50 Example: Example: Dealing with Master/Slave connections in Doctrine. Schema builder does not like it. Example: It’s slow and hard to work with SASS using Assetic

Slide 51

Slide 51 text

Questions? Please give me feedback at: https://joind.in/12192 Oh, and we are hiring. Come talk to me if you are interested in working with us! 51

Slide 52

Slide 52 text

Sources [1] https://play.google.com/store/apps/details?id=com.hautelook.mcom&hl=en [2] https://itunes.apple.com/us/app/hautelook/id390783984?mt=8 [3] https://itunes.apple.com/us/app/nordstrom-rack/id853330019?ls=1&mt=8 [4] http://s352.photobucket.com/user/Cutiexlex728/media/PS-I-still-love-you-by-orangefruits.jpg.html [5] https://getsentry.com/signup/r_D3kw/ [6] https://github.com/hautelook/SentryBundle [7] http://lookatmyhappyrainbow.blogspot.com/2011/01/conductor.html [8] https://secure.flickr.com/photos/st3f4n/3845558588/ [9] https://github.com/baldurrensch/consul-php [10] https://en.wikipedia.org/wiki/Corn_kernel [11] https://github.com/nelmio/alice [12] https://github.com/hautelook/AliceBundle [13] http://dashing.io/ [14] https://github.com/etsy/statsd/ [15] https://www.hostedgraphite.com/ [16] http://grafana.org/ [17] https://en.wikipedia.org/wiki/Lego [18] http://pixabay.com/en/people-cover-cry-desperate-314481/ [19] https://commons.wikimedia.org/wiki/ File:Monitoring_a_simulated_test_at_Central_Control_Facility_at_Eglin_Air_Force_Base_(080416-F-5297K-101).jpg 52