I am using the Net MQ (Zero MQ) async implementation described in their docs: https://netmq.readthedocs.io/en/latest/async-await/
I have implemented this on my .aspx page which processes each request and sends to the server. This all works fine but I am aware that I am creating a new runtime for each request - this seems inefficient - is there another way?
Public Shared Async Function HandleRequest Dim tcs As New TaskCompletionSource(Of String)() Using runtime As New NetMQRuntime() runtime.Run(StartAsync(tcs, requestStr)) End Using Dim response As String = Await tcs.TaskEnd FunctionPrivate Shared Async Function StartAsync()'send to server, receive response. .. .. Return responseEnd Function