Hi, friend,
I could not know yours type of Raspberry Pi, however, I tried with my Raspberry Pi Zero W applying to the old my articles. Then I found the new Mac OS version, Ventura, doesn`t support USB OTG now, and a connection with Raspberry Pi Zero W to Mac should be through WiFi.
I suppose you have already realized the connections your RaspberryPi as a server to other RaspberryPis using SSH, which is the first step. As I shown previously, next step is that selecting a mehtod from, using nc command or a ZMQ method. In last year, I tryed a nc command method, but this method was tricky and tedeous, and decided to using ZMQ method may be better.
Next step 1 may be as follows.
Using two of ZMQ installed RaspberryPi, you shoud try to connect with each two Wolfram programs.
Step 2 may be,
Using a RaspberryPi, you should be familiar to OOP to realize concurrent calculations.
I hope you will success.