This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Async batch loader and Spring threading #561
Unanswered
VsevolodGolovanov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The very useful example-request-scoped-dataloader shows here how to create a batching data loader. But unexpectedly it uses CompletableFuture#supplyAsync - since this is a Spring Boot example, shouldn't it put this in a separate Component with an
@Async
method instead to get a proper Spring managed thread? Or at least pass one of the Spring task executors to supplyAsync?Beta Was this translation helpful? Give feedback.
All reactions