realtime subscription tradeoffs #3452
-
I don't find much information on "cost" (resources on server/database) of a "subscription". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It is pretty cheap to use subscriptions. Phoenix framework (inside Realtime) makes a new Elixir process on each subscription and adds a record in two tables in in-memory KV storage. The only thing that updates could be copied to a few subscription processes, which will increase RAM usage. But it can be an issue only on large datasets. |
Beta Was this translation helpful? Give feedback.
It is pretty cheap to use subscriptions. Phoenix framework (inside Realtime) makes a new Elixir process on each subscription and adds a record in two tables in in-memory KV storage. The only thing that updates could be copied to a few subscription processes, which will increase RAM usage. But it can be an issue only on large datasets.