J
Jeremy S.
I understand asynchronous calls in a Web app that are initiated from the
browser via AJAX (whatever implementation may be in use). In these scenarios
we are updating the rendered page (DOM).
But what about async calls initated in server-side logic. I'm wondering if
there is any use for server-side asynchronous calls. While code-behind logic
*can* spawn a background thread and execute some call on that thread, the
page will proceed to render to the browser possibly/likely before the async
call returns. So, is there any way to get the async call to participate in
the page lifecycle? If not, then is there any reasonable use for such
server-side async calls? Or are such server-side calls mostly good for
activities that do not need to interact with the Page that gets rendered
(e.g., write some log file entry on the background thread and let the page
render while that operation is taking place)?
Just looking for some thoughtful discussion... not trying to solve a
particular problem here.
browser via AJAX (whatever implementation may be in use). In these scenarios
we are updating the rendered page (DOM).
But what about async calls initated in server-side logic. I'm wondering if
there is any use for server-side asynchronous calls. While code-behind logic
*can* spawn a background thread and execute some call on that thread, the
page will proceed to render to the browser possibly/likely before the async
call returns. So, is there any way to get the async call to participate in
the page lifecycle? If not, then is there any reasonable use for such
server-side async calls? Or are such server-side calls mostly good for
activities that do not need to interact with the Page that gets rendered
(e.g., write some log file entry on the background thread and let the page
render while that operation is taking place)?
Just looking for some thoughtful discussion... not trying to solve a
particular problem here.