I’m going to keep it short!
I’m wondering the best way to store constantly changing user data with their websocket connection in a Phoenix app (Phoenix.Socket). Do I just put it in the socket.assigns?
The problem is, I’m trying to simulate location based messaging rooms, where only users within a certain radius of your location receives your message. Is this possible with Phoenix channels? Dynamic rooms? I want an efficient way to query users within a certain location. For this purpose I was thinking PostGIS would be too latent due to how short lived a users connection would be. Would some efficient data structure be best to store locations? Something like a k-d tree?
Thanks in advance!