How "Every 5 Minutes" (*/5 * * * *) Works Across Schedulers
The standard 5-field POSIX cron expression */5 * * * * schedules execution every 5 minutes (:00, :05, :10, :15 ... :55 every hour), totaling 288 runs/day (12 runs/hour). Teams commonly rely on this cadence for service health checks, Prometheus push metrics, GitHub Actions minimum-cadence workflows, and SQS/Kafka micro-batch syncs. When deploying to AWS EventBridge Rules or Scheduler, translate it to the 6-field syntax cron(*/5 * * * ? *) with the mandatory ? wildcard and trailing Year field; for 6-field seconds-first engines like Spring @Scheduled or Azure Functions NCRONTAB, use 0 */5 * * * *.
*/5 * * * * is the shortest interval supported by GitHub Actions and the most popular cadence across cloud schedulers—which means shared APIs often spike on :00 and :05 boundaries. Offset to 2-59/5 * * * * if you want quieter upstream latency.
- POSIX / K8s / GitHub*/5 * * * * — Every 5 minutes (:00, :05, :10 ... :55) (:00, :05, :10, :15 ... :55 every hour).
- AWS EventBridge & SpringAWS: cron(*/5 * * * ? *) · Spring / Azure 6-field: 0 */5 * * * *.
- Execution Cadence288 runs/day (12 runs/hour). Typical workloads: service health checks, Prometheus push metrics, GitHub Actions minimum-cadence workflows, and SQS/Kafka micro-batch syncs.
What is the exact cron expression for every 5 minutes?
Use */5 * * * * for Linux crontab, Kubernetes CronJob, GitHub Actions, and GCP Cloud Scheduler. Use cron(*/5 * * * ? *) for AWS EventBridge, and 0 */5 * * * * for Spring @Scheduled and Azure Functions NCRONTAB.
What is the difference between */5 * * * * and 0/5 * * * *?
In modern POSIX and AWS EventBridge both run at :00, :05, :10 through :55, though older Vixie cron versions prefer */5 while AWS EventBridge and Quartz explicitly support 0/5.