Re: Unicorn and network access

Le 18/05/2010 18:13, Jean-Guilhem Rouel a écrit :
> Le 18/05/2010 17:41, Dan Connolly a écrit :
>> The Unicorn module I just wrote does its own network access;
>> i.e. unicorn gives me a URI, I fetch it, and look at the contents.
>>
>> Is that as designed?
>>
>> i.e. if there are 5 observers, does the page get fetched 5 times?
>
> Yes, one time per observer (or more if the observer decides to). 
> Actually, I think Unicorn also fetches it one time, to see if the 
> document can be reached to avoid calling many observers if that's not 
> necessary.
>
> That may seem a lot, but I think that's the only way unless we used 
> some complicated caching mechanism on Unicorn's side (which could lead 
> to a loss of information btw).
>
> Jean-Gui

You're right, I never realised it but Unicorn does fetch the document 
although it is useless because we only need the response code. I'll fix it.

Thomas

Received on Tuesday, 18 May 2010 16:58:35 UTC