2 ms·
I use Electron for DataStation [0]. Electron has builtin message passing between the UI layer and the main process. I built a small wrapper around this in TypeS
by eatonphil 4y ago
I use Electron for DataStation [0]. Electron has builtin message passing between the UI layer and the main process. I built a small wrapper around this in TypeScript so I could have the messages be typechecked.
Within the main process I actually have it call a Go process to handle all the heavy lifting that goes on in DataStation like database queries, HTTP requests, etc. Communication between the Nodejs main process and the Go process just happens in temp files. All long-term data is stored in SQLite.
Happy to talk more about it if you want! My email is in my profile.
[0] https://github.com/multiprocessio/datastation https://github.com/multiprocessio/datastation