Login Page - Create Account

Support Board


Date/Time: Mon, 03 Mar 2025 10:31:59 +0000



Post From: SC market data connections and SC instances

[2019-06-10 11:34:41]
User12089 - Posts: 365
My main driver is not "sharing data", but achieving higher level of parallel processing, considering the single threaded nature of SC. (keep that in mind for the "upcoming changes")

I got machines (laptops) with 32 GB RAM and 8 CPU cores each as most of that remains idle with one SC instance ....

On top of that if I stuff that single instance with gazzilion of complex charts everything grounds to a halt in terms of chart refresh with real-time market data not to mention the responsiveness of the UI and also trading ie submitting orders etc from SC to IB

So the winning infrastructure architecture to take advantage of modern hardware and overcome the single threaded SC software architecture seems to be:

1. Launch one SC instance with NO charts whatsoever - it will establish the market data connection to the SC data feed and trading/broker connection to e.g. IB TWS.

2. Then (install and) launch as many SC instances as your machine can support and stuff them with whatever charts you need and connect each of these instances as sub-instances to the one in point 1 above (I prefer separately installed SC instances instead of launching sub-instances from the main instance - keeps everything more tidy and manageable and decoupled)

(reiterating - keep the above in mind during the "upcoming changes", we do need to take advantage of modern hardware or else make SC multithreaded ie every chart in a chart book runs on seeprate thread )
Date Time Of Last Edit: 2019-06-10 11:52:15