8000 Support different coroutine models in workflows and activities · Issue #1845 · temporalio/sdk-java · GitHub
[go: up one dir, main page]

Skip to content
Support different coroutine models in workflows and activities #1845
Open
@cretz

Description

@cretz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0