Re: Architecture ideas for batch processing?
- From: "Aquila Deus" <aquila.deus@xxxxxxxxx>
- Date: 11 Jun 2005 21:58:37 -0700
Alan Meyer wrote:
> I'm working on an architecture for a fairly large scale system
> in Java. User interactions will be through JSP and servlets,
> but there is also a big batch processing component with multiple
> jobs that can run for minutes to hours, and some of them running
> in parallel.
>
> I'm looking for architecture suggestions for the batch job
> portion.
>
> Specifically, does anyone have opinions on running jobs as
> separate threads in a single virtual machine, vs running
> multiple independent JVMs?
>
> A single JVM has the advantage of less system overhead and
> easier inter-thread communication - which may or may not turn
> out to be useful. But it means that if one job crashes it can
> bring the others down with it. It also means that if one job
> goes into a loop and has to be terminated, the operator will
> have no choice but to kill everything.
>
> Multiple independent jobs looks more robust, but Java's penchant
> for swallowing memory may make this significantly less
> efficient.
>
> Anyone have experience or opinions on this?
>
> Any other good ideas for someone doing batch processing in Java?
>
> Anyone know of open source or commercial toolkits of special
> interest for batch processing?
Multi-JVM. If you worry about crash, multi-process is the only solution
- even .NET's Application Domain cannot ensure 100% isolation inside a
process.
memory problem could be solved later, but a single-process solution has
failed since the beginning.
However, most developers of java application servers wouldn't agree
with me :-)
.
- References:
- Architecture ideas for batch processing?
- From: Alan Meyer
- Architecture ideas for batch processing?
- Prev by Date: Re: Architecture ideas for batch processing?
- Next by Date: Re: Architecture ideas for batch processing?
- Previous by thread: Re: Architecture ideas for batch processing?
- Next by thread: Re: Architecture ideas for batch processing?
- Index(es):
Relevant Pages
|