Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirements and design of thin-edge Rust extensions #1549

Merged
merged 16 commits into from
Jun 12, 2023

Conversation

didier-wenzek
Copy link
Contributor

@didier-wenzek didier-wenzek commented Oct 31, 2022

Proposed changes

Rational and discussion on how to implement and use the actor model in the context of thin-edge.

Here is the rendered document

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
  • Documentation Update (if none of the other choices apply)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue

#1407

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA (in all commits with git commit -s)
  • I ran cargo fmt as mentioned in CODING_GUIDELINES
  • I used cargo clippy as mentioned in CODING_GUIDELINES
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

design/thin-edge-actors-design.md Show resolved Hide resolved
design/thin-edge-actors-design.md Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Show resolved Hide resolved
design/thin-edge-actors-design.md Show resolved Hide resolved
design/thin-edge-actors-design.md Show resolved Hide resolved
design/thin-edge-actors-design.md Show resolved Hide resolved
design/thin-edge-actors-design.md Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
@didier-wenzek didier-wenzek changed the title Specs/plugin design.md Requirements and design of thin-edge Rust extensions Nov 21, 2022
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
/// Turn on/off logging of the messages consumed from this mailbox.
///
/// The messages are logged when returned by the `next()` method.
pub fn log_inputs(&mut self, on: bool) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The developer is expected to turn this logging ON/OFF in code? Or this API will be connected to the external logging system like the tracing logger to control it more dynamically?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sketch of the API. Logging will be turn on/off by the user.

What I'm doing with this document is to find the right owner for each feature. Giving the responsibility of message logging to the mailbox makes this feature available to all actors without having to change the actor code if we improve logging.

Comment on lines 652 to 684
and still less the unrelated message types consumed by the target as `C: Into<B>`.
Indeed, that `B` message type encompasses all the message kinds supported by the target,
and these, as the `C` type, can be completely unrelated to the source business domain that is described by the `A` type.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was hard to follow those couple of sentences.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I feel urgent the need to add a diagram this is a sign that this is not so clear even to me ;-).

I will try to come with something clearer.


