Avanade / NTangle

nTangle is a Change Data Capture (CDC) code generation tool and corresponding runtime. Unlike other CDC-based technologies which replicate changes to rows, nTangle is designed to replicate business entity (aggregate) changes.
MIT License
15 stars 3 forks source link

Add possibility to run as windows service, not just as console app #24

Closed wborowiecki closed 1 year ago

wborowiecki commented 1 year ago

It would be nice to add the possibility to run nTangle as a Windows service or Linux daemon, not just as a console app. In that way, we could deploy it on a VM, it could then restart automatically after VM reboot. Also, it would not require having an active session to run it.

chullybun commented 1 year ago

The console application is the default created for the Publisher when using the Template to generate the solution/projects. This was chosen as this is the easiest to create and supports simple testing; plus, acts as an appropriate demonstration of how to use the *HostedServices (via AddGeneratedCdcHostedServices), etc.

There are many host options, windows service being one of them, or alternatively an Azure Function, etc. Therefore, it is up to the developer to change the Publisher into the appropriate host for their respective scenario.