David Binger wrote: > On Feb 9, 2005, at 11:14 AM, Graham Fawcett wrote: > >> Has anyone considered, demoed or implemented a session-affinity >> mechanism in mod_scgi? In other words, once a "session" has been >> instantiated for a user from an SCGI process, all future requests in >> that session will be handled by the same process. (Definition of >> "session" is intentionally vague, since I'm fishing.) > > Would the purpose be to get the process > that probably has the best cache for this session, > or are you thinking of some kind of guaranteed condition? Good question. Although I could see caching benefits, I'm looking for the guaranteed condition. I would like keep a given (rather large) dataset in process memory, bound to a user session. I'd like to accomplish this with multiple SCGI processes, without an ACID database, and without my own IPC between SCGI processes. Since only one user session may have a given dataset at one time, a session-affinity mechanism would work well. I hope it doesn't sound contrived. I do see how such an approach ought to allow this app to perform (and scale) very well (barring inefficiencies in the affinity mechanism). -- Graham