Galina Melnik
Galina Melnik

Reputation: 2057

Long time scheduler in C#

I'm trying to create a project with net core 2.0. Users can create reminders in distant future in my system (the reminder call weapi method in distant future). Reminders save in database (I choose the database now). Nuget-package Quartz.NET can create reminders in future. But what if server will be restarted?
The main idea is : in startup.cs recreate reminders in Quartz.NET. I don't like this idea, because maybe there will be a lot of reminders. Have you got any ideas about how can I do it?

Upvotes: 1

Views: 928

Answers (1)

Alex Riabov
Alex Riabov

Reputation: 9175

Quatrz.net allows you to choose JobStore, so you can restore all your jobs after application restart. Another alternative is to use Hangfire which provides a lot of persistence options out of the box.

Upvotes: 2

Related Questions