Skip to main content

One post tagged with "queue"

View All Tags

Queue Types Refactoring

· 4 min read

Problem Statement

The current job queue system has several issues:

  • Job names and data types are not properly typed
  • Job data types are not enforced at compile time
  • Queue and job names are scattered across different files
  • No clear relationship between queues and their valid job types
  • Type safety is not enforced when adding jobs to queues