I have a few questions about the electron app structure. On the separation of concerns.
Lets take a simple functionality : I would like to list all files (recursively) in a folder and for each of those files perform an http request and display the result of the request for each of those files in a table.
Now, if I perform the directory scan in the window process, it will freeze the layout until the whole directory is scanned and than update the UI. (using react btw). Could I make the window responsive moving that code to the “main” process and send events to the UI process? Sort of re-implementing a client-server architecture?
Should the HTTP requests be made by the window process as well?
If I want my app to work even without the main window opened (sitting in taskbar) can I still use the window to do all this ?