--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CAHoZ-Ax_-11HS6FgQ2MLghdgxcPsWh4qYD_ZX14xGQMsOPgo2g%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
Hi all,I was thinking how could Varnish be setup in a Cloud Foundry environment.I guess a typical Varnish setup would be something like this:|----> app instance 1 |---> varnish (*) | |------> services|----> app instance 2 |(*) Maybe having a cold varnish near, so if the main one fails, the secondary can take overWhere varnish main role is to:1.- Cache request, so repetitive ones don't need to be process again by the app/services2.- Load balance the requests.In CF, gorouter does the load balancing to the apps, but it does not provide cache features.I can think if the following way to use Varnish in CF:A.- In a buildpack.Downside: If you scale your app to 3, you would end with 3 varnishes. The hitrate would be lower than using just 1
B.- As another App (maybe using a 'executable buildpack' if one exists?)Like: gorouter --> varnish app ---> gorouter --> app instanceDownside:- Requests that are not cached in Varnish, would need to pass gorouter twice (adding a little latency?)
C.- Having your own CF pass all requests to varnish before arriving to gorouterDownside: Some apps may not want to use varnish at all.
The best idea I like so far is B, but Varnish doesn't feel to be an 'app', more like a 'front service' or something like that.Maybe things like 'request rate limiting' would be a similar use case (?)Ive not deeply analysed the situation, but im curious what do you think is the best setup?Maybe there is another alternative im not seen?Thanks!!--
--
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CAAqVxAx5J6O_XKYzERFkkXeVWOw%2B7KFjFMfVgZ73mUSdFn4q9w%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CAHoZ-Ayevh0MnAj1QskyagogyULUsi6DWoyDvyA-q-DxPFTdVA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
Awesome, thanks!
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CAB%3Dt-sW6uO-amdPQhac%3DnzROSyheZmkBCogucXqUiL2YvaL2Cw%40mail.gmail.com.