5 ms·
You might get a kick out of this: https://liveview-counter.fly.dev/ https://liveview-counter.fly.dev/ It's a multi region Phoenix app using libcluster to power
by mrkurt 6y ago
You might get a kick out of this: https://liveview-counter.fly.dev/ https://liveview-counter.fly.dev/
It's a multi region Phoenix app using libcluster to power LiveView. We have some fun ideas for Elixir, we just need to speed up builds.
- atonse 6y agoThe general deployment story with elixir leaves a lot to be desired. I hope this is one of the things that you guys are planning to be chatty about! We currently use edeliver and it just feels clunky. I’d love to just push a branch and type flyctl scale and stuff just ends up being clustered. (That’s probably already supported?). Actually, I’m going to use fly for a couple of our projects. Just realized it. We’re tired of Linode and were prepping to move it all to AWS but I wasn’t looking forward to the devops maintenance for how small the projects currently are. I actually would love to build an FaaS on top of elixir for our product, that’s ending up accidentally having low-code elements in it. The process isolation you get for nearly free seems like a no brainer for such a platform. Another potential would be hosting Wordpress. Having great tutorials for these use cases will be killer.
- mrkurt 6y agoI have been surprised how little good tooling there is for Elixir, and even full stack in general. Clustering is supported, you can set libcluster to use our internal DNS to discover nodes: https://github.com/fly-apps/phoenix-liveview-cluster/blob/master/config/releases.exs#L23-L31 https://github.com/fly-apps/phoenix-liveview-cluster/blob/ma... You also need some environment variables: https://github.com/fly-apps/phoenix-liveview-cluster/blob/master/entrypoint.sh https://github.com/fly-apps/phoenix-liveview-cluster/blob/ma... And a dockerfile: https://github.com/fly-apps/phoenix-liveview-cluster/blob/master/Dockerfile https://github.com/fly-apps/phoenix-liveview-cluster/blob/ma... We definitely need tutorials. We're hiring someone specifically to work on the entire Elixir dev UX, so hopefully we'll improve soon.
- atonse 6y agoLove the live counter!!
- mfkp 6y agoThis is a great demo, I definitely got a kick out of it and had some fun with a little javascript click loop ;-)
- mrkurt 6y agoI'm surprised how well liveview copes with a flood of events. I've seen the latency indicator at the bottom spike at times, but it mostly just hums along.
- 0xCMP 6y agoI had more fun with this than I should have
- mrkurt 6y agoRight? It's ridiculous.
- mcintyre1994 6y agoThat's a great demo! Have you written anything about LiveView + Fly?
- mrkurt 6y agoNot yet, we want to make sure `fly launch` does a good job with Elixir apps first. We're close.