bytecodealliance / wrpc

Wasm component-native RPC framework
Other
118 stars 19 forks source link

feat(go)!: allow serving with queue group #259

Closed brooksmtownsend closed 4 weeks ago

brooksmtownsend commented 4 weeks ago

This PR adds a new function NewClientWithQueueGroup to the wRPC Go NATS client that, when a queue group is provided, will serve on a queue group rather than just a regular subscribe. This will allow users of the NATS client to run multiple services that serve the same functionality without duplication.

I could've just added this to the NewClient function, but I figured I'd avoid the breaking change there and simply add another constructor. Open to changing this back if desired