Click here to Skip to main content
15,897,163 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
DavidSherwood20-Mar-15 6:24
DavidSherwood20-Mar-15 6:24 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
Afzaal Ahmad Zeeshan20-Mar-15 12:28
professionalAfzaal Ahmad Zeeshan20-Mar-15 12:28 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
Vark11119-Mar-15 3:42
Vark11119-Mar-15 3:42 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
Brady Kelly19-Mar-15 20:00
Brady Kelly19-Mar-15 20:00 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
thund3rstruck20-Mar-15 2:44
thund3rstruck20-Mar-15 2:44 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
stevev620-Mar-15 3:55
stevev620-Mar-15 3:55 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
User 483504720-Mar-15 4:16
User 483504720-Mar-15 4:16 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
Mark J. Miller20-Mar-15 4:54
Mark J. Miller20-Mar-15 4:54 
If your goal is faster individual responses, I agree. I also agree with the point about reducing unnecessary complexity. However, he ignores the argument that using async/await in MVC is more about server resources than user wait time.

Given two servers, one written using sync the other async, each with a single connection the server written using sync code will respond faster. But as the number of connections increases the dynamic will change. The async server will return responses sooner as the sync server begins to slow down as unhandled requests queue up and it eventually begins refusing connections altogether long before the async one does.

He makes the argument that other tools are more worth your time. However, that it subjective. Will learning functional programming and re-writing my application in F# prove more valuable in the long run? Probably. But can I more quickly grasp the async model and implement it along my hot paths? More likely.

Does this mean I should implement async/await from the very start? Be careful of pre-optimization. My last project I wrote using async/await - it took me an afternoon of investigation to determine how to properly use it. It wasn't a significantly large project, but it's in use, under load and stable. I have never found a significant overhead in tracking down async bugs, but that's because I spent time learning how to handle async exceptions and properly implementing logging.
Code responsibly: OWASP.org
Mark's blog: www.developMENTALmadness.com

Bill Cosby - "A word to the wise ain't necessary - it's the stupid ones that need the advice."

GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
jschell20-Mar-15 12:27
jschell20-Mar-15 12:27 
GeneralRe: Do we really need asynchronous programming? I don't think so. Pin
KP Lee20-Mar-15 17:58
KP Lee20-Mar-15 17:58 
GeneralWeird naming conventions Pin
Jacquers18-Mar-15 22:02
Jacquers18-Mar-15 22:02 
GeneralRe: Weird naming conventions Pin
Rage18-Mar-15 22:04
professionalRage18-Mar-15 22:04 
GeneralRe: Weird naming conventions Pin
Johnny J.18-Mar-15 22:07
professionalJohnny J.18-Mar-15 22:07 
GeneralRe: Weird naming conventions Pin
Jacquers18-Mar-15 22:08
Jacquers18-Mar-15 22:08 
GeneralRe: Weird naming conventions Pin
Mike Hankey18-Mar-15 22:09
mveMike Hankey18-Mar-15 22:09 
JokeRe: Weird naming conventions Pin
V.18-Mar-15 22:50
professionalV.18-Mar-15 22:50 
GeneralRe: Weird naming conventions Pin
Duncan Edwards Jones18-Mar-15 23:04
professionalDuncan Edwards Jones18-Mar-15 23:04 
GeneralRe: Weird naming conventions Pin
W Balboos, GHB19-Mar-15 1:34
W Balboos, GHB19-Mar-15 1:34 
GeneralRe: Weird naming conventions Pin
Amarnath S19-Mar-15 2:19
professionalAmarnath S19-Mar-15 2:19 
GeneralRe: Weird naming conventions Pin
dandy7219-Mar-15 3:16
dandy7219-Mar-15 3:16 
GeneralRe: Weird naming conventions Pin
Brady Kelly19-Mar-15 9:22
Brady Kelly19-Mar-15 9:22 
GeneralRe: Weird naming conventions Pin
Richard Deeming19-Mar-15 4:12
mveRichard Deeming19-Mar-15 4:12 
GeneralRe: Weird naming conventions Pin
Jacquers19-Mar-15 6:06
Jacquers19-Mar-15 6:06 
GeneralRe: Weird naming conventions Pin
R. Giskard Reventlov20-Mar-15 11:08
R. Giskard Reventlov20-Mar-15 11:08 
NewsRIP Shaw Taylor Pin
Nagy Vilmos18-Mar-15 21:31
professionalNagy Vilmos18-Mar-15 21:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   10 votes