On Thu, 10 Jan 2002, Tod Harter wrote:
> > Yep. And I think Cocoon2 might have too much focus on being smarter than
> > the programmer in this case, whereas in fact we need to let the programmer
> > choose the strategy (if we go that route).
>
> I'm all for DUMB systems to tell you the truth. My philosophy is that
> computers are about as smart as your average flatworm, and should be
> relegated to grunt work only. I
OK, I really want to take this to axkit-b2b-devel, but you're not
subscribed there yet, so I'll just make this last response here...
How about this. The pipeline would basically look like this:
S ---- T -- C -- R
/
o --------
S = Source
T = Transformer
R = Response/Serialiser
o = Cache Decider
C = Cache Writer and Feeder
So what happens is, a request for S comes in. First thing that happens is
AxKitB2B checks with o if we should use it or not (if there are multiple
o-like choosers, we check them in turn). Now o has some logic in it to
decide whether to use the cache or not [1]. If it decides to use the
cache, it bypasses S and T altogether, and goes straight to C. C pulls the
SAX events from the cache and passes them on to R.
If o decides not to cache, we start at S by parsing the resource
associated with the URI, and forwards the SAX events through to T (a
transformer, probably XSLT or something else), which in turn forwards
through to C. Now if C is in non-feeding mode (which is its default
behaviour, so no "configuring" necessary), it simply caches all the SAX
events, and then forwards them on to R, like a proper SAX filter is
supposed to do.
Anyway, that's the idea. From there it's just a matter of code (and to be
honest, it fits into what I've already coded pretty darn well).
[1] We make it so the logic bit can either take TTL or mtime or some
custom code defined in the configuration of the pipeline.
--
<!-- Matt -->
<:->Get a smart net</:->
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]