News for hackers. Stuff that matters.
Re:Elixir and Ruby can talk to each other using Erlix by gamache on Monday December 05, 2016 @04:45PM (#13109979)
At Appcues, we use a combination of both approaches.

We have our Elixir backend where we need some combination of:

- Low latency -- Lambda + API Gateway requests typically incur a ~200ms invocation latency

- Persistent connections, e.g. WebSockets

- High performance

- Continuous usage, let's say at least ten calls per second all day every day forever

For everything else, Lambda and API Gateway have been fantastic, even without a framework like Serverless. It's so cheap! It's so convenient! It's so reliable-enough!

But we couldn't get along on a 100% Lambda backend, far from it.

Re:Elixir and Ruby can talk to each other using Erlix by dfischer on Tuesday December 06, 2016 @12:35AM (#13112488)
I agree with this a lot. Especially on the web socket front. I've been thinking of an ideal structure for this. I haven't decided between elixir or bet in with Google and Firebase.
Re:Elixir and Ruby can talk to each other using Erlix by gamache on Tuesday December 06, 2016 @03:57PM (#13118273)
For what it's worth: we use Firebase in our stack too, but at this point it's confined to our customer-facing dashboard (as opposed to our end-user-facing service). I don't like it when my critical systems depend on services out of my control, especially when those services go down for hours or days at a time -- as Firebase DB has done twice in the last year, for us.
Re:Elixir and Ruby can talk to each other using Erlix by dfischer on Tuesday December 06, 2016 @05:43PM (#13118942)
How are you delivering sockets to end-user facing service? Through phoenix?
Re:Elixir and Ruby can talk to each other using Erlix by gamache on Wednesday December 07, 2016 @11:30AM (#13123738)
Yes, we have a pool of Elixir + Phoenix servers behind a classic Amazon Elastic Load Balancer (set to TCP/SSL mode, not HTTP/HTTPS, or else WebSockets don't work).
Re:Elixir and Ruby can talk to each other using Erlix by dfischer on Wednesday December 07, 2016 @02:56PM (#13125665)
Hmmm cool. How are you deploying Phoenix?
Re:Elixir and Ruby can talk to each other using Erlix by gamache on Saturday December 10, 2016 @09:31AM (#13145770)
Right now we're using Edeliver and Distillery. We're planning to containerize things soon, so I'm not sure what the toolchain will look like then, but if you have long-lived servers then Edeliver is great.