API stops working until request is made on GoDaddy server

I am having trouble running the API on a Godaddy server. The API basically sends requests to the website continuously for a certain period of time, as soon as it starts working. Therefore, a timer has been created in Application_Start to control this action. For some reason, my API stops working after a while if no one makes a request. However, I need my API to work all the time, since I need a list that has live data that is being collected from another site. Below you can read the steps that I am taking and the problem I am facing in the details:

  • I created my web API in Visual Studio 2013 written in C #.
  • I bought a server from Godaddy hosting Windows Deluxe.
  • I uploaded my files to the httpdocs folder of my server using ftp.
  • When I call my API by typing "mysite.com/myWebAPI/myList" it starts working and initially it returns an empty list (which is normal, I think)
  • Then I make the same request in 2 seconds (let my API collect the data), and the list I need is returned using the live data inside the collected data from another site.
  • After this point, my API should not stop. It should send a request every X seconds to the website and update the information in the list.
  • However, after 5 or 10 minutes, if no one sends a request, my API stops, so it stops collecting information from another website, and the list is not updated.
  • , , , . , . , Application_Start .

, -API , . , - X . , 30 , , , , 30 .

, : API , GoDaddy Windows Deluxe?

, - IIS, , .

.

+4
2

GoDaddy, Azure Web App Service , , " ", API x . GoDaddy , .

0

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


All Articles