blob: 8227e08baf95c4ff0f833fab242e46fe4dfd21e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
This demo illustrates the use of Asynchronous Message Invocation (AMI)
and Asynchronous Message Dispatch (AMD).
To run the demo, first start the server:
$ server
In a second window, start the client:
$ client
The demo invocation can either have a short response time or require a
significant amount of time to complete. For the long running request
the client uses AMI and the server uses AMD plus a worker thread to
process the request. While a long request is processing, short
requests are still able to be processed and more long requests can be
queued for processing by the worker thread.
|