Asynchronous HTTP Modules and HTTP Handlers in Asp.Net 4.5

66 views
Skip to first unread message

Carlos Admirador

unread,
Nov 12, 2016, 4:49:50 AM11/12/16
to AltNet-Hispano
Buenas al grupo.

Algún ejemplo "real-world" de "Asynchronous HTTP Modules and HTTP Handlers" ?
Entiendo que no afecta al performance per se, sino afecta a la escalabilidad.


Hay HttpHandlers interesantes como de Orellabac, para ver las sesiones de los  usuarios conectados. Lo que no sé el rendimiento que tendría para 4000 usuarios potenciales, quizá concurrentes 500-600.


Otro ejemplo de HttpHandler sin asincronismo.
Un ejemplo de Real world async httpHandler podría ser ELMAH:

 ErrorLogDownloadModule  is frankly the module that would benefit the most from being asynchronous as it can take a while to run as it serves to download. To that extent, it is already implemented in an asynchronous manner by virtue of implementing  IHttpAsyncHandler . It doesn't used tasks/TPL but it's asynchronous alright.
https://github.com/elmah/Elmah/blob/1x/src/ErrorLogDownloadHandler.cs#L39

Ahora veo, que existe un  ASP.NET Async SessionState module

The default ASP.NET SessionStateModule is already partly asynchronous; it reads the request state asynchronous, but it doesn’t support async when reading/writing to the session store.  In the .NET Framework 4.6.2 release, Microsoft changed this by introducting a new interface named ISessionStateModule.

Thanks to the async SessionState module it becomes possible to access the session storage providers(SQL Server, Redis,…) asynchronously. Async I/O operation helps release the thread more quickly than synchronous I/O operation, and ASP.NET can handle other requests.


Here are the required steps to start using this module:

Por favor, pueden comentar sus experiencias respecto Asynchronous HTTP Modules and HTTP Handlers,   ASP.NET Async SessionState module, ?

Muchas gracias por su tiempo.

Saludos.
Carlos.

Juan Nallar

unread,
Nov 12, 2016, 8:19:30 AM11/12/16
to altnet-...@googlegroups.com

Yo usé en un proyecto reciente async wep apis... no sé si te sirve.


--
Has recibido este mensaje porque estás suscrito al grupo "AltNet-Hispano" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a altnet-hispano+unsubscribe@googlegroups.com.
Para publicar en este grupo, envía un correo electrónico a altnet-hispano@googlegroups.com.
Visita este grupo en https://groups.google.com/group/altnet-hispano.
Para acceder a más opciones, visita https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages