Async design
-
Given a structure of DB -> DAL -> Web API -> client (Blazor and possibly mobile) Do the DAL and Web API need to be asynchronous?
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
-
Given a structure of DB -> DAL -> Web API -> client (Blazor and possibly mobile) Do the DAL and Web API need to be asynchronous?
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
With a client in the picture, synchronous implies sitting at a locked screen. With perhaps not even a progress bar.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food
-
Given a structure of DB -> DAL -> Web API -> client (Blazor and possibly mobile) Do the DAL and Web API need to be asynchronous?
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
Anything that calls out to an external system, whether that's a DB query, a network request, or even accessing files on disk, should really be asynchronous. Why tie up a thread waiting for a request to complete when you could let the OS tell you when it's finished and let your thread get on with something else instead? :)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Given a structure of DB -> DAL -> Web API -> client (Blazor and possibly mobile) Do the DAL and Web API need to be asynchronous?
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
I loathe synchronous design for the reasons described in the "Synchronous Messaging" section of this article[^].
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
Anything that calls out to an external system, whether that's a DB query, a network request, or even accessing files on disk, should really be asynchronous. Why tie up a thread waiting for a request to complete when you could let the OS tell you when it's finished and let your thread get on with something else instead? :)
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Yeah when one applies a few brain cells the answer is obvious - browser paints the screen and then fills the data control :doh:
Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP