Why would I pick Phoenix Channels over a GraphQL API, or the other way around?

I can sort of ‘feel’ when I should use one over the other, but I’m interested in a more merit-based approach when picking between the two.

This compares apples to oranges. Please, maybe restate your question or elaborate on what you mean exactly.

2 Likes

Agreed. Phoenix channels are a moderately low level API for sending messages over a websocket connection. GraphQL is a way to query data. You can do GraphQL over phoenix channels too so it’s pretty orthogonal.

2 Likes