Re: Shared memory/ipc
By: nelgin to Digital Man on Sun Nov 08 2026 08:52 pm
I am needing to share data between 2 or more sessions that are running as a service. I considered using FIFO or a socket but it seems like a lot of disk overhead when it might be faster to use shared memory for some sort of IPC. I checked with Claude and it said nothing like that is currently available in the Synchronet JS Object Model.
Is this something that could be easily added or do you have other suggestions for communicating between multiple sessions running as a service?
If you mean "TCP sessions", those can be handled by a single static service and all inter-session communication could then happen within the same script/thread/process (using Queues or arrays of objects any other share data structure within JS). That's how the ircd works.
Or if you really want a separat service/thread per TCP session, those sesions could communicate with each other via:
- file I/O
- sockets (TCP, UDP, or Unix Domain)
The JSON DB service (which other doors/services can use) uses combination of both of those.
--
digital man (rob)
Breaking Bad quote #22:
I got one more shot at that little skid mark. - Hank Schrader
Norco, CA WX: 75.8øF, 30.0% humidity, 1 mph NE wind, 0.00 inches rain/24hrs
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)