Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The sequence diagram would look something like this:

You would actually have multiple threads executing the 2nd part of the thread sequence.

Staying synchronous in an AsyncProcessor

todo: explain why doing things synchronously is more efficient than async.

Delegate Processors

todo: Describe how to implement async delegate processors and why its important to make delegates asyncGenerally speaking you get better throughput processing when you process things synchronously. This is due to the fact that starting up an asynchronous thread and and doing a context switch to it adds a little bit of of overhead. So it generally encouraged that AsyncProcessors do as much work as they can synchronously. When they get to a step that would block for a long time, at that point they should return from the process call and let the caller know that it will be completing the call asynchronously.