Support micro batching in channels

Open
#128 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
backend

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.

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.

Dominant language
Java
Stars
423
Forks
16
Avg merge
15h 5m
Merged PRs (30d)
17

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.

More from softwaremill/jox

All issues in softwaremill/jox

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.