-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add initial support to pub/sub
- Client subscription - refactor: Move as much as possible out of `mod.rs` files - refactor: Move some client logic into a Tower Service - docs: Add extra doc strings - docs: Move top level docs into `src/lib.rs` - docs: Add a http server to preview the docs - remove Cargo.lock from main library - refactor: Change to use Arc<AppData> in most hooks - Add async background task
- Loading branch information
Showing
44 changed files
with
3,392 additions
and
1,305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
/target | ||
.vim/ | ||
.DS_Store | ||
/Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# {{crate}} | ||
|
||
{{readme}} | ||
|
||
--- | ||
|
||
## Roadmap | ||
|
||
There are a few things that must be done before v0.1.0: | ||
|
||
- [x] Naive server/client protocol | ||
- [x] Basic cluster support | ||
- [x] Basic placement support | ||
- [x] Object self shutdown | ||
- [x] Naive object persistence | ||
- [x] Public API renaming | ||
- [x] Reduce Boxed objects | ||
- [x] Create a Server builder | ||
- [x] Remove need to use `add_static_fn(FromId::from_id)` -> Removed in favour of `Registry::add_type` | ||
- [x] Support service background task | ||
- [x] Pub/sub | ||
- [x] Examples covering most use cases | ||
- [x] Background async task on a service | ||
- [x] Background blocking task on a service (_see_ [black-jack](./examples/black-jack)) | ||
- [x] Pub/sub (_see_ [black-jack](./examples/black-jack)) | ||
- [ ] Re-organize workspace | ||
- [ ] Allow `ServiceObject` trait without state persistence | ||
- [ ] Feature: Create server from config | ||
- [ ] Bypass clustering for self messages | ||
- [ ] Bypass networking for local messages | ||
- [ ] Move all the client to user tower | ||
- [ ] Remove the need to pass the StateSaver to `ObjectStateManager::save_state` | ||
- [ ] Error and panic handling on life cycle hooks (probably kill the object) | ||
- [ ] Handle panics on messages handling | ||
- [ ] Include registry configuration in Server builder | ||
- [ ] Create a getting started tutorial | ||
- [ ] Cargo init | ||
- [ ] Add deps (rio-rs, tokio, async_trait, serde, sqlx - optional) | ||
- [ ] Write a server | ||
- [ ] Write a client | ||
- [ ] Add service and messages | ||
- [ ] Cargo run --bin server | ||
- [ ] Cargo run --bin client | ||
- [ ] Life cycle | ||
- [ ] Life cycle depends on app_data(StateLoader + StateSaver) | ||
- [ ] Cargo test? | ||
- [ ] Make all sql statements compatible with sqlite, mysql and pgsql | ||
- [ ] Add more extensive tests to client/server integration | ||
- [ ] Increase public API test coverage | ||
- [ ] Client/server keep alive | ||
- [ ] Reduce static lifetimes | ||
- [ ] 100% documentation of public API | ||
- [ ] Placement strategies (nodes work with different sets of trait objects) | ||
- [ ] Dockerized examples | ||
- [ ] Add pgsql jsonb support | ||
- [ ] Add all SQL storage behind a feature flag (sqlite, mysql, pgsql, etc) | ||
- [ ] Supervision | ||
- [ ] Ephemeral objects (aka regular - local - actors) | ||
- [ ] Remove magic numbers | ||
- [ ] Object TTL | ||
- [ ] Matrix test with different backends | ||
- [?] Support 'typed' message/response on client | ||
- [ ] Support ephemeral port | ||
- [ ] Remove the need for an `Option<T>` value for `managed_state` attributes (as long as it has a 'Default') | ||
- [ ] Code of conduct |
Oops, something went wrong.