Anwendungsintegration mit Edge Side Includes

Post on 15-Jul-2015

505 views 0 download

Transcript of Anwendungsintegration mit Edge Side Includes

E IEdge Side Includes

Anwendungsintegration mit

von Per Bernhardt

Was macht man mit ESI?

<h1>Inhalte zusammenbauen!</h1> <esi:include src="http://seite.de/inhalt.html" />

Und wer hilft einem dabei?

Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache

Wie läuft das genau ab?

<esi:include />

<esi:include />

<esi:include />

<esi:include />

<esi:include />

Und das ist jetzt besser?

Performance

Performance

Getrennte Umgebungen

Performance

Getrennte Umgebungen

Komplexität

Performance

Getrennte Umgebungen

Komplexität

Getrennte Umgebungen

{{ render_esi(url('news_partial')) }}

{{ render_esi(url('news_partial')) }}

news_partial: path: /news.html host: alte.anwendung.de

{{ render_esi(url('news_partial')) }}

news_partial: path: /news.html host: alte.anwendung.de

symfony.com/doc/

<div class="partial"> <h2>Achtung! Ich bin ein Partial!</h2> <p>Man kennt mich auch als Snippet.</p> </div>

Redis? Memcached?

Redis? Memcached?

Signed Cookies?

www.perprogramming.deinfo@perprogramming.de

github.com/perprogramming