Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"I'm satisfied with IQFeed. It's the most reliable and fastest quote feed I have ever used. Although I'm a resident in China, it's still very fast!" - Comment from Xiaofei
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »Mutiple sockets vs. Multiple Symbols on single socjket
Author Topic: Mutiple sockets vs. Multiple Symbols on single socjket (2 messages, Page 1 of 1)

Trender
-Interested User-
Posts: 16
Joined: Sep 22, 2009


Posted: Nov 11, 2011 11:51 AM          Msg. 1 of 2
Hi,

I would like to collect several symbols and markets statistics using Level1 and Level2 data streams and
perform some real time processing.

I wonder which is the best practice or more recommended approach:

1. Having multiple symbols sharing the same socket - this way all events arrive to the same socket,
the problem I can think of us that all data arrives serially so at any given moment, not all the latest data
for all the watched symbols is available for processing.

2. Having a dedicated socket for each symbol - better utilization of the OS threading(?),
If I understand correctly, I will have the most updated data for all the watched symbols all the time.
also maybe it is better to collect the data in a different process for each symbol (although it seems to me
an overkill)

Thanks
Trender

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Nov 21, 2011 02:31 PM          Msg. 2 of 2
Sorry for the late reply. IQConnect currently services all streaming data for symbols on a single thread. As a result, there is no advantage in terms of the feed itself for breaking your symbol list into multiple socket connections/processes. On the other hand, splitting them out to multiple sockets (if it is easier/needed within your app/apps) will not add a significant amount of overhead to IQConnect.
 

 

Time: Sat May 18, 2024 4:22 PM CFBB v1.2.0 10 ms.
© AderSoftware 2002-2003