dora-coordinator

Crates.iodora-coordinator
lib.rsdora-coordinator
version0.3.6
sourcesrc
created_at2022-06-24 12:23:09.305085
updated_at2024-08-28 05:14:25.531319
description`dora` goal is to be a low latency, composable, and distributed data flow.
homepage
repositoryhttps://github.com/dora-rs/dora/
max_upload_size
id612374
size58,864
Core (github:dora-rs:core)

documentation

https://dora.carsmos.ai

README

Coordinator

Prototype for a process/library-based dora-rs implementation, instead of framework-based. The idea is that each operator is compiled as a separate executable. The dora-coordinator runtime is responsible for reading the dataflow descriptor file and launching the operators accordingly. The operators use a common library called dora-api, which implements the communication layer based on zenoh.

This approach has the following advantages:

  • Less overhead
    • No data transfer between a runtime and the operator
    • The compiler can inline and optimize the full process
  • More flexibility
    • Operators can be sync or async
    • They can decide how many threads and which execution model they use
    • The OS ensures fair share of resources (e.g. CPU time) -> no need to cooperate with other operators
    • Operators get all inputs immediately -> no need for input rules
    • Keeping local state is easily possible
  • Separate address spaces
    • The operators are isolated from each other.

There are drawbacks too, for example:

  • Less control
    • Processes run independently -> need to cooperate with the runtime, e.g. on stop signals
    • Operator migration is more difficult
  • Operators are always isolated
    • No way of using in-memory channels
    • Local sockets and shared memory should be still possible
Commit count: 2681

cargo fmt