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

Should the trigger be able to connect to multiple brokers? #16

Open
karthik2804 opened this issue Mar 17, 2024 · 1 comment
Open

Should the trigger be able to connect to multiple brokers? #16

karthik2804 opened this issue Mar 17, 2024 · 1 comment

Comments

@karthik2804
Copy link
Contributor

Currently the trigger can only connect to one MQTT broker with the configuration being defined at the application trigger level. Does allowing each component configuration to specify overrides to connect to a different server make sense? It could be implemented similarly to how the Redis trigger implements it today and the configuration could look something like

[application.trigger.mqtt]
address = "mqtt://localhost:1883"
username = "user"
password = "password"
keep_alive_interval = "30"

[component.mqtt-c01]
source = "target/wasm32-wasi/release/mqtt_app.wasm"
override_address =  "mqtt://mydifferentaddress:1883" # This will override the default "mqtt://localhost:1883"
# potentially have override_username, override_password override_keep_alive_interval ? 
@suneetnangia
Copy link
Collaborator

It may be useful in certain use-cases where subscribing from one broker and publishing to another is needed, often this however achieved via MQTT bridge which comes with store-and-forward capability. On the other hand if we have some cycles, CI pipeline may be useful to have as well... thanks.

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