Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gyuho/task-scheduler-examples
https://github.com/gyuho/task-scheduler-examples
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gyuho/task-scheduler-examples
- Owner: gyuho
- License: apache-2.0
- Created: 2021-05-22T23:21:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-01T18:12:03.000Z (over 3 years ago)
- Last Synced: 2024-04-09T17:02:35.490Z (9 months ago)
- Language: Rust
- Size: 38.1 KB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Task scheduler implementation in Go and Rust
Feature requirements are:
1. A client sends a task request via HTTP endpoint, and such requests can be multiple and sent with concurrency.
2. The server generates a task ID for each request.
3. The server serialize requests into an apply wait queue with the task ID.
4. The applier receives the requested task from the queue.
5. The applier applies the task, and trigger complete event to notify the server.
6. The server responds to the client request via HTTP.This is basically how [etcd](https://github.com/etcd-io/etcd) server works.
See https://github.com/rust-lang/wg-async-foundations/pull/209 for more discussions.
See https://github.com/gyuho/task-scheduler-examples/pull/1 for clean-up changes.