Async method followed by a parallelly executed method in Java 8
问题 After spending the day of learning about the java Concurrency API, I still dont quite get how could I create the following functionality with the help of CompletableFuture and ExecutorService classes: When I get a request on my REST endpoint I need to: Start an asynchronous task (includes DB query, filtering, etc.), which will give me a list of String URLs at the end In the meanwhile, responde back to the REST caller with HTTP OK, that the request was received, I'm working on it When the