temporalio / temporalio/sdk-java

Support different coroutine models in workflows and activities

Open
#1,845 8 comments 26 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

Describe the solution you'd like

Need to several things:

  • May need to slightly abstract workflow concurrency impl to support (but may not)
  • Update Kotlin project to add support for Kotlin coroutines in workflows and activities as Kotlin suspend fun calls (may need to be opt-in in some way). There is an internal POC implementation from @mfateev we can leverage here.
  • Create a new Java 21+ only "temporal-virtual-threads" project that uses virtual threads for workflow concurrency and runs activities in virtual threads (may need to be opt-in in some way)

This is kinda a big project, so some discussion should happen first. The above is just speculation about what to do.

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 reviewing the workflow concurrency implementation and the Kotlin project, then examine the internal coroutine proof of concept referenced in the issue. The proposed work also includes a new Java 21+ temporal-virtual-threads project. Done would require an agreed design and support for the requested coroutine and virtual-thread models, but no specific files or tests are named.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.