--
You received this message because you are subscribed to the Google Groups "altnetisrael" group.
To post to this group, send email to altnet...@googlegroups.com.
To unsubscribe from this group, send email to altnetisrael...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/altnetisrael?hl=en.
You have a first request that would populate cache and this request takes 10s of seconds.
You're asking, should next requests be held until the cache-populating request finishes.
If this is a traditional cache, next requests should also populate cache (think about Http cache server or CDN). But the common conception is that its not because first request take crazily long time related to number of incoming requests.
While you can do async with Node.js or SignalR, my first worry is that you can't predict or have an upper bound on the number of following requests or the number of 10s of seconds. It can be 10 or 10000. Unless you can shed more light on the numbers I'd say drop following requests and accept when ready.
In any case assuming this has many requests, this sounds like an offline worker kinda thing to me.
202 accepted, come back later.