Support executor customization of client batch request
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 54
- Forks
- 26
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 9
Description
Checklist
- I agree to the terms within the OpenFGA Code of Conduct.
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
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 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