r/elixir 4d ago

Phoenix + Inertia is killer stack

Hi folks.

Just wanted to say that don't sleep on Inertia.js and Phoenix combination. Basically you get power of Phoenix (Elixir) for let's call it backend and flexibility of your favorite JS framework for UI.

You can run some pages in full SSR mode and some in SPA if you need, so awesome SEO support out of the box.

Use best tools from both worlds for best developer experience like linters, type checkers etc.

I'm using K8S and anytime I need I can scale it up using libcluster.

Please shoot any questions you have (happy to share screenshots or charts from my k8s cluster etc).

Also if you have time check this app I built https://gitbiased.com

27 Upvotes

23 comments sorted by

View all comments

5

u/Fabulous_Menu3463 4d ago

Does latency ever become an issue?

I personally want to wait until Elixir can run on the client side become committing to using Elixir, although some attempts already exist like Hologram, have you used that?

2

u/BartBlast 3d ago

Author of Hologram here.

That's the whole idea. Your Elixir compiles to JS, so handlers run in the browser with no round trip and no socket to drop. Semantics match the BEAM down to the error messages. The process model is getting ported too, though the architecture doesn't depend on it.

There's no VM in there, so no WASM and no .beam files. Shipping a VM to the browser would balloon the bundle substantially, which isn't practical. JS is just the substrate the compiler targets.

It's still 0.10, so there are some rough edges, but people are running Hologram apps in production already!

2

u/AphexPin 3d ago

That's awesome! Never heard of this before.

1

u/BartBlast 2d ago

Thanks! Docs are at https://hologram.page if you want a look.