News for hackers. Stuff that matters.
Re:Building a chat app in 8 minutes with Phoenix by bookercodes on Monday March 19, 2018 @11:44AM (#16619277)
Great screencast, Alex!

The best tools are the ones you don’t even notice, and Elixir is an absolute pleasure. You get to focus on the problem with little ceremony. Chat is a really interesting application of Channels, too.

It’s especially interesting to me as my team and I are working on a hosted API called Chatkit that makes it equally easy to add real-time chat to your applications, no matter what technology you’re using: https://pusher.com/chatkit

In addition to basic chat data, we also manage, “Who’s online”, typing indicators, rich media... And more

I highlight those features in particular because I am especially curious what that would look like with Elixir and Pheonix? Managing chat data, especially at scale is quite a hairy problem.

By the way, it simple/clean to subscribe to Elixir Channels on other platforms like Android and iOS, for example? One place we think we can add a lot of value is X-platform client SDKs (JavaScript, Kotlin, Swift, etc.)

Re:Building a chat app in 8 minutes with Phoenix by chrismccord on Monday March 19, 2018 @03:16PM (#16622083)
Phoenix has Phoenix Presence for managing the "Who's online" feature. We use replicated CRDTs to transparently manage the presence state across the cluster: https://dockyard.com/blog/2016/03/25/what-makes-phoenix-pres...

As far as native platform clients, we have all major channel clients covered across community libs – Swift/objc/Java/C#

Re:Building a chat app in 8 minutes with Phoenix by elcritch on Monday March 19, 2018 @12:26PM (#16619675)
You should read Discord’s experience with Elixir if you haven’t already [1]. They didn’t use Phoenix channels though AFAIK.

Also the Phoenix channel implementation uses CRDTs behind the scenes from what I gather. They make problems like user presence much more tractable [2].

1: https://blog.discordapp.com/scaling-elixir-f9b8e1e7c29b 2: https://github.com/phoenixframework/phoenix/blob/master/guid...

Re:Building a chat app in 8 minutes with Phoenix by no_identd on Monday March 19, 2018 @02:14PM (#16621299)
You likely want to read this, and my comment there:

https://opkode.com/blog/slacks-bait-and-switch/#comment-3799...

Re:Building a chat app in 8 minutes with Phoenix by dep_b on Monday March 19, 2018 @12:23PM (#16619641)
Libraries exist for Swift and JavaScript for sure but honestly the implementation in vanilla JS wasn’t that hard.
Re:Building a chat app in 8 minutes with Phoenix by alekx on Monday March 19, 2018 @12:57PM (#16620052)
Thanks! I'm glad you liked it.