rename worker to actor

This commit is contained in:
Timur Gordon
2025-08-05 15:44:33 +02:00
parent 5283f383b3
commit 89e953ca1d
67 changed files with 1629 additions and 1737 deletions

View File

@@ -12,29 +12,26 @@ Hero is a program that runs scripts in contexts on behalf of a peer. Hero aims t
## Core
In its core, a [supervisor](#supervisor) dispatches jobs to execute scripts to [workers](#worker) over redis. Workers spawn appropriate engine instances to execute scripts within the defined [confines]() of the job.
In its core, a [supervisor](#supervisor) dispatches jobs to execute scripts to [actors](#actor) over redis. Actors spawn appropriate engine instances to execute scripts within the defined [confines]() of the job.
### Components
### [Supervisor](./core/supervisor)
#### [Supervisor](./core/supervisor)
Component responsible for distributing jobs to actors over Redis.
Component responsible for distributing jobs to workers over Redis.
#### [Engine](./core/engine)
A process that runs a script in a confined environment.
#### [Job](./core/job)
### [Job](./core/job)
A unit of work that executes a Rhai or Hero script.
#### [Worker](./core/worker)
### [Actor](./core/actor)
An entity that processes jobs dispatched by the supervisor.
## Interfaces
The backend supports an OpenRPC interface over Websocket and Unix sockets, and a wasm app interface for simple debugging logging etc.
### Websocket
### Unix
### Unix
### WASM