-
processing additional data when program is running
What's up guys? I need some suggestions here. I am writing a program that
will run in the background. An user will insert data through a user interface
window. When data is inserted in my table, the program is going to be trigger
and process that data. My problem is what will happen if user enter more
data while the program is running. I don't want another process to run.
If 50 users enter data one after another, then i will have 50 process running
and that will kill the machine.
Does anybody have any suggestion on how i can implement a program that runs
in the background and wait for user data without firing multiple process
everytime data is enter. how can i make the program handle the data that
was enter while the program is processing other data? remember, i don't
want to trigger a process for every user that enter data. Also, it is possible
that two users enter data almost at the same time. how can i handle this?
any suggestions. thanks
-
Re: processing additional data when program is running
Hi,
I think you can try to put the information in queue, and read the queue depending
on the user session or any kind of flag which u might have set.
Advanced Queuing might be of some help to you I beleive.
Do let me know how did u do this, if at all you implement this kind of situation.
HTH
SS
"Ervin Rodriguez" <ervin06@netscape.net> wrote:
>
>What's up guys? I need some suggestions here. I am writing a program that
>will run in the background. An user will insert data through a user interface
>window. When data is inserted in my table, the program is going to be trigger
>and process that data. My problem is what will happen if user enter more
>data while the program is running. I don't want another process to run.
> If 50 users enter data one after another, then i will have 50 process running
>and that will kill the machine.
>
>Does anybody have any suggestion on how i can implement a program that runs
>in the background and wait for user data without firing multiple process
>everytime data is enter. how can i make the program handle the data that
>was enter while the program is processing other data? remember, i don't
>want to trigger a process for every user that enter data. Also, it is possible
>that two users enter data almost at the same time. how can i handle this?
> any suggestions. thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks