I have three Nitrogen nodes accessing a common data store behind a single Varnish web cache node. Some pages have some slow loading parts so I'm looking to have the main parts of the page load, then dynamically update the slower loading bits once they're ready. It looks like running an asynchronous update in polling mode won't work because a request to the server could be redirected to any of the 3 Nitrogen nodes.Maybe switching to comet mode before sending down the initial page content would work because it'd keep an http connection open rather than polling. Would this work? Maybe I need to config Varnish to to ensure requests from the same client end up and the same backend some how? Anyone have experience doing this sort of thing with Nitrogen?
--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nitrogenweb/-/OX5PQZOhM2MJ.
To post to this group, send email to nitro...@googlegroups.com.
To unsubscribe from this group, send email to nitrogenweb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nitrogenweb?hl=en.
So basically Varnish will break Nitrogen's async callbacks if there are multiple backends, right?What Nitrogen element or action would I use for the long poll (or would I need some custom JavaScript). Looking at the docs things like wf:continue/2 look like they're not going to work in this situation.
--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nitrogenweb/-/rW69TZrQAFUJ.