New answers tagged sockets
This seems similar to something I have been dealing with. In my case: queries that can take minutes before finished (due to complexity) and requests that should get a workable response as soon as possible. It seems you have a deliberate delay in broadcasting the data. Probably to cater the "real time" situation you have with frequent updates. We did a ...
Yeah, it's true that network programming requires networking technology while on the other hand socket programming is a subset of network programming. Most current network programming is done either using sockets directly, or using various other layers on top of sockets.
Your guiding factors here should be how much traffic you expect to see through your queue, how important it is, and the relationship between reads and writes. There are now some pretty handy built in collections in the .Net framework that can help you out with concurrency stuff and save a lot of time and effort but of course once you are playing with ...
I would encapsulate the standard list in a custom list class, which is to be made thread-safe. How it arrives at thread-safety is nicely encapsulated, and can the implementation can be tweaked for best performance given it's typical usage. First try if a simple lock on every access to the list gives acceptable performance. If so, you're done! If this is ...
Top 50 recent answers are included