batch processors.

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

batch processors.

Postby rmidata » Fri Jul 30, 2010 1:02 pm

Hi!
We are beginning to use batch processors and everything works great, but my question is:
How it affects the performance of the server if every 7 seconds restart the work, as it says in the example of batchprocessor1. It is possible to reset the list of jobs in such a short time.
Thank you.
Roberto Diez.
Interdata Software.
SAN Partner
Santa Fe - Argentina.
Roberto Diez.
Interdata Software.
Santa Fe, Argentina.
User avatar
rmidata
 
Posts: 42
Joined: Thu Jul 09, 2009 10:26 pm
Location: Santa Fe, Argentina.

Re: batch processors.

Postby Foobrother » Fri Jul 30, 2010 3:24 pm

It really depends on what you do when you reset your job and how many jobs you have.
If your jobs are scheduled to run once a day at a specific time, for example, it will almost not affect the performance of the server as it just reset the jobs list.

Note that resetting jobs every 7 sec is only needed if you expect users to add new jobs very very frequently!
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: batch processors.

Postby sbutler » Fri Jul 30, 2010 5:04 pm

If you have it running every 7 seconds, and each job takes 10 seconds to run, then you'll have a problem. It will neve run as often as you want and you end up with a back log. If the job takes less than 7 seconds, then you will be fine.

If you want the best of both worlds, use a batch processor with the new Headless Client plugin. so the batch processor finds the jobs that need to be ran, and spawns a new headless client for each job. So you can handle multiple jobs simultaneously.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 7 guests