How restatedev/restate works
Restate is a distributed runtime for durable execution, reliable communication, promises and timers, consistent state, and service introspection. A typical request enters through HTTP or Kafka, is handled by a partition worker, and relies on durable state and log storage to recover progress; the CLI and admin API provide operational control and inspection. The README documents product capabilities, while the sampled source and SOURCE INDEX expose selected wiring. Some runtime links and integrations are therefore omitted rather than inferred.
Main entry points: partition_processor_manager.rs Partition Workers · mod.rs Admin REST API · invocation_state_machine.rs Invocation State · connection_manager.rs Node Connections
Components 20
Request Entry
- HTTP Ingress
crates/ingress-http/src/server.rs - Request Handlers
crates/ingress-http/src/handler/mod.rs - Kafka Consumer
crates/ingress-kafka/src/consumer_task.rs
Durable Execution
- Invocation State
crates/invoker-impl/src/invocation_state_machine.rs - Partition Workers
crates/worker/src/partition_processor_manager.rs - Queue Scheduler
crates/vqueues/src/scheduler/resource_manager.rs
Persistence
- Partition Store
crates/partition-store/src/partition_store_manager.rs - Partition Database
crates/partition-store/src/partition_db.rs - RocksDB Manager
crates/rocksdb/src/db_manager.rs - Durable Log
crates/bifrost/src/bifrost.rs - Log Server
crates/log-server/src/service.rs
Cluster Services
- Node Connections
crates/core/src/network/connection_manager.rs - Peer Handshake
crates/core/src/network/handshake.rs - Metadata Management
crates/core/src/metadata/manager.rs
Admin and Insight
- Admin REST API
crates/admin/src/rest_api/mod.rs - Restate CLI
cli/src/app.rs - Distributed Query
crates/storage-query-datafusion/src/remote_query_scanner_manager.rs - Remote Scan Client
crates/storage-query-datafusion/src/remote_query_scanner_client.rs - Admin Web UI
crates/admin/src/web_ui.rs
Other components
- Service Caller
Connections 18
- Service Caller → HTTP Ingress: sends requests
README.md - HTTP Ingress → Request Handlers: routes requests
crates/ingress-http/src/server.rs - Service Caller → Kafka Consumer: publishes events
README.md - Request Handlers → Invocation State: starts invocations
README.md - Kafka Consumer → Invocation State: starts invocations
README.md - Invocation State → Partition Workers: durable execution
README.md - Partition Workers → Partition Store: persists progress
README.md - Partition Workers → Queue Scheduler: schedules work
README.md - Partition Store → Partition Database: opens databases
crates/partition-store/src/partition_store_manager.rs - Partition Database → RocksDB Manager: uses storage
- Partition Workers → Durable Log: records log
README.md - Durable Log → Log Server: replicated log storage
- Node Connections → Peer Handshake: performs handshake
crates/core/src/network/connection_manager.rs - Node Connections → Metadata Management: exchanges cluster metadata
README.md - Restate CLI → Admin REST API: operates services
README.md - Admin REST API → Admin Web UI: serves introspection
README.md - Admin REST API → Distributed Query: exposes SQL queries
README.md - Distributed Query → Remote Scan Client: opens remote scans
crates/storage-query-datafusion/src/remote_query_scanner_manager.rs