I need to do some processing in the background when the website is running. Every 30 minutes I need to run a piece of code that interacts with the database.
Would it be okay to use a timer that executes the code every 30 minutes or is there a better way of doing this? If timer is okay to implement, I'm thinking to implement it in the Application_Start() function in the Global.asax folder.
From what I've read, a timer wouldn't cause performance issues because for the majority of the time it's not actually running any code.
I've been searching but couldn't find anything MVC related. Not sure if that matters.