Re: Is there a way to "bridge" TCP/IP sockets?
Re: Is there a way to "bridge" TCP/IP sockets?
- Subject: Re: Is there a way to "bridge" TCP/IP sockets?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Tue, 23 Nov 2010 19:43:18 +0000
On 23 Nov 2010, at 18:30, Jonathon Kuo wrote:
> Does this paradigm scale?
How far do you need it to scale?
(-:
> How many sockets/connections can the main process support before it runs into some sort of resource limit?
It's a no-brainer scaling this up to O(10). O(100) is probably not too hard. O(1,000) is going to start getting tricky, and O(10,000) or higher is going to be very hard. A lot of this depends on the expected traffic of the clients.
At the higher levels you'd want to use multiple processes, possibly on multiple machines, to do the forwarding. If you want to plan for such an eventuality it might be wise to introduce a level of indirection, where the client connections to the server and the first thing it does is find out the server it should have connected to.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden