Reliable Background Jobs in Java with JobRunr – Ronald Dehuysser | IntelliJ IDEA Tech Talks


In this episode of IntelliJ IDEA Tech Talks, I talk to Ronald Dehuysser about JobRunr.

Description

What happens when your invoices end up on a dead letter queue? If you’re Ronald Dehuysser, you build an open source library to make sure it never happens again.

In this episode, Ronald, creator of JobRunr, joins us to talk about running background jobs in Java. He shows how to set up JobRunr with Spring Boot, enqueue and schedule jobs, and keep an eye on them in the built-in dashboard. And he explains why he loves exceptions. (Yes, really.)

We also cover carbon-aware job scheduling, recurring jobs (and why nobody likes writing cron expressions), whether you need Kafka, and the time-traveling bug that took years to track down.

Chapters

  • 0:00 Intro: What is JobRunr?
  • 1:22 Why JobRunr exists
  • 4:27 Real-world use cases
  • 7:34 Demo: JobRunr with Spring Boot
  • 18:25 Do you need Kafka?
  • 19:45 “I love exceptions”: retries and logpoints
  • 27:58 Scheduling and carbon-aware jobs
  • 38:13 Recurring jobs, cron, and time zones
  • 43:07 MCP server, scaling, and deployment
  • 48:27 Durable execution and the time-traveling bug

Links

Other episodes

Author: Marit van Dijk

Marit van Dijk - Software Developer, Java Champion, Senior Developer Advocate at JetBrains. She is an international keynote speaker and author.