Hacker News new | ask | show | jobs
by andersmurphy 427 days ago
Yeah seems super fun. I've added it to my source reading list.

100% you can just do request response. What's nice is it can still be used to notify a user. Say they make a request that kicks off a background job, you can return UI that says the job has started, keep the connection open (cheap with v threads) and then when the job completes return the notification.

I honestly, wouldn't go down the CQRS road unless you are planning on adding multiplayer/coop/global notifications.

For the slow queries in a CQRS context I mostly solve that with caching. You can of course get fancy with datomiclike transaction queue/notification/listen fine grained pub/sub if that's your thing.

1 comments

Yeah that makes sense! Once I'm done with the rewrite I'm planning to go through the app and convert the remaining htmx portions to datastar--should be a decent learning exercise.