Hangfire
Production Recommendation
Why Choose Hangfire?
⚠️ Important: Strong Naming Limitation
Hangfire Overview
How Brighter Integrates with Hangfire
NuGet Packages
Configuration
Basic Configuration
Configuration with PostgreSQL
Configuration with Redis
Configuration with Custom Queue
Storage Options
SQL Server
PostgreSQL
MySQL
Redis
In-Memory (Development Only)
Dashboard
Basic Dashboard Setup
Dashboard with Authentication
Dashboard with Custom Path and Options
Dashboard Features
Code Examples
Basic Scheduling
Cancelling a Scheduled Job
Scheduling with Absolute Time
High Availability with Multiple Servers
Monitoring and Observability
Job Filters
Health Checks
Best Practices
1. Always Use Persistent Storage in Production
2. Secure the Dashboard
3. Use Custom Queues for Organization
4. Store Scheduler IDs for Cancellation
5. Configure Appropriate Worker Counts
6. Monitor the Dashboard Regularly
7. Handle Timezone Correctly
8. Configure Automatic Retry Policies
Troubleshooting
Jobs Not Executing
Jobs Executing Multiple Times
Dashboard Not Loading
Migration from Other Schedulers
From InMemory Scheduler
From Quartz
Comparison: Hangfire vs Quartz
Feature
Hangfire
Quartz.NET
Related Documentation
Summary
Last updated
Was this helpful?
