yofnik@comcast.net wrote in news:1143819832.151272.41930
@z34g2000cwc.googlegroups.com:
> I want to allow multiple clients to connect to a device. However,
> since the device only accepts one connection on a single port, I have a
> few problems. Basically, the two options that I see are:
FWIW, I have implemented option 1 (a single connection proxy) for several
other projects and it has worked quite well for me. Option 2 is only
viable when you can *guarantee* that there will *never* be more clients.
Rule #7b of the "Hitchhiker's Guide to Client/Server Design" says that you
will always end up with more clients than you expected.
-mdb
yofnik@comcast.net - 31 Mar 2006 17:50 GMT
I totally agree. I am curious though about where the cutoffs are? Are
we talking 10 clients will be too much, or hundreds?
At a lower level, here is what I want to know. What is the overhead of
opening and closing a connection with each request? Is this feasible
with 10 different clients requesting data once a second. If so, then I
am happy. When more than 10 clients are required, we can simple charge
more money for option 1. :)
Michael Bray - 31 Mar 2006 18:32 GMT
yofnik@comcast.net wrote in news:1143823807.215423.38480
@e56g2000cwe.googlegroups.com:
> I totally agree. I am curious though about where the cutoffs are? Are
> we talking 10 clients will be too much, or hundreds?
[quoted text clipped - 4 lines]
> am happy. When more than 10 clients are required, we can simple charge
> more money for option 1. :)
Much of what you are asking will depend on the device you are connecting
to, the type of connection it has, what kind of processing is being done on
the device in order to return the data, etc. I can't really guage that -
you will probably have to do some tests to determine this. If this was a
server-class network appliance I would say 10 requests per second is no
problem. But if I remember you are talking to a 'Smart Device' which could
be anything, running on a slow processor with a bad network stack. My
guess would be that 10 connections per second might be pushing it for a
device of this type, again depending on how much data is being returned and
what kind of processing has to be done to generate that data.
Bottom line is that you will have to test to find out where the limit is
for your particular application.
-mdb