67

Web performances : Is It not the right time to (re)consider CMS ?

Embed Size (px)

Citation preview

Page 1: Web performances : Is It not the right time to (re)consider CMS ?
Page 2: Web performances : Is It not the right time to (re)consider CMS ?

Web Performances

Gilles GuirandKaliop CTO

eZ Community Board member

Is It not the right time to (re)consider CMS ?

Page 3: Web performances : Is It not the right time to (re)consider CMS ?

Who am i ?

Page 4: Web performances : Is It not the right time to (re)consider CMS ?
Page 5: Web performances : Is It not the right time to (re)consider CMS ?

Web Performancesa bit of history ?

Page 6: Web performances : Is It not the right time to (re)consider CMS ?

FIRST GENERATION

eZ3 eZ4(own cache)

endUser

Dynamic cache invalidationAuthenticated cache

Fragmented cacheHigh traffic capability

YESALMOSTYES (blocks)NOOOOO

2003 ~ 2010 : Industry needs rapid website builders

Cache-blocksviewcachesPHP caches

Page 7: Web performances : Is It not the right time to (re)consider CMS ?

SECOND GENERATION

eZ4(own cache)

endUser

2008 ~ 2012 : Industry faces the high-traffic (rescue strategy)

Dynamic cache invalidationAuthenticated cache

Fragmented cacheHigh traffic capability

NO ( Time To Live )NONO (Full page - static)YES

Static cacheCache-blocks

viewcachesPHP caches

Page 8: Web performances : Is It not the right time to (re)consider CMS ?

THIRD GENERATION

eZ4+ext.eZ5

(HTTP cache)

endUser

AFTER ~ 2012 : Industry needs hight trafic + auth. users (UX time)

Dynamic cache invalidationAuthenticated cache

Fragmented cacheHigh traffic capability

YES YESYESYES

eZ Accelerator not OSS / no AutheZ5 cache a bit late

Page 9: Web performances : Is It not the right time to (re)consider CMS ?

Industry tried alternatives

Page 10: Web performances : Is It not the right time to (re)consider CMS ?

THIRD GENERATION

endUser

after ~ 2012 : Industry tried alternatives (pure PHP FrameWorks)

Dynamic cache invalidationAuthenticated cache

Fragmented cacheHigh traffic capability

YES YESYESYES

Page 11: Web performances : Is It not the right time to (re)consider CMS ?

THIRD GENERATION after ~ 2012 : Industry tried to combine (best of all worlds)

endUser

eZadmin

UI

Front-endBack-office

Dynamic cache invalidationAuthenticated cache

Fragmented cacheHigh traffic capability

YES YESYESYES

Page 12: Web performances : Is It not the right time to (re)consider CMS ?

THIRD GENERATION after ~ 2012 : Industry tried to combine (new APIs design patterns)

eZadmin

UI

Dynamic cache invalidationAuthenticated cache

Fragmented cacheHigh traffic capability

YES YESYESYES

RESTAPI

endUser

Page 13: Web performances : Is It not the right time to (re)consider CMS ?

THIRD GENERATION after ~ 2012 : Industry tried to combine (best of all worlds)

eZadmin

UI

Front-endBack-office

Dynamic cache invalidationAuthenticated cache

Fragmented cacheHigh traffic capability

YES YESYESYES

endUser

Page 14: Web performances : Is It not the right time to (re)consider CMS ?

So… was better ?

Page 15: Web performances : Is It not the right time to (re)consider CMS ?
Page 16: Web performances : Is It not the right time to (re)consider CMS ?

Complexity moved

Page 17: Web performances : Is It not the right time to (re)consider CMS ?

New playground (minimum)

HTTPcache

Page 18: Web performances : Is It not the right time to (re)consider CMS ?

New playground for large projects ...

HTTPcache

Page 19: Web performances : Is It not the right time to (re)consider CMS ?

Static ESI HTTP cacheDynamic purge

Authenticated cache

HEADER

FOOTER

breadcrumb

User profilingContent listContent list

ANONYMOUS

ANONYMOUS

ANONYMOUS

USER GROUP USER

ESI

eZ5 cutting edge

ESI

ESI

ESI

95% HITS

eZ

Page 20: Web performances : Is It not the right time to (re)consider CMS ?

devOps quiz

NFS

Is there a performance

killer ?

Page 21: Web performances : Is It not the right time to (re)consider CMS ?

devOps quiz

NFS

YESNetwork

latency to memcached

Page 22: Web performances : Is It not the right time to (re)consider CMS ?

devOps quiz

Is there a very

commun perf. issue ?ESI fragments

Page 23: Web performances : Is It not the right time to (re)consider CMS ?

devOps quiz

YESsession lock enabled by default on

PHPESI fragments

Page 24: Web performances : Is It not the right time to (re)consider CMS ?

devOps quiz

Things better with eZ5 ?

Page 25: Web performances : Is It not the right time to (re)consider CMS ?

devOps quiz

NOStill generate 80% select as

temporary tables

/tmp > tmpfs (2g)

Legacy database

Page 26: Web performances : Is It not the right time to (re)consider CMS ?

How do you know ?

Page 27: Web performances : Is It not the right time to (re)consider CMS ?

Web Performancesmodern investigation

Page 28: Web performances : Is It not the right time to (re)consider CMS ?

