softwaremill / softwaremill/jox
Support micro batching in channels
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 423
- Forks
- 16
- Avg merge
- 15h 5m
- Merged PRs (30d)
- 17
Description
It'd be nice to be able to receive (or send) multiple values at once from the channel, something like channel.receive(n). For the case when n elements are not available, there could be an overloaded version channel.receive(n, duration) and even channel.receive(n, shouldBlock); shouldBlock=false would immediately return a batch with fewer than n elements.
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 locating the channel receive and send APIs in the jox repository and review their existing tests. Compare how blocking, timeouts, and non-blocking operations are currently represented before defining the batch API semantics. Done means the supported receive and send batching behavior is implemented and covered by tests, including incomplete batches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100