Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

Can varnish be used on a e-commerce website where almost all pages are dynamic?

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


lixinfish at gmail

Dec 23, 2011, 3:26 AM

Post #1 of 4 (378 views)
Permalink
Can varnish be used on a e-commerce website where almost all pages are dynamic?

Hello, I'm working on a e-commerce site, and the content of it is almost fully dynamic.

Most user must login to purchase, and every login user in have a collection of personalized items displayed in every page. And every item's status is in real-time(whether it's in stock, and how many left).

So for now, we dynamically generate every webpage, and use a CDN to delivery all static files(images, css, js).


Then, can varnish be used in such situation where almost all things is dynamic? As I see Facebook is also using varnish, and I'm wondering how fb did it.


--
Lx Yu, Developer, ELEME Inc.
Email: lixinfish [at] gmail


_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


me at ibotty

Dec 26, 2011, 10:16 AM

Post #2 of 4 (356 views)
Permalink
Re: Can varnish be used on a e-commerce website where almost all pages are dynamic? [In reply to]

hi,

as nobody more experienced than me bothered to answer up to now, i might
just tell you some very basic things.

most dynamic pages only have a small part of it, that really is dynamic.
sometimes, that part can be loaded with ajax, so the first page to get
is cached. if this does not work, edge side includes might provide an
answer. that way you can assemble the dynamic pages on the server. check
the wiki for details.

good luck,
tobi

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


perbu at varnish-software

Dec 27, 2011, 1:40 AM

Post #3 of 4 (345 views)
Permalink
Re: Can varnish be used on a e-commerce website where almost all pages are dynamic? [In reply to]

Hi,

On Fri, Dec 23, 2011 at 12:26 PM, Lx Yu <lixinfish [at] gmail> wrote:

> Hello, I'm working on a e-commerce site, and the content of it is almost
> fully dynamic.
>
> Most user must login to purchase, and every login user in have a
> collection of personalized items displayed in every page.


Yes. As someone already pointed out - mostly people use ESI for this. Or
Javascript.

And every item's status is in real-time(whether it's in stock, and how many
> left).
>

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.

So for now, we dynamically generate every webpage, and use a CDN to
> delivery all static files(images, css, js).
>
> Then, can varnish be used in such situation where almost all things is
> dynamic?


Yes.

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


lixinfish at gmail

Dec 27, 2011, 2:23 AM

Post #4 of 4 (346 views)
Permalink
Re: Can varnish be used on a e-commerce website where almost all pages are dynamic? [In reply to]

Thank you very much!

I'll go try for it. :)

--
Lx Yu, Developer, ELEME Inc.
Email: lixinfish [at] gmail

On Dec 27, 2011, at 5:40 PM, Per Buer wrote:

> Hi,
>
> On Fri, Dec 23, 2011 at 12:26 PM, Lx Yu <lixinfish [at] gmail> wrote:
> Hello, I'm working on a e-commerce site, and the content of it is almost fully dynamic.
>
> Most user must login to purchase, and every login user in have a collection of personalized items displayed in every page.
>
> Yes. As someone already pointed out - mostly people use ESI for this. Or Javascript.
>
> And every item's status is in real-time(whether it's in stock, and how many left).
>
> 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.
>
> So for now, we dynamically generate every webpage, and use a CDN to delivery all static files(images, css, js).
>
> Then, can varnish be used in such situation where almost all things is dynamic?
>
> Yes.
>
> --
>
> Per Buer
> Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
> Varnish makes websites fly!
> Whitepapers | Video | Twitter
>
>


_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.