Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to execute a long running task for multiple web users

  1. #1
    Junior Member
    Join Date
    Jan 2023
    Location
    India
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up How to execute a long running task for multiple web users

    Considering it has been years since I worked in pure Java.

    My requirement is to develop a data report management web application that pulls data from 3rd party application using their APIs.
    In this on a new user registration, first the user's whole history of data from the 3rd party application should be loaded. This takes approx 15 to 20 minutes.

    What I am looking for is... This long process should run asynchronously without holding back the user in the same page.

    What happened is.. I used Thread, but whenever a user registers the data pulling process of the previously initiated user is interrupted.

    Now am checking if I can use Spring Batch for this.

    If you could point me in the right direction. Thanks in advance

  2. #2
    Junior Member
    Join Date
    Feb 2025
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to execute a long running task for multiple web users

    If your management system is quite simple, I think using JavaScript for agile development would be more suitable for you. For the front end, you can quickly build the interface using Element UI or Material UI, and you can use react or vue for the development framework.

    Developing with Node.js and MySQL is very straightforward and is more suitable for small private systems. Furthermore, if you don't have high requirements for performance and memory, you can fully host it in the cloud and take advantage of Cloudflare's edge computing capabilities.

Similar Threads

  1. Kill Long Running Thread
    By jyotiv in forum Computer Support
    Replies: 1
    Last Post: September 8th, 2021, 06:00 AM
  2. [ASK]How to use JProgressBar for running Task / method()?
    By vikar in forum Java Theory & Questions
    Replies: 1
    Last Post: November 24th, 2013, 05:32 AM
  3. Replies: 1
    Last Post: October 25th, 2013, 10:43 PM
  4. how to execute multiple different queries in one execute?
    By Sakina in forum JDBC & Databases
    Replies: 1
    Last Post: June 9th, 2012, 09:40 AM
  5. Problem with LogIn - Multiple users
    By justyStepi in forum AWT / Java Swing
    Replies: 5
    Last Post: April 28th, 2012, 12:18 PM

Tags for this Thread