mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Request for the webserver to be hosted as in process host to improve performance #135
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nachiappannk on GitHub (Mar 27, 2018).
Originally assigned to: @GregorBiswanger on GitHub.
My understanding of the current architecture
Request
https://blogs.msdn.microsoft.com/webdev/2017/12/07/testing-asp-net-core-mvc-web-apps-in-memory/
Advantages
In the current approach the server is running as a separate process and is listening on a open port, this could be a security gap. When you host as "in process" there is no open port, and only code running within the process can access the web server.
In the current approach, there is interprocess communication happening over a socket that gets estabilished between the asp.net core server and the browser. Inter process communication is slow as data has to be transferred between processes using IPC. When you run as in-process, there is no inter process communication.
In the current approach, there are multiple processes running for the desktop app, when you host as in-process, there will be only one process.
Further note:
Regards,
Nachiappan
nachiapan@gmail.com