temporalio / temporalio/sdk-rust

[Feature Request] More efficient large payload handling

Open
#226 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
523
Forks
161
Avg merge
1d 7h
Merged PRs (30d)
67

Description

Right now it's possible (in particular for local activities, which is why I'm writing this) to clone large payloads inside events during history lookahead (and possibly also application).

Ideally that would be avoided as it could cause substantial overhead during replay. Create a bench test to verify and then improve.

Possible fixes:

  • Rc/Arc Payload(s) types - also would require a custom HistoryEvent version (maybe prost annotation?)
  • Never clone HistoryEvents, always use refs

This might require https://github.com/temporalio/sdk-core/issues/180 to be done, as it probably allows using Rc more freely.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing history lookahead and application paths where large Payloads or HistoryEvents may be cloned. Create a benchmark for replay or lookahead overhead, then compare it while evaluating the proposed Rc/Arc Payload approach versus using references. Check whether sdk-core issue #180 is required before proceeding.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.