question

BHATTALOK-3858 avatar image
0 Votes"
BHATTALOK-3858 asked LimitlessTechnology-2700 answered

Do microsoft recommends to write .Net Windows service? or it is becoming mandatory to write windows service in C++ due to performance reasons

What are the reason that one should stop writing windows service in .NET and migrate all .NET service back to C++?
Is this becoming a mandatory from microsoft to write windows service in .NET?
We are following HSA architecture, and our underlying windows service is written in C# i.e., C# windows service is deployed as Driver using HSA framework.
UWP apps communicate via RPC to C#.net service. ,
Are there any reason w.r.t performance of service that we should think of converting service to win32 windows service?
Any problem with high CPU usage, high memory footprint, uwp communication break as .net services are generally delayed started

dotnet-csharpwindows-10-networkdotnet-runtime
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

only if you have actual performance troubles or prefer C++



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @BHATTALOK-3858,

Thank you for your question.

Types of Services

There are two types of services you can create in Visual Studio using the .NET Framework. Services that are the only service in a process are assigned the type Win32OwnProcess. Services that share a process with another service are assigned the type Win32ShareProcess. You can retrieve the service type by querying the ServiceType property.

You might occasionally see other service types if you query existing services that were not created in Visual Studio. For more information on these, see the ServiceType.

For more information please go through this link:
https://docs.microsoft.com/en-us/dotnet/framework/windows-services/introduction-to-windows-service-applications#service-lifetime


If the reply was helpful, please don't forget to upvote or accept as answer.

Thanks,

Bharti B

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.