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

Support late binding of topic names #1004

Closed
gkinsman opened this issue Apr 28, 2022 · 0 comments
Closed

Support late binding of topic names #1004

gkinsman opened this issue Apr 28, 2022 · 0 comments
Milestone

Comments

@gkinsman
Copy link
Contributor

gkinsman commented Apr 28, 2022

JustSaying currently has no support for deciding which topic to publish to at publish time. Target topics are determined on startup through configuration.

We want to support deciding the topic to be published to at publish time to support publishing to tenanted topics.

Possible API:
WithTopicCustomiser(Func<Message, string originalTopic, string resultTopic> customiser)

Problems:

  • How do we support creating SnsTopicByName's at publish time. Currently they're created on startup to ensure that infrastructure exists before publishing.
    • Support creation of these at publish time
      • Was attempted in JustSayingStack, had potential for deadlocks
      • Used by LambdaWorker
    • Require user to specify possible topics at startup, and fail at publish time if not registered
  • Extend support of infrastructureless mode to add templated ARN's for topic providers.
    • Assumes infra already exists, don't need to create infra on the fly
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

2 participants