On Fri, Oct 28, 2011 at 5:06 PM, Justin Deoliveira <[email protected]> wrote:
> Sounds pretty interesting. The general approach all sounds good. Although
> you lost me at the part about streaming and result persistence. Admittedly I
> know very little about how the WPS works. How is it a process will exit
> without doing anything? Is the data not being "pulled" in that thread?

Nope, good processes return a "processing feature collection", which actually
is an empty container which will process the results only as you iterate over it
(to scale up, if we keep all of the results in memory we'll OOM with large
result set).
So many process return instantly, they actually start doing stuff as you call
next() on the iterator (possibly only computing the next feature), which happens
only while encoding the results in xml or whatever chosen output format.

> Aside from that, there is a general comment that the number of components
> that do their own thread/job/task management seems to be growing... Although
> a few them are still just community modules. I wonder if its worth at some
> point trying to come up with a central task manager of sorts. If the task
> manager you come up with for WPS processes is generic enough it might be
> worth trying to throw it in the core for other components to use.

I see... hum... due to handling the encoding and some other WPS specific
stuff I do not believe it's reusable.

I believe that if we see significant similarities between the various approaches
we can roll a base/helper/reusable class later

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to