temporalio / temporalio/sdk-java

Refactor ReplayWorkflowContext out of WorkflowThread

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
433
Forks
249
Avg merge
5d 6h
Merged PRs (30d)
26

Description

There should be some sort of a generic interceptor that is invoked upon thread initialization instead of the hardcoded dependencies like:

https://github.com/uber/cadence-java-client/blob/cbe3706e2094e0abe4855b9afad1d58c86d7adfe/src/main/java/com/uber/cadence/internal/sync/WorkflowThreadImpl.java#L80

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 in src/main/java/com/uber/cadence/internal/sync/WorkflowThreadImpl.java around line 80, then trace how ReplayWorkflowContext and other hardcoded dependencies are used during thread initialization. Define the generic interceptor boundary and verify that initialization no longer depends on those hardcoded dependencies while preserving existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.