Performance: Scheduler with cron
MEDIUM IMPACT
This affects how efficiently scheduled tasks run in the background without blocking user requests or slowing down the main application.
Set a single cron entry that runs Laravel's scheduler every minute, which internally manages all scheduled tasks.Set up multiple cron entries each running different Laravel artisan commands every minute.
| Pattern | Server Processes | CPU Load | Memory Usage | Verdict |
|---|---|---|---|---|
| Multiple cron entries for each task | Multiple PHP processes per minute | High | High | [X] Bad |
| Single cron entry running Laravel scheduler | One PHP process per minute | Low | Low | [OK] Good |