Orcher SDK 0.18.1 publishes its Rust client for durable workflows
The Rust package distinguishes workflows, tasks, actors and workers. Its release entry and version-specific documentation build are available.
Separate the workflow from its tasks
Orcher SDK 0.18.1 reached crates.io on November 29. A separate Docs.rs build produced documentation for the release. The Rust package describes a durable workflow SDK and identifies workflows, tasks, actors, workers and a client as distinct roles. In an archive service, for example, a client accepts a file request, a workflow follows its progress and a worker processes the next task. When downloading, conversion and email delivery all happen inside one function, failures are harder to map to one precise stage. The two records establish that the release is available for evaluation.
Interrupt the worker at known points
A successful job alone says little about recovery. Try a file workflow that reads an input, writes a digest and records a test notification. Stop one worker before the digest task starts and another after the file is written. Restart the worker and record which steps are called again and how many notifications appear. This separates restarting a whole job from resuming after a recorded step. Attach the workflow identifier to each output, so an unexpected second file can be traced to its attempt. Check the actual side effects as well as the reported completed status.
Give actor state an explicit owner
An actor model can represent work or state changes grouped by a key. In the archive example the key might identify a folder. Send two requests with the same key and one with a different key, then record the transitions and compare them with the order your application needs. When separate operations write the same object, also inspect the resulting storage record. The word actor does not specify every ordering expectation a particular application may have. That expectation belongs in a fixture covering the SDK, its configuration and the selected persistence layer.
Cross a version boundary with a job in progress
A test that starts only new jobs may miss records the old SDK left in progress. Start a disposable archive job with the previous version, pause it halfway, then try the new worker and compare the state record, output and errors. In a rollout that changes the client first, also exercise the new client against the prior worker. Recording both versions beside each workflow identifier helps explain a failure. Use those results to choose whether the application can deploy gradually or needs coordinated updates.
Use the build record for the claim it supports
The Docs.rs receipt matches the version registered on crates.io and shows that a documentation build completed for its target. It does not measure recovery time or establish whether a particular application emits a notification only once. In the trial, inspect the final workflow status, the output file name and digest, and the number of recorded notifications. Keeping them separate makes it possible to see a duplicate side effect behind a superficially successful call. A worker identifier and timestamps help compare the order of events when the trial is repeated.
A counter for repeated work
Use a local file in place of a real notification service. Record the workflow identifier and task number on each call. If a restart creates a second line with the same identifier, check the recovery boundary. Also record when the output first becomes accessible so a slow queue does not look like lost state.
Photo · Derrick Coetzee from Berkeley, CA, USA / Wikimedia Commons ↗ · CC0
Sources and verification
- Primary sourcecrates.io ↗
- Technical documentDocs.rs sürüm belgeleri ↗
- Reporting / cross-checkDocs.rs derleme kaydı ↗
Reader discussion
What is the most important unanswered question about this topic?
No comments yet. Be the first to contribute.
Write a comment