rename worker to actor
This commit is contained in:
23
README.md
23
README.md
@@ -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
|
Reference in New Issue
Block a user