Skip to content

Conversation

@AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Oct 20, 2025

Better type separation between keys and key prefix builders leads to removal of unnecessary "expect()" calls, increased efficiency (Option adds 8 bytes on each field on the key), and safer code. You can only deserialize full keys, and you can serialize key builders and keys alike.


Stack created with Sapling. Best reviewed with ReviewStack.

@github-actions
Copy link

github-actions bot commented Oct 20, 2025

Test Results

  7 files  ±0    7 suites  ±0   2m 36s ⏱️ +4s
 47 tests ±0   47 ✅ ±0  0 💤 ±0  0 ❌ ±0 
200 runs  ±0  200 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 500dcee. ± Comparison against base commit 4e1134e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Nice improvements @AhmedSoliman. Thanks a lot for improving the TableKey types. LGTM. +1 for merging :-)

This introduces `restate-lite` a crate that provides restate core functionality as a library. The library is intended to be used in developement or testing use cases. Therefore, it uses defaults tuned for for that purpose.
A developer-focused version of restate that's embedded into the restate CLI. It starts restate on an ephemeral temporary directory that's auto-deleted after Ctrl+C.
1. Supports --use-random-ports
2. Emits very clean output, it doesn't show the server log. Just a table of addresses.
3. Opens the admin UI automatically on startup in the browser
4. Runs the Counter service on a random port and auto-registers it by default so you can play with the UI immediately with that service.
5. Supports --retain to persist the temporary directory (meant to be used in debugging) and currently it doesn't support choosing your own directory
Better type separation between keys and key prefix builders leads to removal of unnecessary "expect()" calls, increased efficiency (Option adds 8 bytes on each field on the key), and safer code. You can only deserialize full keys, and you can serialize key builders and keys alike.
@AhmedSoliman AhmedSoliman merged commit 500dcee into main Oct 21, 2025
55 checks passed
@AhmedSoliman AhmedSoliman deleted the pr3917 branch October 21, 2025 16:36
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants