Skip to content

mrl5/scheduler-kata

Repository files navigation

scheduler kata

Motivation

  • practice Rust + REST API + OAS
  • practice PostgreSQL
  • practice benchmarking

Requirements

Expose an API that can:

  • Create a task of a specific type and execution time, returning the task's ID
  • Show a list of tasks, filterable by their state (whatever states you define) and/or their task type
  • Show a task based on its ID
  • Delete a task based on its ID
  • The tasks must be persisted into some external data store (your choice).
  • Process each task only once and only at/after their specified execution time.
  • Support running multiple instances of your code in parallel.

Additional materials

HOWTO dev

Check CONTRIBUTING.md

Build

docker compose build

Run

⚠️ Before first run make sure to bootstrap database ⚠️

For more info check CONTRIBUTING.md

docker compose up

http://0.0.0.0:8000/docs

Iterations log

About

grinding the api-queue-worker pattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published