Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler #23

Open
AlexHedley opened this issue Jun 24, 2023 · 3 comments
Open

Scheduler #23

AlexHedley opened this issue Jun 24, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@AlexHedley
Copy link
Owner

No description provided.

@AlexHedley AlexHedley converted this from a draft issue Jun 24, 2023
@AlexHedley
Copy link
Owner Author

@alex-hedley
Copy link
Collaborator

alex-hedley commented Jun 30, 2023

How can you run background tasks in .NET APIs?

Here are two native options:

  • IHostedService
  • BackgroundService

The BackgroundService class is simply an implementation of the IHostedService.

They're easy to work with and run in-memory with your API process.

Other tools exist if you need something more robust, like Hangfire or Quartz.

And I've recently heard about Coravel but haven't used it.

I prefer working with Quartz since it's easy to use and integrates well with .NET.

Hangfire is also popular, and it comes with a built-in dashboard to monitor jobs.

What do you use for running background tasks?

P.S. If you enjoyed this, repost ♻️ it to share it with your audience.

image

@alex-hedley alex-hedley added the enhancement New feature or request label Jul 11, 2023
@AlexHedley
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants