temporalio / temporalio/sdk-java
Support different coroutine models in workflows and activities
Open
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 funcalls (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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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