Skip to content

Per host channels#1333

Draft
jkozlowski wants to merge 5 commits into
jakubk/stick-queuefrom
jakubk/per-host-stick
Draft

Per host channels#1333
jkozlowski wants to merge 5 commits into
jakubk/stick-queuefrom
jakubk/per-host-stick

Conversation

@jkozlowski
Copy link
Copy Markdown
Contributor

Before this PR

After this PR

==COMMIT_MSG==

==COMMIT_MSG==

Possible downsides?

@jkozlowski jkozlowski changed the title Route to host. Per host channels Jul 16, 2021
@jkozlowski jkozlowski force-pushed the jakubk/per-host-stick branch from f05d200 to 0f2942a Compare July 16, 2021 12:37
@jkozlowski jkozlowski changed the base branch from ckozak/stick to jakubk/stick-queue July 16, 2021 12:37
return endpoint(endpoint).execute(request);
}
})
.collect(ImmutableList.toImmutableList());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this piece is more or less the alternative described here, except that we don't leverage it from the StickySessionFactory.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah: I think it's valuable to provide wholesale fairness implementation. If we're not going to ship the whole thing (i.e. you can support internal usecase for per-transaction fairness, with ability to create a new sticky channel from an existing sticky channel with new queue), I'd be happy to switch to per-host queues even for sticky channels. The reason I added it in #1334 is because I wanted to ship the whole thing.

Comment thread dialogue-core/src/main/java/com/palantir/dialogue/core/NodeSelectingChannel.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants