You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a service with a business method type Mysvc interface { MyFunc(res Request) Response }
Then I have a Nats subject from where I read the MyFunc's Request and a Nats subject where i have to publish MyFunc's Response;
then I have created a natstransport.Subscriber (with it's endpoint) and a natrtransport.Publisher (from whom I can get the Enpoint).
is there a way to combine them in order to have a "processor" (consume from a topic/subject and publish to another topic/subject) just using endpoint/transport layer without adding specific logic in MyFunc implementation?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have a service with a business method
type Mysvc interface { MyFunc(res Request) Response }
Then I have a Nats subject from where I read the MyFunc's Request and a Nats subject where i have to publish MyFunc's Response;
then I have created a natstransport.Subscriber (with it's endpoint) and a natrtransport.Publisher (from whom I can get the Enpoint).
is there a way to combine them in order to have a "processor" (consume from a topic/subject and publish to another topic/subject) just using endpoint/transport layer without adding specific logic in MyFunc implementation?
Beta Was this translation helpful? Give feedback.
All reactions