Chapter 7. Thread Pools and Services (Scalable Programming)

The preceding chapter showed how you can create multithreaded clients that call XML Web services or remote components asynchronously. Along the way, we sorted through the details of responsible threading, with topics such as synchronization and callbacks. This chapter shifts the focus and asks how threading can be put to use in a remote component.

To answer this question, we need to consider different singleton designs. With singleton designs, you are responsible for adding the infrastructure that allows your component to support multiple simultaneous users. You'll need to spawn new threads as needed, track users, and ensure thread safety. Furthermore, if you're expecting a large user load, you must use some type of thread pooling to ensure scalability. This chapter tackles all these considerations. You'll also see how you can create a Microsoft Windows service to act as a .NET Remoting component host.



Microsoft. NET Distributed Applications(c) Integrating XML Web Services and. NET Remoting
MicrosoftВ® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting (Pro-Developer)
ISBN: 0735619336
EAN: 2147483647
Year: 2005
Pages: 174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net