Alternative C# Windows Service

Asked

Viewed 191 times

2

Hello, I have some windows services written in C# (Framework 4.0) running on server here in the company, these services perform some monitoring to make information available for when the user logs into the Asp.net system.

We will stop using the internal server to use an external hosting, there is an alternative for windows services to be hosted, because in these external hosting it is not possible to install a windows service. At first we will use UOL Host but if anyone suggests a better accommodation thank you.

I’m counting on your help.

Grateful

  • It depends on the tasks and resources that these services consume. If it’s just a database, maybe you don’t even have to host them in a new environment, just make the right notes. But if your Asp.net application depends on these windows services, you should look for a more complete hosting solution that provides the environment with all the requirements you need.

  • 1

    I had a similar case and we simply converted the services to web applications that run on IIS and solve the problem. The services were very simple, read folders and copied files besides sending email, all easily migrated to a Web application, practically only copy and paste

  • These webservices access the database to store the monitoring data and access external webservices to obtain the analysis data. The services are running 24 hours, are not "startados" by intervention of some user.

1 answer

0

For what described the best for your scenario is you use an AWS, Azure or similar, I do not know how critical/ size of your system, but I would flee from these "xxxHost" hostels of life.

You can have the option to take a server, and run what you need inside, for example:

Without changing its architecture I would go to a server for example a "t2.medium" in AWS. (2 vcpu, 4gb memory) - Windows (https://aws.amazon.com/ec2/pricing/on-demand/)

Of course hardware configuration depends on the size of your application and the like.

As an option you also have the Webjobs

In Azure you have the Webjobs where in case you will have to convert your services to Webjobs to run in Azure.

https://docs.microsoft.com/en-us/azure/app-service/web-sites-create-web-jobs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.