This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-05
Channels
- # aleph (2)
- # beginners (93)
- # boot (9)
- # cider (1)
- # cljs-dev (50)
- # cljsrn (4)
- # clojure (32)
- # clojure-russia (58)
- # clojure-spec (23)
- # clojurescript (146)
- # clojurewerkz (2)
- # component (1)
- # cursive (2)
- # hoplon (163)
- # off-topic (4)
- # om (117)
- # onyx (8)
- # pedestal (1)
- # re-frame (13)
- # reagent (34)
- # spacemacs (17)
- # test-check (1)
- # untangled (3)
@curlyfry The latter - I'd like to react to changes to an in-memory dataset on a hosted server.
What's the minimum re-frame app size that you've been able to get with :optimizations :advanced
?
I always get something around 500 kB. Would like to know if it's possible to get a lot smaller than that since 500 kB is quite big sometimes (bad mobile connections, etc)
@decoursin I obviously don't know your exact use case, but I'd guess "something like re-frame" is not what you need. These libraries are designed for the UI, and I don't only mean that they're implemented in cljs. They're designed around the idea of having UI components, and that you really only have one thing going on at a time. I mean, in a normal UI, you don't have 100 users clicking on different buttons at a time.
Maybe this could help you? https://github.com/martinklepsch/derivatives
@decoursin: May be worth looking into the various Clojure CQRS / ES projects on github as the patters are related.
Also you could use Pulsars Rx namespace to rebuild the reactive/signal part of the re-frame pattern and be able to push updates to e.g. a websocket connection.
Re CQRS projects this is interesting https://github.com/capitalone/cqrs-manager-for-distributed-reactive-services
@kauko @andreas-thoelke Thank you both very much. You're right, ES is actually probably what I want. (Even though, it seems to me re-frame on the backend could be useful under certain circumstances, disclaimer I don't know the actor model.) I really like that talk by Bobby Calderwood, thanks for the link. I had known about his previous talk CQRS, but I wasn't aware of this new one. Thank you 🙂
@decoursin I wonder if you are looking for something like this: https://www.youtube.com/watch?v=B1-gS0oEtYc
Or perhaps Christopher Small's https://www.youtube.com/watch?v=aI0zVzzoK_E