The best way to write a survey application

I am trying to create a basic application that will have two separate components:
1. Constantly poll the external process and save the results in DB. 2. Grab the results from the database and display them on the web page.

I want to do this in .Net, so usually I say to make the first component in a Windows service, and the second in ASP.net with relational dbms, like a sql server.

The problem is that I want to use web hosting to deploy it, and they are not inclined to allow Windows services (unless you pay a fortune). So is it possible to execute the polling component on a separate asp.net page or to create a spawning workflow on a single asp.net page that will do the polling for me?

Any opinions / input appreciated. Thank:)

+3
source share
4 answers

Read this blogpost regarding simple background tasks in ASP.NET . Some suggestions, lessons, etc. In comments. I think I remember the podcast where the site scale made this code go to the Windows service. You may / may not have the same scaling needs.

0
source

You may have a static method that sets up the polling flow in ASP.NET, so yes.

0
source

SO - , ASP.Net - , -. SO - , .

, , .

0

/ ?

- , ?

ASP is mainly designed for requests, not long processes, you can get something working, but it will never be as reliable as something intended for work.

0
source

Source: https://habr.com/ru/post/1761232/


All Articles