Hi,<div><br><div class="gmail_quote">On Fri, Dec 23, 2011 at 12:26 PM, Lx Yu <span dir="ltr"><<a href="mailto:lixinfish@gmail.com">lixinfish@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello, I'm working on a e-commerce site, and the content of it is almost fully dynamic.<br>
<br>
Most user must login to purchase, and every login user in have a collection of personalized items displayed in every page. </blockquote><div><br></div><div>Yes. As someone already pointed out - mostly people use ESI for this. Or Javascript.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And every item's status is in real-time(whether it's in stock, and how many left).<br></blockquote>

<div><br></div><div>That's a rather soft real time requirement. You can probably cache those for at least a second or two or ten. Nobody will know and your database will love it.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


So for now, we dynamically generate every webpage, and use a CDN to delivery all static files(images, css, js).<br>
<br>
Then, can varnish be used in such situation where almost all things is dynamic? </blockquote><div><br></div><div>Yes.</div></div><div><br></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>

Per Buer<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>

<br></div></div><br>
</div>