문제

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.

도움이 되었습니까?

해결책

For high volume messaging, SocketAsyncEventArgs is 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top