Caveat, I'm not familiar with gRPC nor your implementation.

In addition to Robert's suggestions, have you considered a single
executable using GoRoutines and channels. Maybe channels can be shared
between 2 executables but I can't speak to that. You could run a test to
see if it GO allows it. If so, my expectation would be that it's thread
safe.

Maybe pipes can be passed to another executable and be thread safe?

Robert recommended shared memory or memory mapped file which aren't thread
safe. You may need to make it thread safe.

On Fri, Jul 25, 2025 at 5:20 PM Léa Galet <leaesperee.ga...@gmail.com>
wrote:

> Hi,
> I have 2 executables in go (called exec1 and exec 2)
> exec1 is the main application, loading exec2 as a grpc plugin
> Exec 1 is the one making the calls to exec 2, so there's a possibility of
> downward communication
> i wanted my exec2 to be able to update some values of an item passed from
> exec1 so i gave the item as a pointer (wanted to use the inline update
> property of pointers)
> unfortunatly, in exec2 it's a copy of the pointer and not the pointer
> directly (i printed the pointer adresses to be sure)
> i don't seem to find a definitive answer anywhere so
> Is there a method to have exec2 use the same pointer as exec1?
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/golang-nuts/d7d3b535-e670-48e8-af1e-366dfb1d0b56n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/d7d3b535-e670-48e8-af1e-366dfb1d0b56n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CAByJhJmyTVN94CpaknoOsXSGU2KZyvy%3D5rs9SgtNeYX7QUN_uw%40mail.gmail.com.

Reply via email to