Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Topshelf vs .net core worker service [closed]

How does Topshelf differ from a ASP.NET Core Worker Service? and what are the pros and cons of each of them and are they both support Windows and Linux?

like image 312
kira Avatar asked May 04 '20 10:05

kira


1 Answers

Topshelf is available in .net standard and that means you can use it in .net core apps. That doesn't mean that you can run in on Linux because it is dependent on Windows registry. In the Topshelf docs you can see that it runs on Windows only.

On the other hand, worker services run on .net core 3 and they can run on both Linux and Windows.

So if you have .net framework or .net core 2 or 1 project go ahead with Topshelf and if you have .net core 3 project go ahead with worker service.

like image 172
sajjad kalantari Avatar answered Sep 27 '22 22:09

sajjad kalantari