-
Notifications
You must be signed in to change notification settings - Fork 26
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
Remove USubscription CreateTopic() and DeprecateTopic() APIs #108
Conversation
The topic lifecycle APIs were added as an optimization early on so that subscribers could know if the topic they are subscribing to is valid and the producer is alive however this optimization has given us nothing but heartburn in production as it forces all publishers to call the API when then are initialized and it causes race conditions on initial boot-up. Furthermore, validation of topics could already be done by calling UDiscovery so there was no added benefit of adding the extra states to the subscription service. #96
Co-authored-by: Kai Hudalla <kai.hudalla@bosch.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@AnotherDaniel this might be of interest to you as well, since you are working on an implementation ... |
@stevenhartley , The uSubscription still requires verification of whether the requested topic is valid. By removing the createTopic method, this implies a strong dependency on uDiscovery for its functionality. |
@lynn2009 , why do you need to check the topic is valid or not? |
If uSubscription does not check the topic is valid or not, we will run into the case the subscriber can subscribe an invalid topic and get success response. |
correct |
@stevenhartley @lynn2009 with createTopic removed, what constitutes an 'invalid topic'? |
invalid UUri |
The topic lifecycle APIs were added as an optimization early on so that subscribers could know if the topic they are subscribing to is valid and the producer is alive however this optimization has given us nothing but heartburn in production as it forces all publishers to call the API when then are initialized and it causes race conditions on initial boot-up. Furthermore, validation of topics could already be done by calling UDiscovery so there was no added benefit of adding the extra states to the subscription service.
#96