Proxied websocket limits?
I see that Cloudflare can proxy WebSockets for a domain. I'm hoping to use it to enact blue-green switchover for a small game mod, but I'm having trouble understanding if this is acceptable use and/or if there are any limits on the free tier as far as bandwidth usage goes. (Bandwidth is currently about 200kb/s peak at most times, but about twice a month could get up to about 20 Mb/s). Is this a legiitmate use of the service?
4 Replies
(all I can seem to find via Google is a reference to a section of the TOS that doesn't exist anymore...)
As stated on https://developers.cloudflare.com/network/websockets/, you're free to make use of proxied websockets on the free plan for "low" volume of concurrent connections.
The page also explains what happens if your traffic is becoming high.
What happens if my site exceeds the number of concurrent WebSockets connections that Cloudflare expects? Immediately, nothing. Cloudflare will allow occasional spikes in usage beyond our guidelines and we will not apply unnecessary limits. Repeated spikes or high continued usage will prompt a dialogue. Cloudflare will reach out to learn more about your application. We will not impose limit errors for any application without contacting the customer unless we suspect that abuse or an attack is involved. Customers whose usage claims a disproportionate percentage of resources for their current plan level may be asked to upgrade to the plan level that matches their needs.so you can just use it without worries, as Cloudflare will reach out first if your traffic may be too high
concurrent connections will be very low, but in the case of large lobbies the network bandwidth expands exponentially (to a limit)
drop in the bucket at cloudflare scale i'm sure, but i wanted to make sure i was doing right by the TOS before relying on it in production 🙂
thanks
yeah you should be all good. There are no automated limits or such on concurrent websockets, so a spike won't be a issue