Is it a good solution to use SocketAsyncEventArgs for a Client application receiving market quotes ? Or a traditional while(true) is better ?
I am looking for the fastest solution in order to receive thousand of messages per second.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For high volume messaging,
SocketAsyncEventArgsis best. MS did a lot of work to make the API as light on memory thrashing as possible, so GC will need to fire much less often than with other approaches. IIRC it’s the only API Silverlight supports, so if that’s a possibility then it’s your only option.