Skip to content

Does retrofit support virtual thread pool #4681

Description

@XW512

Hello, currently, Spring Boot 3 and JDK 21 support virtual threads, which perform exceptionally well in efficiently handling I/O-intensive tasks. When blocking operations (such as network requests, database queries) occur, virtual threads will automatically suspend and release the underlying platform threads, allowing the latter to continue executing other tasks, thereby significantly improving throughput. Can Retrofit support virtual threads? I think it would be beneficial to distinguish between I/O-intensive and CPU-intensive tasks. For I/O-intensive tasks, virtual threads can enhance throughput, which would be a significant improvement for my service

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions