Re: Sharing read/WRITE data between threads? [EXT]

2021-08-25 Thread David Booth
Thank you Brad, Jacques and James, for your thoughtful suggestions. I think Brad is right: I should see if I can figure out a different approach, instead of trying to do this. It's looking like it would be more trouble than it's worth. But I'm glad to know about those other options in case I

RE: Sharing read/WRITE data between threads? [EXT]

2021-08-25 Thread James Smith
The other problem with sharing writable data in "memory" is that it would not necessarily shared between multiple server instances. We run multiple mod_perl instances for reliability. Agree with other posters either use something like redis or memcache (possibly backed with a database). -O

Re: Sharing read/WRITE data between threads?

2021-08-25 Thread Jacques Deguest
Or you can also consider using IPC::Shareable if your system supports IPC. Jacques Deguest On 2021/08/25 17:11, Brad Van Sickle wrote: > I've shared read-only data across threads many times a cheap and easy > caching mechanims, but as I'm sure you've foun

Re: Sharing read/WRITE data between threads?

2021-08-25 Thread Brad Van Sickle
I've shared read-only data across threads many times a cheap and easy caching mechanims, but as I'm sure you've found in your research, the "copy-on-write" methodology employed by mod_perl prevents you from doing that for mutable data and I'm not aware of a way around that without fundamental c