asp.net - Is event based model used in node the same as the event based model used in C# applications? -


i've heard node.js , event based programming , things node event loop. in college remember made asp.net web application. professor said asp.net uses event based architecture callback functions on server side triggered different events on client side.

are 2 different technologies using concept events , event driven programming?

they're similar in they're both using idea of events - calls code, rather going out , looking changes. in practice they're quite different.

in node (and in asp.net mvc) events in question client "this url requested". that's it. there's no more granularity other contents of request.

in asp.net webforms, work hard synthesize events based on happened on client page. events "text changed", "button clicked", "checkbox checked"... same kind of stuff you'd in straight desktop app.

it turns out webforms model gets really, complicated fast, , abstraction layer gets in way of doing things ajax calls.

another thing node async events, unlike asp.net. database call? async in node, sync in asp.net. read file? async in node, sync in asp.net. http request server? idea.

asp.net can things async, have go out of way it, , uses threads. in node async stuff pretty natural , doesn't need use threads, resulting (somewhat surprisingly) in higher throughput in cases.

so yes, they're same in sense they're both "events", details staggeringly different.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -