in reply to Handling multiple clients
If you want some sort of approach that actually shares a single copy of the 2GB data set among multiple clients that are being served simultaneously, I think you'll need threads rather than forking. I'm not a reliable source on this, 'cuz I've never used threads myself, but... if I'm not mistaken (no guarantee on that), one of the advantages of threading is that you really can share a single store of in-memory data across threads, whereas you can't do that across children forked from a given parent. I hope others can elaborate from personal experience...
Meanwhile, you may want to reassess your requirements. How important is it, really, for multiple clients to be serviced in parallel (given that doing so might not be doable without a serious loss of efficiency)? Is there any chance the process could work from a mysql database, rather than from in-memory storage? (Multiple concurrent access to a 2gb dataset is a lot easier to implement efficiently using a real RDBMS, and mysql is pretty zippy for a lot of tasks.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Handling multiple clients
by chromatic (Archbishop) on Sep 05, 2004 at 03:54 UTC | |
by graff (Chancellor) on Sep 05, 2004 at 04:22 UTC | |
by chromatic (Archbishop) on Sep 05, 2004 at 07:11 UTC | |
by BrowserUk (Patriarch) on Sep 05, 2004 at 09:49 UTC | |
by jalewis2 (Monk) on Sep 05, 2004 at 20:48 UTC | |
| |
by Anonymous Monk on Sep 06, 2004 at 12:48 UTC | |
by jalewis2 (Monk) on Sep 05, 2004 at 20:44 UTC | |
|
Re^2: Handling multiple clients
by jalewis2 (Monk) on Sep 05, 2004 at 20:51 UTC | |
|
Re^2: Handling multiple clients
by jalewis2 (Monk) on Sep 05, 2004 at 20:46 UTC |