Solr exemple

HAProxy

Replica

SLAVEMASTER

Other Search

Page 29: Web performances : Is It not the right time to (re)consider CMS ?

Solr exemple

Page 30: Web performances : Is It not the right time to (re)consider CMS ?

Solr exemple

Page 31: Web performances : Is It not the right time to (re)consider CMS ?

eZ

modern investigation : Varnish ?

How do i know ifworks as expected ?

Page 32: Web performances : Is It not the right time to (re)consider CMS ?

HEADER

FOOTER

breadcrumb

User profilingContent listContent list

ANONYMOUS

ANONYMOUS

ANONYMOUS

USER GROUP USER

ESI

eZ5 cutting edge

ESI

ESI

ESI

95% HITS

???

eZ

Maybe one of the _fragment ESI is not cached ? but which one ?

Page 33: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : do metrics

Stop command line grep / awk …Install a real log manager

Page 34: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : do metrics

Page 35: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : do metrics & be lazy

Huge !

Page 36: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : learn from metrics

Page 37: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : do applicative metrics

??

Page 38: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : do metrics, devops & resolve Dev/IT wars ...

??

Page 39: Web performances : Is It not the right time to (re)consider CMS ?

Learn navigation timing API

Page 40: Web performances : Is It not the right time to (re)consider CMS ?

You are here

Do RUM metrics & cry ...

Page 41: Web performances : Is It not the right time to (re)consider CMS ?

Do RUM metrics & cry ...

Page 42: Web performances : Is It not the right time to (re)consider CMS ?

Do RUM metrics & cry ...

Page 43: Web performances : Is It not the right time to (re)consider CMS ?

Do RUM metrics & cry ...

Page 44: Web performances : Is It not the right time to (re)consider CMS ?

Do RUM metrics & cry ...

Page 45: Web performances : Is It not the right time to (re)consider CMS ?

~20 sec of nothing !?

Do RUM metrics & cry ...

Page 46: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : test & simulate everything

Page 47: Web performances : Is It not the right time to (re)consider CMS ?

Do A/B testing

NFS

A B B

Page 48: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : code profiling

Page 49: Web performances : Is It not the right time to (re)consider CMS ?
Page 50: Web performances : Is It not the right time to (re)consider CMS ?

modern investigation : Compare before / after deployment

Page 51: Web performances : Is It not the right time to (re)consider CMS ?

Let me tel a story ...

Page 52: Web performances : Is It not the right time to (re)consider CMS ?

Backend

Static ESI HTTP cacheDynamic purge

Authenticated cache

HEADER

FOOTER

breadcrumb

User profilingContent listContent list

ANONYMOUS

ANONYMOUS

ANONYMOUS

USER GROUP USER

ESI

A perfect project ...

ESI

ESI

ESI

95% HITS

Page 53: Web performances : Is It not the right time to (re)consider CMS ?

Backend

95% HITS

95% H

ITS

95% HITS95% H

ITS

A perfect project ...

95% HITS

Page 54: Web performances : Is It not the right time to (re)consider CMS ?

A perfect project ...

Page 55: Web performances : Is It not the right time to (re)consider CMS ?

… and ?

Page 56: Web performances : Is It not the right time to (re)consider CMS ?
Page 57: Web performances : Is It not the right time to (re)consider CMS ?

Backend

95% HITS

95% H

ITS

95% HITS95% H

ITS

Chine

95% HITS

AUTH

Page 58: Web performances : Is It not the right time to (re)consider CMS ?
Page 59: Web performances : Is It not the right time to (re)consider CMS ?
Page 60: Web performances : Is It not the right time to (re)consider CMS ?

Newsletter

SomewhereHTTP 302

CN/IrlandHTTP 302

CN/IrlandHTTPS 302

SSL

CNCN

Need SSL SSLSmooth

login

?

Tracking

You are here

Page 61: Web performances : Is It not the right time to (re)consider CMS ?

Newsletter

SomewhereHTTP 302

CN/IrlandHTTP 302

CN/IrlandHTTPS 302

SSL

CNCN

Need SSL SSLSmooth

login

?

Tracking

RUM / METRICS ?No.. Not compatible IE8 & does not follow HTTP 302 RUM

Page 62: Web performances : Is It not the right time to (re)consider CMS ?

Newsletter

SomewhereHTTP 302

CN/IrlandHTTP 302

CN/IrlandHTTPS 302

SSL

CNCN

Need SSL SSLSmooth

login

?

Tracking

NEWSLETTER SUPPLIERCHINESE SUPPLIERAWS

FRONT-END SUPPLIERANALYTICS SUPPLIER

untraceable ...

Page 63: Web performances : Is It not the right time to (re)consider CMS ?

Time to experiment ...

Page 64: Web performances : Is It not the right time to (re)consider CMS ?

Conclusion ?

Page 65: Web performances : Is It not the right time to (re)consider CMS ?

Time to become agile ...

PerformancedevOps

team

ProductownerAWS

expert

front-endteam

Market.

Metrics

Business

UX Analytics

JS / CSSperfs

?

Page 66: Web performances : Is It not the right time to (re)consider CMS ?

Web Performances

Gilles GuirandKaliop CTO

eZ Community Board member

Questions to @gandbox ?

Page 67: Web performances : Is It not the right time to (re)consider CMS ?