proxy with cache

47 views
Skip to first unread message

Jarek Poświata

unread,
Feb 12, 2015, 9:32:03 AM2/12/15
to nx...@googlegroups.com
Hello Yaroslav,

I'd like to create an app (based on nxWeb) which acts as a "smart" proxy.
It will hide all the aspects of system (there are multiple servers providing icons, "topics" and reports).
Efficiency improvements would be appreciated: a lot of clients would ask for same data (and some requests are "The Ultimate Question of Life, the Universe, and Everything" type questions).
I cannot modify these servers, so whole logic must be done in nxWeb.

As far as I saw nxWeb keep only "local" files in the cache (are there only stored these from imageMagic?)
The question is: do you see a simple way to cache all responses (in the memory cache)?
I think about moving cache functionality to be controlled by filters (with "keep time" as a value, instead true/false)

Yaroslav

unread,
Feb 12, 2015, 11:33:36 AM2/12/15
to nx...@googlegroups.com
Hi Jarek,

I would not recommend using memory cache in real life projects. I implemented it in nxweb as an experiment which showed that performance gain of it is not really significant, comparing to serving files from local disk. Therefore I did not continue implementing it for all kinds of responses. I personally always turn it off in my deployments.

I suggest using file cache for proxied content. I use it a lot myself.

Implementing proxy logic in nxweb might not be straightforward. But if you describe me some of your scenarios in more detail I can probably give you better advice.

Yaroslav

--
You received this message because you are subscribed to the Google Groups "nxweb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nxweb+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages