How to set up multiple parallel running processes
Posted: Thu Aug 15, 2019 1:14 pm
Hello fellow LC enthusiasts,
I have a question about how to best setup multiple non blocking parallel running processes in LC.
What I am planning to build is an application that has approx. 20 processes running simultaneously.
Each process must get data from a Server in 30 sec intervals and communicate back in the same interval. I use TsNet for this (Post & Get) that uses a REST-API.
Each process has its own graphical user interface with controls and I have a overview interface.
So my question is, how best to set this up. Should or can I:
1) Place each process in a separate Stack and have a stack with the user interface and user controls that communicates with those other separate stacks?
2) Place each process in Sub-Stacks with each sub stack having the sub user interface a process controls. And the Main Stack handles the overview user interface and user controls and communicates with the sub-stacks?
3) Can I place all in one stack with cards and routines (Commands)?
4) Other options ?
So some much needed advice (maybe with example) would be appreciated so I will not be running in the wrong direction coming to the conclusion after having spend many hours that I need to start from scratch again?
Friendly greeting,
Paul (MrCoolLion)
I have a question about how to best setup multiple non blocking parallel running processes in LC.
What I am planning to build is an application that has approx. 20 processes running simultaneously.
Each process must get data from a Server in 30 sec intervals and communicate back in the same interval. I use TsNet for this (Post & Get) that uses a REST-API.
Each process has its own graphical user interface with controls and I have a overview interface.
So my question is, how best to set this up. Should or can I:
1) Place each process in a separate Stack and have a stack with the user interface and user controls that communicates with those other separate stacks?
2) Place each process in Sub-Stacks with each sub stack having the sub user interface a process controls. And the Main Stack handles the overview user interface and user controls and communicates with the sub-stacks?
3) Can I place all in one stack with cards and routines (Commands)?
4) Other options ?
So some much needed advice (maybe with example) would be appreciated so I will not be running in the wrong direction coming to the conclusion after having spend many hours that I need to start from scratch again?
Friendly greeting,
Paul (MrCoolLion)