-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More protocol friendly request pattern. Fix for #294.
This request pattern is sematically the same but utilizes a single wildcard subscription and the last token context for the response subject binding to each request. Since NATS floods interest (subscriptions), the old requestor pattern would create a new inbox subscription for each request. It would then auto-unsubscribe and delete the subscription after the response was received, causing quite a bit of protocol traffic. So although this does have a performance gain as can be seen in the benchmarks, it's implementation is specifically designed to be more friendly for NATS clusters.
- Loading branch information
1 parent
d912fba
commit 2231281
Showing
4 changed files
with
280 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.