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

feat: create public MQTT API for users #15

Open
6 tasks
getlarge opened this issue Dec 20, 2023 · 0 comments
Open
6 tasks

feat: create public MQTT API for users #15

getlarge opened this issue Dec 20, 2023 · 0 comments

Comments

@getlarge
Copy link
Owner

Events are only propagated across microservices at the moment.
It could be great to provide an example implementation of an MQTT ( and Websocket ) API for users and use it in the front end to refresh state in real time without polling.

  • Enabling MQTT in RabbitMQ
  • Enabling external authentication plugins (HTTP + cache) in RabbitMQ config
  • Create NestJS service to interact with RabbitMQ queues over (REST) API (to limit number of queues / user)
  • Create authentication endpoints and service in auth service
  • Define MQTT topic pattern ( users/${user_id}/${resource}/${action} or reusing Zanzibar notation ? ) and payload schema
  • Trigger MQTT events via a new service subscribing to all existing events ? could this facilitate event sourcing ?
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