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

Hub.Topic shall be part of URL to post requests to #306

Open
m-arpad opened this issue Feb 27, 2020 · 0 comments
Open

Hub.Topic shall be part of URL to post requests to #306

m-arpad opened this issue Feb 27, 2020 · 0 comments

Comments

@m-arpad
Copy link

m-arpad commented Feb 27, 2020

According to the Feb2020Ballot, the URL to post any request (subscription, context change, unsubscription) to is always the hub.url. We propose to change this to 'hub.url / hub.topic', e.g. 'https://hub.example.com/topicABC' mainly for making implementations more straightforward and in line with industry best practices.

Reasons:

  • in cloud / high-availability deployments this allows scale out and redundancy by placing the hub behind a load balancing reverse proxy or API gateway
  • the actual message body does not need to be deserialized/interpreted in order to identify the topic
  • industry standard web frameworks typically support cross-cutting concerns such as logging, tracing, performance counters, authentication, authorization, security aspects based on URLs better than based on message content
  • allows for clients to dynamically specify topic schemes with URL placeholders, such as "https://hub.example.com/%CASE_ID%" or "https://hub.example.com/%REPORT_ID%" or "https://hub.example.com/%IMAGE_ID%" or similar
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

No branches or pull requests

1 participant