Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

im building the best next.js stack to ever exist i just found out cloudflare workers natively support long-running websocket connections - extremely cheap - reliable af & fully serverless - zero infra to manage you can setup real-time next.js in literally seconds

52,539 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

Josh tried coding profil fotoğrafı
Josh tried coding1 yıl önce

this is the API i'm thinking of for jstack (the next.js/typescript stack im building), probably doesnt get simpler than this if i now find a way to make the messages type-safe its over

Irteza Bangash profil fotoğrafı
Irteza Bangash1 yıl önce

Yp I've been playing with cf workers and its crazy good. Looking forward to trying the jstack

chronark — oss/acc profil fotoğrafı
chronark — oss/acc1 yıl önce

Is this integrated into @upstash with a db, vector and workflows?

Josh tried coding profil fotoğrafı
Josh tried coding1 yıl önce

@upstash vector and workflows no, a redis db yes because that powers the bidirectional comms. you could also use cloudflare durable objects, but i prefer upstash

Alchemist profil fotoğrafı
Alchemist1 yıl önce

You can use durable object for this

Carlos Ziegler profil fotoğrafı
Carlos Ziegler1 yıl önce

How about self hosted ?

Josh tried coding profil fotoğrafı
Josh tried coding1 yıl önce

should be possible by just switching out the url to your own ws server, but not nearly as convenient

Umair profil fotoğrafı
Umair1 yıl önce

Pr?

Firat Özcan profil fotoğrafı
Firat Özcan1 yıl önce

If you go the path of using durable objects for your rooms (which you should), you do need to solve the issue of those objects being fixed to the location of the first request. May not be what you want, some solution for migrating it closer to the user may need to be built by you

Josh tried coding profil fotoğrafı
Josh tried coding1 yıl önce

not a problem when using upstash redis realtime subscriptions as we do in the demo, i find durable objects to be pretty unintuitive

Benzer Videolar