support for “no-responders” in multitenancy #4761
-
Hi, I've got a question regarding multi tenancy and no-responders. I defined the following simplified configuration:
And the following client:
The problem is that I receive a timeout
I get I tried to debug this a little and it seems that when a subject is imported an internal (inside nats-server) nats subscription is created on this subject so technically because of this internal subscription there is an available responder and that's why I get a timeout instead of Could you confirm that “no-responders” is not supported when communicating across accounts using multi tenancy? Do you know about any workaround which can cause to return |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As you figured out technically there is a listener on the subject that is created under the covers due to the import of the service. This means that indeed when it comes to cross-accounts services import/export you can not rely on "no responders" and have to resort to wait for a timeout. Note that "no responders" is a kind of "shortcut" to not receiving an error but even when it is available the invocation of the service can still time out. So in your client application code you should expect that both no responders and timeouts can happen and should be handled the same way. |
Beta Was this translation helpful? Give feedback.
As you figured out technically there is a listener on the subject that is created under the covers due to the import of the service. This means that indeed when it comes to cross-accounts services import/export you can not rely on "no responders" and have to resort to wait for a timeout.
Note that "no responders" is a kind of "shortcut" to not receiving an error but even when it is available the invocation of the service can still time out. So in your client application code you should expect that both no responders and timeouts can happen and should be handled the same way.