C# 7 and .NET: Designing Modern Cross-platform Applications
by Mark J. Price, Ovais Mehboob Ahmed Khan
Queuing communication
For larger object or complex operation, decoupling the single request/response channel from the distributed messaging channel increases the application's performance. For large, chunky operations, we can design and distribute communication into multiple components. For example, there is a website that calls a service to upload an image, and, once it is uploaded, it does some processing to extract a thumbnail and saves it in the database. One way is to do both uploading and processing in a single call, but at times when the user uploads a larger image or if the image processing takes a longer time, the user may face a request timeout exception, and the request will terminate.
With the queuing architecture, we can distribute ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access