Click here to Skip to main content
15,891,136 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsNativeJIT Pin
Kent Sharkey5-Sep-16 9:32
staffKent Sharkey5-Sep-16 9:32 
NewsThe ultimate guide to Java 9 Pin
Kent Sharkey5-Sep-16 9:16
staffKent Sharkey5-Sep-16 9:16 
NewsBugs and documentation errors in .NET's HttpClient frustrate developers PinPopular
Kent Sharkey5-Sep-16 9:13
staffKent Sharkey5-Sep-16 9:13 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
Duncan Edwards Jones5-Sep-16 11:30
professionalDuncan Edwards Jones5-Sep-16 11:30 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
Marc Clifton5-Sep-16 11:42
mvaMarc Clifton5-Sep-16 11:42 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers PinPopular
Wonde Tadesse6-Sep-16 4:31
professionalWonde Tadesse6-Sep-16 4:31 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
Marc Clifton7-Sep-16 9:29
mvaMarc Clifton7-Sep-16 9:29 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers PinPopular
Wonde Tadesse7-Sep-16 12:16
professionalWonde Tadesse7-Sep-16 12:16 
As general rule, Be very careful about static/shared variables in web environment. You'll get threading issues with their content.

Assuming that when you say "queue" you are talking about a message queue(RabbitMQ, ZeroMQ, NetMQ, MSMQ,...), I'll suggest to revise the design. Keep in mind also queue by itself has a network latency.

First of all I'll not wait an open connection till the message queue completed and send back a response. It doesn't make sense to me. What I'll do, Once a message comes, processing asynchronously, open the http connection, enqueue the message to the queue, then I will immediately send a response saying "you message are being processed" sort of thing and finally close the connection. Then I'll run another separate background process which will dequeue the message and process the necessary busy related task and send it back by opening another http connection.
Wonde Tadesse

GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
Joe Woodbury6-Sep-16 9:37
professionalJoe Woodbury6-Sep-16 9:37 
GeneralRe: Bugs and documentation errors in .NET's HttpClient frustrate developers Pin
enhzflep6-Sep-16 15:00
enhzflep6-Sep-16 15:00 
NewsThe European Space Agency has found its missing Philae comet lander Pin
Kent Sharkey5-Sep-16 9:11
staffKent Sharkey5-Sep-16 9:11 
NewsMobile apps are now bigger than the web — a trend that threatens to eat Google's core business Pin
Kent Sharkey5-Sep-16 9:10
staffKent Sharkey5-Sep-16 9:10 
GeneralRe: Mobile apps are now bigger than the web — a trend that threatens to eat Google's core business Pin
Joe Woodbury6-Sep-16 9:38
professionalJoe Woodbury6-Sep-16 9:38 
NewsScientists make lasers out of human blood Pin
Kent Sharkey4-Sep-16 8:00
staffKent Sharkey4-Sep-16 8:00 
GeneralRe: Scientists make lasers out of human blood Pin
#realJSOP5-Sep-16 5:08
mve#realJSOP5-Sep-16 5:08 
NewsSo-called 'soft' skills remain hard to find Pin
Kent Sharkey4-Sep-16 7:58
staffKent Sharkey4-Sep-16 7:58 
GeneralRe: So-called 'soft' skills remain hard to find Pin
ledtech34-Sep-16 10:56
ledtech34-Sep-16 10:56 
GeneralRe: So-called 'soft' skills remain hard to find PinPopular
#realJSOP5-Sep-16 1:57
mve#realJSOP5-Sep-16 1:57 
GeneralRe: So-called 'soft' skills remain hard to find Pin
TheGreatAndPowerfulOz5-Sep-16 7:25
TheGreatAndPowerfulOz5-Sep-16 7:25 
GeneralRe: So-called 'soft' skills remain hard to find Pin
dan!sh 6-Sep-16 16:57
professional dan!sh 6-Sep-16 16:57 
GeneralRe: So-called 'soft' skills remain hard to find Pin
Vark1116-Sep-16 5:30
Vark1116-Sep-16 5:30 
GeneralRe: So-called 'soft' skills remain hard to find Pin
Joe Woodbury6-Sep-16 9:40
professionalJoe Woodbury6-Sep-16 9:40 
NewsApple and Google have joined Microsoft’s fight for digital privacy Pin
Kent Sharkey4-Sep-16 7:48
staffKent Sharkey4-Sep-16 7:48 
GeneralRe: Apple and Google have joined Microsoft’s fight for digital privacy Pin
Nelek4-Sep-16 15:06
protectorNelek4-Sep-16 15:06 
GeneralRe: Apple and Google have joined Microsoft’s fight for digital privacy Pin
Mycroft Holmes4-Sep-16 22:55
professionalMycroft Holmes4-Sep-16 22:55 

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.