gammazero / nexus

Full-feature WAMP v2 router and client written in Go
MIT License
268 stars 58 forks source link

Override caller details for relay mode #267

Closed om26er closed 2 years ago

om26er commented 2 years ago

I have implemented router to router links based on top of Nexus https://github.com/om26er/nexlinks. It extends the Nexus router to act as a relay i.e. forward all WAMP procedures registered on one router to another router.

This is especially suitable for edge-cloud scenarios. One issue I see is that when a message is relayed between two routers, the caller details are wrong, this is because the relay itself is ultimately the caller.

We should support the nexus dealer to override that behavior

om26er commented 2 years ago

I have put out a proposal for this issue https://github.com/gammazero/nexus/pull/268. We would also need to do a similar treatment in the broker code for publish events.