typelevel / typelevel/cats-effect

Add (best-effort) stealing API to polling system

Open
#4,008 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:mushroom: enhancement
Dominant language
Scala
Stars
2.2k
Forks
576
Avg merge
2d 11h
Merged PRs (30d)
18

Description

In https://github.com/typelevel/cats-effect/discussions/3873#discussioncomment-8356851 we decided that we will support stealing for load-balancing. Thus, we should add an API to the polling system that allows completed I/O to be stolen. Not all polling systems will be able to implement this, but hopefully some of them can, such as io_uring, see https://github.com/typelevel/cats-effect/discussions/3873#discussioncomment-7608898.

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 reading discussions 3873, especially the linked comments, and inspect the polling system entry points. Determine the API needed to steal completed I/O and which polling implementations, such as io_uring, can support it; done means supported systems provide best-effort stealing while unsupported systems remain valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.