#real-time updates deploying to vercel

1 messages · Page 1 of 1 (latest)

silent tartan
#

I want to deploy a forum app to vercel
Once the client has loaded the javascript, any new posts in the forum should appear in real time, is it possible? Since (afaik) vercel treats every route as a serverless function, the server can't really manage a socket connection.
Do I need to spin up some other server to manage clients and sync that with the db?
I'm mainly using vercel because of the free tier, should I just move the deploys to fly.io or some other long-lived server?

south kite
#

you can use websocket as a service, check out ably, pusher or another service provider.

#

or you can setup websocket server yourself