• Shared memory/ipc

    From nelgin@1:103/705 to Digital Man on Sun Nov 8 20:52:28 2026
    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?

    Thanks,

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to nelgin on Sun Nov 8 19:20:34 2026
    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)
  • From nelgin@1:103/705 to Digital Man on Mon Nov 9 02:05:20 2026
    Re: Shared memory/ipc
    By: Digital Man to nelgin on Sun Nov 08 2026 19:20:34

    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)

    Yeah, separate but I'm not sure a stream would work for me. I explained the issue to Claude with a better prompt and after examining the code, came up with a reasonable solution and explanation so I think I'm good. Thanks for taking the time to answer.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)