3 ms·
Couple of questions from someone who’s never tried Phoenix/Elixir: 1. How does this stack handle non-browser clients, like mobile apps or APIs? 2. Can this sc
by brap 5y ago
Couple of questions from someone who’s never tried Phoenix/Elixir:
1. How does this stack handle non-browser clients, like mobile apps or APIs?
2. Can this scale horizontally? i.e, can you throw in more servers when you need to? Since servers hold state in-memory (IIUC) I’m not sure about this one.
- strzibny 5y agoYou can have more servers and you route the client to the server that made the initial connection. Same as with any other web socket.
- chrismccord 5y ago1. Fantastic for non-browser clients. The community has native channel clients for objc/swift/c++/rust/java so you can do real-time things natively, and course do standard json/graphql. 2. Yes, we scale vertically and horizontally. Because we have distributed pubsub and messaging baked-in, the horizontal scaling story just works – you don't have to rearchitect your app to add more servers :)