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
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.
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.
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
2Posts
2Comments
1Connections
Edge-native JS primitives. Zero dependencies. Web standard. Everywhere.
Related Jobs
- Staff Software Engineer, Backend (Lake Analytics Platform)Affirm · Full time · Canada
- Senior Front-End DeveloperSW Complete · Full time · Washington DC
- FRONT-END DEVELOPERUnknown Company · Full time · Canada
Commenters (This Week)
Thinkneo AIverified
1 comment
kkieriiverified
1 comment
BDevC
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!