cvkmohan

cvkmohan

Supabase/realtime - use in Phoenix?

Do we have any usecase for adding supabase/realtime: Broadcast, Presence, and Postgres Changes via WebSockets (github.com) in our Phoenix Application?
Yes, there is a Dart client and Javascript client which consume this library. But, what benefits can we get if we include this in our Phoenix LiveView application?

Is the question outright silly? Sorry then.

Most Liked

chasers

chasers

Not silly at all! I help run the Realtime service for Supabase.

Honestly, I’m not sure there is a reason for Elixir folks to use the Realtime stuff from Supabase. It’s built in Elixir and we get all this stuff for free with Phoenix (Broadcast and Presence) and Postgrex (ReplicationConnection).

The services Supabase has built on top of Postgres are really targeting front-end / serverless devs who don’t want to run a backend of their own.

We (Elixir folks) have to run a server somewhere anyways.

Other things like Auth and Storage could be interesting but we haven’t totally fleshed out that story for Elixir devs yet.

cevado

cevado

as I understand this is not a library but actually an application from supabase, and is a feature of the services they provide, you can read about the feature here:

same as any other application using this feature. you most probably will connect your live view with data coming from supabase and have stuff broadcasted there.

edit:
can you reproduce those features by using Phoenix Presence and Phoenix PubSub from your database directly without the need of using supabase? yes. i guess it makes more sense if you’re already using supabase and want to have those features managed by it.

cvkmohan

cvkmohan

Thanks for understanding my question and answering it. When I read your answer, I realized my question could be put in a much better way. :slight_smile:
Yeah -Storage might be interesting to use.

Where Next?

Popular in Questions Top

_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
Kurisu
For example for a current url like http://localhost:4000/cosmetic/products?_utf8=✓&query=perfume&page=2, I would like to get: ...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New

Other popular topics Top

WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43806 214
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36432 110
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

We're in Beta

About us Mission Statement