/// An `Address<M>` is a `Recipient<N>` provided `N` implements `Into<M>`
impl<M: Message> Address<M> {
pub fn as_recipient<N: Message + Into<M>>(&self) -> Recipient<N> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would have been better if such type conversions are done using an externally pluggable adaptors rather than expecting an impl of Address<M>. Else, it feels like every Addresses needs to be aware of what all it can be converted into, which would lead to tight coupling between components.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that there is still room for improvement regarding these adapters. Even more, this is a key design point we need to polish.

However, note the loose type constraint: <N: Message + Into<M>>. Note also that this method returns a Recipient i.e. a dyn object abstracting the concrete address and ready to be used by an other actor unaware of the M message type.

impl C8YHandler {
    pub fn as_measurement_consumer(&self) -> Recipient<Measurement> {
         self.address.as_recipient()
    }
    pub fn as_event_consumer(&self) -> Recipient<Event> {
         self.address.as_recipient()
    }
    pub fn as_alarm_consumer(&self) -> Recipient<Alarm> {
         self.address.as_recipient()
    }
}


An actor can have no input messages and only acts as a source of output messages.
Similarly, an actor can have not output messages and be a sink of input messages.
Notable examples are respectively a source of measurements and a message logger.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a single centralised logging Actor could be a bit complex to maintain when the target of different actors could be separate log files on the disk. Sounds like an unnecessary complexity for now. Leaving the logging to individual actors themselves would be simpler, I feel.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a single centralised logging Actor could be a bit complex to maintain when the target of different actors could be separate log files on the disk. Sounds like an unnecessary complexity for now. Leaving the logging to individual actors themselves would be simpler, I feel.

I agree. That said, at this design stage, it's important to understand what would be necessary to implement such a logger.

Comment on lines 874 to 904
* With unbounded channels, there is a risk of actors being overflowed
and failing to catch up till memory exhaustion.
* Bounded channels enable back-pressure from slow actors onto fast ones,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The decision of unbounded or bounded channels might depend on the function.

It is important that we also support blocking style communication for specific actors (or messages?) so we can make the actors more composable. For some operations such as firmware, software, configuration, these generally should be processed serially to make the handling of those side-effect heavy artefacts more predictable (and generally the order does matter, so we want this to be repeatable).

Also by supporting serial processing of some messages means that operations can also be "queued" on the cloud side, and the user can be reassured that the operations will be processed in the order that they were created.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point: the decision must be delegated to the code that connects the actors.

Comment on lines 208 to 220
That said, [actix](https://docs.rs/actix/latest/actix/) is a notable actor implementation for Rust.
So, this is an option to consider,
even if I would prefer to avoid the inerrant overhead of using such a large crate.

To guide a decision toward an actor system for thin-edge, this document
* explores a design on top of tasks and channels,
* and compares this design with actix,
highlighting what would be provided out-of the box, easier or more complex.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing has been done to compare this proposal with actix.

@didier-wenzek didier-wenzek temporarily deployed to Test Pull Request April 27, 2023 12:23 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Apr 27, 2023

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
219 0 5 219 100

Passed Tests

Name ⏱️ Duration Suite
Define Child device 1 ID 0.013 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 2.493 s C8Y Child Alarms Rpi
Normal case when the child device already exists 0.972 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 2.148 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 6.13 s C8Y Child Alarms Rpi
Prerequisite Parent 19.942 s Child Conf Mgmt Plugin
Prerequisite Child 0.688 s Child Conf Mgmt Plugin
Child device bootstrapping 18.425 s Child Conf Mgmt Plugin
Snapshot from device 62.792 s Child Conf Mgmt Plugin
Child device config update 61.86 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 60.363 s Inotify Crate
Check lock file existence in default folder 1.877 s Lock File
Check PID number in lock file 1.8599999999999999 s Lock File
Check PID number in lock file after restarting the services 3.365 s Lock File
Check starting same service twice 1.576 s Lock File
Switch off lock file creation 2.125 s Lock File
Set configuration when file exists 12.597 s Configuration Operation
Set configuration when file does not exist 8.233 s Configuration Operation
Set configuration with broken url 6.367 s Configuration Operation
Get configuration 5.834 s Configuration Operation
Get non existent configuration file 5.973 s Configuration Operation
Get non existent configuration type 5.462 s Configuration Operation
Update configuration plugin config via cloud 6.068 s Configuration Operation
Modify configuration plugin config via local filesystem modify inplace 3.159 s Configuration Operation
Modify configuration plugin config via local filesystem overwrite 5.228 s Configuration Operation
Update configuration plugin config via local filesystem copy 2.932 s Configuration Operation
Update configuration plugin config via local filesystem move (different directory) 2.934 s Configuration Operation
Update configuration plugin config via local filesystem move (same directory) 3.908 s Configuration Operation
Successful firmware operation 74.162 s Firmware Operation
Install with empty firmware name 71.95 s Firmware Operation
Prerequisite Parent 22.234 s Firmware Operation Child Device
Prerequisite Child 8.547 s Firmware Operation Child Device
Child device firmware update 7.401 s Firmware Operation Child Device
Child device firmware update with cache 6.936 s Firmware Operation Child Device
Firmware plugin supports restart via service manager #1932 6.223 s Firmware Operation Child Device Retry
Update Inventory data via inventory.json 1.6680000000000001 s Inventory Update
Inventory includes the agent fragment with version information 1.315 s Inventory Update
Retrieve a JWT tokens 61.153 s Jwt Request
Mapper recovers and processes output of ongoing software update request 16.607 s Recover And Publish Software Update Message
Check running collectd 1.643 s Monitor Device Collectd
Is collectd publishing MQTT messages? 3.275 s Monitor Device Collectd
Check thin-edge monitoring 4.539 s Monitor Device Collectd
Check grouping of measurements 9.178 s Monitor Device Collectd
Update the custom operation dynamically 62.673 s Dynamically Reload Operation
Main device registration 2.066 s Device Registration
Child device registration 3.002 s Device Registration
Supports restarting the device 76.336 s Restart Device
Update tedge version from previous using Cumulocity 93.295 s Tedge Self Update
Test if all c8y services are up 125.086 s Service Monitoring
Test if all c8y services are down 51.523 s Service Monitoring
Test if all c8y services are using configured service type 122.499 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 97.557 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start 28.732 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 29.174 s Service Monitoring
Check health status of child device service 26.076 s Service Monitoring
Successful shell command with output 3.893 s Shell Operation
Check Successful shell command with literal double quotes output 3.669 s Shell Operation
Execute multiline shell command 3.532 s Shell Operation
Failed shell command 3.6470000000000002 s Shell Operation
Software list should be populated during startup 58.596 s Software
Install software via Cumulocity 48.798 s Software
Software list should only show currently installed software and not candidates 45.642 s Software
Child devices support sending simple measurements 1.72 s Child Device Telemetry
Child devices support sending custom measurements 1.557 s Child Device Telemetry
Child devices support sending custom events 1.336 s Child Device Telemetry
Child devices support sending custom events overriding the type 1.134 s Child Device Telemetry
Child devices support sending custom alarms #1699 3.544 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 1.472 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y 1.815 s Child Device Telemetry
Check retained alarms 182.039 s Raise Alarms
Thin-edge devices support sending simple measurements 1.6949999999999998 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type 1.104 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom measurements 1.048 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events 1.103 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events overriding the type 1.453 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms #1699 1.3599999999999999 s Thin-Edge Device Telemetry
Thin-edge device supports sending custom Thin-edge device measurements directly to c8y 1.674 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via c8y topic 1.782 s Thin-Edge Device Telemetry
thin-edge components support a custom config-dir location via flags 26.75 s Config Dir
Validate updated data path used by tedge-agent 0.2 s Data Path Config
Validate updated data path used by c8y-firmware-plugin 11.006 s Data Path Config
Validate updated data path used by tedge-agent 0.554 s Log Path Config
Install thin-edge via apt 58.079 s Install Apt
Install latest via script (from current branch) 31.664 s Install Tedge
Install specific version via script (from current branch) 29.071 s Install Tedge
Install latest tedge via script (from main branch) 30.325 s Install Tedge
Install then uninstall latest tedge via script (from main branch) 82.356 s Install Tedge
Support starting and stopping services 52.312 s Service-Control
Supports a reconnect 69.579 s Test-Commands
Supports disconnect then connect 59.252 s Test-Commands
Update unknown setting 44.97 s Test-Commands
Update known setting 36.661 s Test-Commands
It checks MQTT messages using a pattern 94.977 s Test-Mqtt
Stop c8y-configuration-plugin 0.223 s Health C8Y-Configuration-Plugin
Update the service file 0.169 s Health C8Y-Configuration-Plugin
Reload systemd files 0.52 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.125 s Health C8Y-Configuration-Plugin
Start watchdog service 10.284 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.119 s Health C8Y-Configuration-Plugin
Kill the PID 0.209 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 6.728 s Health C8Y-Configuration-Plugin
Compare PID change 0.001 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.329 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.291 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.151 s Health C8Y-Log-Plugin
Update the service file 0.156 s Health C8Y-Log-Plugin
Reload systemd files 0.496 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.161 s Health C8Y-Log-Plugin
Start watchdog service 10.209 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.215 s Health C8Y-Log-Plugin
Kill the PID 0.322 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 6.97 s Health C8Y-Log-Plugin
Compare PID change 0.001 s Health C8Y-Log-Plugin
Stop watchdog service 0.329 s Health C8Y-Log-Plugin
Remove entry from service file 0.175 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.238 s Health Tedge Mapper C8Y
Update the service file 0.23 s Health Tedge Mapper C8Y
Reload systemd files 1.024 s Health Tedge Mapper C8Y
Start tedge-mapper 0.193 s Health Tedge Mapper C8Y
Start watchdog service 10.576 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.231 s Health Tedge Mapper C8Y
Kill the PID 0.234 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 6.587 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.293 s Health Tedge Mapper C8Y
Remove entry from service file 0.32 s Health Tedge Mapper C8Y
Stop tedge-agent 0.375 s Health Tedge-Agent
Update the service file 0.234 s Health Tedge-Agent
Reload systemd files 1.2429999999999999 s Health Tedge-Agent
Start tedge-agent 0.234 s Health Tedge-Agent
Start watchdog service 10.350999999999999 s Health Tedge-Agent
Check PID of tedge-mapper 0.159 s Health Tedge-Agent
Kill the PID 0.312 s Health Tedge-Agent
Recheck PID of tedge-agent 6.582 s Health Tedge-Agent
Compare PID change 0.011 s Health Tedge-Agent
Stop watchdog service 0.246 s Health Tedge-Agent
Remove entry from service file 0.212 s Health Tedge-Agent
Stop tedge-mapper-az 0.202 s Health Tedge-Mapper-Az
Update the service file 0.181 s Health Tedge-Mapper-Az
Reload systemd files 0.884 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.246 s Health Tedge-Mapper-Az
Start watchdog service 10.31 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.153 s Health Tedge-Mapper-Az
Kill the PID 0.38 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 6.74 s Health Tedge-Mapper-Az
Compare PID change 0.007 s Health Tedge-Mapper-Az
Stop watchdog service 0.195 s Health Tedge-Mapper-Az
Remove entry from service file 0.122 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.177 s Health Tedge-Mapper-Collectd
Update the service file 0.204 s Health Tedge-Mapper-Collectd
Reload systemd files 0.665 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.166 s Health Tedge-Mapper-Collectd
Start watchdog service 10.166 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.167 s Health Tedge-Mapper-Collectd
Kill the PID 0.354 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 6.598 s Health Tedge-Mapper-Collectd
Compare PID change 0.002 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.242 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.179 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status 5.922 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.696 s MQTT health endpoints
c8y-configuration-plugin health status 5.862 s MQTT health endpoints
Publish on a local insecure broker 0.392 s Basic Pub Sub
Publish on a local secure broker 4.003 s Basic Pub Sub
Publish on a local secure broker with client authentication 3.975 s Basic Pub Sub
Check remote mqtt broker #1773 3.3529999999999998 s Remote Mqtt Broker
Apply name filter 0.38 s Filter Packages List Output
Apply maintainer filter 0.24 s Filter Packages List Output
Apply both filters 0.193 s Filter Packages List Output
No filters 0.215 s Filter Packages List Output
Both filters but name filter as empty string 0.321 s Filter Packages List Output
Both filters but maintainer filter as empty string 0.263 s Filter Packages List Output
Both filters as empty string 0.209 s Filter Packages List Output
Wrong package name 0.374 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.39 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.604 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 0.379 s Tedge Connect Test
tedge_connect_test_negative 0.673 s Tedge Connect Test
tedge_connect_test_sm_services 7.284 s Tedge Connect Test
tedge_disconnect_test_sm_services 60.328 s Tedge Connect Test
Install thin-edge.io 24.304 s Call Tedge
call tedge -V 0.103 s Call Tedge
call tedge -h 0.117 s Call Tedge
call tedge -h -V 0.103 s Call Tedge
call tedge help 0.09 s Call Tedge
tedge config list 0.076 s Call Tedge Config List
tedge config list --all 0.071 s Call Tedge Config List
set/unset device.type 0.366 s Call Tedge Config List
set/unset device.key_path 0.493 s Call Tedge Config List
set/unset device.cert_path 0.431 s Call Tedge Config List
set/unset c8y.root_cert_path 0.478 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.616 s Call Tedge Config List
set/unset az.root_cert_path 0.577 s Call Tedge Config List
set/unset aws.url 0.691 s Call Tedge Config List
set/unset aws.root_cert_path 0.6 s Call Tedge Config List
set/unset aws.mapper.timestamp 0.797 s Call Tedge Config List
set/unset az.mapper.timestamp 0.841 s Call Tedge Config List
set/unset mqtt.bind.address 1.012 s Call Tedge Config List
set/unset mqtt.bind.port 0.879 s Call Tedge Config List
set/unset http.bind.port 0.482 s Call Tedge Config List
set/unset tmp.path 0.537 s Call Tedge Config List
set/unset logs.path 0.513 s Call Tedge Config List
set/unset run.path 0.371 s Call Tedge Config List
set/unset firmware.child.update.timeout 0.539 s Call Tedge Config List
set/unset c8y.url 0.589 s Call Tedge Config List
set/unset az.url 0.81 s Call Tedge Config List
set/unset mqtt.external.bind.port 0.66 s Call Tedge Config List
mqtt.external.bind.address 0.564 s Call Tedge Config List
mqtt.external.bind.interface 0.703 s Call Tedge Config List
set/unset mqtt.external.ca_path 0.522 s Call Tedge Config List
set/unset mqtt.external.cert_file 0.362 s Call Tedge Config List
set/unset mqtt.external.key_file 0.368 s Call Tedge Config List
set/unset software.plugin.default 0.378 s Call Tedge Config List
Get Put Delete 2.825 s Http File Transfer Api
Set keys should return value on stdout 0.177 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.399 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.459 s Tedge Config Get
Set configuration via environment variables 1.166 s Tedge Config Get
Set unknown configuration via environment variables 0.137 s Tedge Config Get

@didier-wenzek didier-wenzek marked this pull request as ready for review June 7, 2023 15:37
@didier-wenzek
Copy link
Contributor Author

Just pushed a fixup to apply a patch from @reubenmiller to fix markdown formatting issues.

Copy link
Contributor

@reubenmiller reubenmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Nice documentation as always. Though since it is a cross cutting topic, please wait for approvals from the other relevant reviewers before merging.

design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
* react to messages by updating their state, by sending messages to other actors, and possibly by spawning new actors.

All the interactions between actors are materialized by messages.
* Synchronous method invocations are replaced by asynchronous message exchanges.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completely replacing synchronous invocations isn't fully realistic, right? Which we learned from our own experience with C8yHttpProxyActor. Although, we can argue that the message exchanges are still asynchronous and we're using a synchronous wrapper built over it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I mean is that there no direct method invocations between entities managing a state.

  • Without actors the code of the callee is executed in the thread of the caller. The caller has to wait for an exclusive access on the callee and then to wait the response from the callee.
  • With actors, the callee process the request in its own thread. The caller can send requests without exclusive access and can but is not force to await the response of the callee.

* An actor's peer simulator can be as simple as a pre-registered stream of messages,
or as sophisticated as an error injector.
* In a pure actor model setting, all interactions with the system are done via actors,
and can be simulated, including the clock and the file system.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about Composability as well? As this model lets us bundle feature sets in different shapes and sizes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what is listed under Flexibility. I agree that both applies.

design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
design/thin-edge-actors-design.md Outdated Show resolved Hide resolved
@didier-wenzek
Copy link
Contributor Author

I fixed all the grammar errors highlighted by @albinsuresh and applied most of his suggestions.

Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
See: thin-edge#1622

Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
- Why actors?
- Why yet another framework?
- Key design ideas
- Requirements
- Key design issues
- Appendix: A taste of using actors in Rust

Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
- Document the main design decision
- Detail key design aspects
- Remove things that have been implemented differently
- Remove the example from the appendix

Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
@didier-wenzek didier-wenzek temporarily deployed to Test Pull Request June 9, 2023 14:35 — with GitHub Actions Inactive
@didier-wenzek didier-wenzek merged commit 848f5f4 into thin-edge:main Jun 12, 2023
17 checks passed
@didier-wenzek didier-wenzek deleted the specs/plugin-design.md branch June 12, 2023 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants