Nikil
Nikil
CDCloudflare Developers
Created by Nikil on 1/3/2024 in #workers-help
Socket response time >=150ms ?
I was under the impression that with Websockets and Durable Objects, we could get short response times, like <50ms. I'm just sending json objects. But I'm getting like 500ms to 1.5s. I'm operating a live Q&A service. Maybe I'm being dumb by sending the latest status of all of the questions when somebody upvotes a question or asks a new one so I can make sure we don't have weird consistency issues between clients, so I'm send around 1.7MB when there are ~400 questions. However, I deleted all the questions and tried it and I'm still gettting around the same timing. I'm measuring the timing using K6 socket testing. What could I be doing wrong? How can I make this more performant (<50ms or at least <100ms)? @eeswar
43 replies
CDCloudflare Developers
Created by Nikil on 11/16/2023 in #general-help
Who from Cloudflare can I talk to about TURN / WebRTC?
I saw this post https://blog.cloudflare.com/announcing-our-real-time-communications-platform/ and I think a newer one. I am trying to build in live video chat for a remote teaching company (we teach high schoolers to Code, do PCB design, etc. and connect them with virtual mentors)
1 replies
CDCloudflare Developers
Created by Nikil on 10/18/2023 in #pages-help
failing to fetch repo from github
No description
11 replies
CDCloudflare Developers
Created by Nikil on 10/17/2023 in #workers-help
Long-standing websockets & writing to external DB subrequest limit?
Is it not possible to make a proper real-time app in Workers wherein the server / durable object might stay alive for a couple hours? We have an to support students in a virtual classroom. Basically, students submit questions for help during an office hours session. Other students can upvote questions. Teaching assistants can select a question to answer live. That should send a notification to all of the students who upvoted the question. The students hop into a separate video call platform to hear the answer. So I was hoping to do this with websockets (or some kind of long-polling) so that students can receive a notification when their question is being answered. If we were going to do websockets, it seemed like it would make sense to keep the connection open for student upvoting / posting new questions as well. But there seems to be a limit to # of external subrequests on a worker (e.g. writing to a DB).
55 replies
CDCloudflare Developers
Created by Nikil on 10/14/2023 in #general-help
Startups account
I'm trying to use Durable Objects, and I should have the cloudflare for startups applied. But my dev is saying he isn't able to use Durable Objects. Can someone help me with this?
8 replies
CDCloudflare Developers
Created by Nikil on 10/4/2023 in #workers-help
cost of Websocket worker
I want to know who's used Websockets in cloudflare workers at scale to understand what the cost ends up being. I would love to hear your usecase and how much you've been paying. I'm building a real-time FAQ app where students ask questions, teaching assistants (and eventually an LLM or vector-db) merge similar questions, and then tesching assistants answer the question via text or via a separate video calling service. Right now we have ~100 students simultaneously, but we will have 1000s of students in a couple months. Our goal is to hit 10k simultaneous students in a year and eventually 100k in 3-4 yrs and 1M in 5-10. I would love to know how much this is going to cost me on workers vs a dedicated EC3 instance or something. Thanks!
5 replies