The cold start comparison was pretty wild. 118ms vs 8ms actually matters a lot on Workers. Did you benchmark memory usage too?
The End of "Heavy" WebSockets: Introducing @rabbx/ws
rabbxdev
posted
2 min read
2 Comments
Jundarer
•
rabbxdev
•
@[Jundarer] @rabbx/ws uses 68 bytes/conn vs ws at 180 bytes/conn on Node.
Tested by opening 5k conns, closing, forcing GC. RSS returns to baseline ±3MB.
DoS mitigation:
- maxPayload: 64KB default. Frames >64KB close with code 1009.
- maxHeaderSize: 8KB blocks ReDoS on upgrade headers.
- Node runtime tracks bufferedAmount. If it exceeds 1MB, conn closes with 1001 to prevent OOM.
Cold start on Workers: 22-35ms vs 45-80ms for ws.
always set payload to your requirements while you consider workers memory usage limits,please ping us when things are up and running
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Refund
- Early Builders
chevron_left
Related Jobs
- OpenClaw Backend EngineerOutlier AI · Full time · Canada
- Senior Software Engineer - Map Creator (Backend)Motional · Full time · Singapore
- Senior Backend Engineer, Booking Platformjobgether · Full time · United Kingdom
Commenters (This Week)
Nine Internet Solutions AG
1 comment
SCURA
1 comment
okerew
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!