https://github.com/laetho/cqrs-poc
Playing with HTMX, NATS and CQRS
https://github.com/laetho/cqrs-poc
Last synced: about 1 year ago
JSON representation
Playing with HTMX, NATS and CQRS
- Host: GitHub
- URL: https://github.com/laetho/cqrs-poc
- Owner: laetho
- Created: 2024-09-09T20:26:10.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T21:14:12.000Z (almost 2 years ago)
- Last Synced: 2025-06-01T05:16:55.480Z (about 1 year ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cqrs-poc
This is a little experiment on building a streaming frontend with HTMX on the client. Leveraging SSE (Server Sent Events) from the backend.
We do CQRS. The SSE events for command and query results are backed by NATS. All commands and queries gets published on diffrent work queues for processing. Result of commands and queries are streamed back to the client on /stream/commands and /stream/queries respectively.
## Status
Currently a very naive implementation, no actual commands or queries are implemented, but they are "processed" and streamed to the client. Will be interesting to see how flexible htmx + some js will be targeting different parts of the app based on command and query types.