openfga / openfga/java-sdk

Support executor customization of client batch request

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

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
54
Forks
26
Avg merge
2d 7h
Merged PRs (30d)
9

Description

Checklist
Describe the problem you'd like to have solved

OpenFgaClient creates a new executor on client batch api request
https://github.com/openfga/java-sdk/blob/a7fa8843a1d24605bf769d411bda26875b7ce610/src/main/java/dev/openfga/sdk/api/client/OpenFgaClient.java#L616

We can't configure thread pool to support virtual thread or graceful shutdown.

Describe the ideal solution

Use injected executor or provide customizer

Alternatives and current workarounds

No response

References

No response

Additional context

No response

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 in src/main/java/dev/openfga/sdk/api/client/OpenFgaClient.java around line 616, where the client creates an executor for batch requests. Read the surrounding batch API flow and determine how an injected executor or customization point should be exposed. Done means callers can configure executor behavior for batch requests without relying on a newly created pool.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.