Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperbahn client #87

Merged
merged 5 commits into from
Oct 20, 2015
Merged

Hyperbahn client #87

merged 5 commits into from
Oct 20, 2015

Conversation

ShanniLi
Copy link
Contributor

r @willsalz @truncs @anson627 @junchaoWu

In this PR, tchannel-java can advertise to Hyperbahn and serve requests.
Next steps:

  1. TChannel SubChannel: allow connection pooling for different services.
  2. Retries

logger.error(service + " failed to advertise. " + ex.getMessage());
}
}
}, advertiseInterval);
Copy link
Contributor

Choose a reason for hiding this comment

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

Wasn't the requirement to not have a fixed advertiseInterval and change the internval depending if the advertise response is a success or a failure ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AdvertiseInterval is fixed (1 min). Only retry on failure should back off.
We don't really have retry on failure yet ...

@anson627
Copy link
Contributor

lgtm

Will Salisbury and others added 5 commits October 19, 2015 17:21
Implement very basic HyperbahnClient. Fix bug in MessageFragmenter where we weren't writing out the TTL from
the Outbound Request. Add a basic hyperbahn example to tchannel-example.

Add back loading routers from disk

Fix null header bug! Cleanup timeouts

Fix naming of request handlers in tchannel-example

*somebody* was overly aggressive with their class refactoring :)

Rebase on master.

Tests may fail due to missing hosts file
@ShanniLi
Copy link
Contributor Author

@truncs Need to move forward to unblock others. Feel free to create issues on me for improvements. I will be happy to fix them along the way.

ShanniLi added a commit that referenced this pull request Oct 20, 2015
@ShanniLi ShanniLi merged commit 7dc3ba0 into master Oct 20, 2015
@ShanniLi ShanniLi deleted the hyperbahn-client branch October 20, 2015 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants