Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8202959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:22:39+00:00 2026-06-07T07:22:39+00:00

I am currently evaluating various concurrency solutions to solve a business problem. The use

  • 0

I am currently evaluating various concurrency solutions to solve a business problem. The use case is akin to the “embarassingly-parallel” algorithim.

Basically for a single user request, we need to retrieve data from multiple different data sources before computing the response. Currently all 3 DAO calls are made serially but have no inter dependencies so can be made in parallel.

Solutions implemented so far:

  • java.util.concurrent.ExecutorService using Callables and Futures
  • org.springframework.scheduling.annotation.Async to enable spring manage the thread pool but sill allow me to make aysnchronous calls
  • Akka (deemed overkill) for our relatively simple use case

Last framework I wanted to evaluate was Java ForkJoin framework, I can see multiple examples of use of RecursiveTasks, but my use case is not recursive in nature so doesnt fit the model:
if task is small enough
do it
else
split it and recursively call same method (i.e. divide and conquer)

My use case is, split task into 3 tasks. fork all 3 and join again. Is this even a valid use case for the ForkJoin implementation? Or should i stick with the generic ExecutorService implementation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:22:41+00:00Added an answer on June 7, 2026 at 7:22 am

    The advantage of an ExecutorService is that it can keep thread pool. So in your case, for multiple consecutive calls, the threads will be reused, which saves the OS some cycles to stop and create new threads.

    The further advantage of the ForkJoinPool, is that it can ‘steal’ work. AFAIK, what it means is that it allows one thread that has finished a task to immediately execute another task with much less overhead than the ExecutorService.

    In your case, the advantage of the ForkJoinPool seems minimal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently evaluating Install4J for my company. We have a use case where
I'm currently evaluating possible solutions to the follwing problem: A set of data entries
Am currently evaluating the best RIA technologies to use for building a new e-commerce
I am currently evaluating JMS and I don't get what I could use it
I am currently evaluating possible solutions to limitations in Microsoft's Test Manager 2010 TestStep
we are currently evaluating JPA for our persistence unit and we got a problem
I'm currently evaluating the technologies we want to use for our next project. It
I'm currently evaluating the use of ADO.NET for a C++ application that currently uses
I'm currently evaluating the MSF for CMMI process template under TFS for use on
I am currently evaluating different source control solutions for work, and have a few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.