Since worker size limit is 1 MB, i reckon a typical web application must have multiple workers

Do you know any open source template which demonstrate how multiple workers sit along with single frontend react app. If it has sample auth setup , that'd be great.
3 Replies
Walshy
Walshy3mo ago
Only 1 MB on free plan, 10 MB on paid. You can have a very large app on paid Regardless, multi-worker setup would be a nice template. cc: @Nevi | Product Manager But no, I don't know of any templates/examples today
anand248
anand248OP3mo ago
For faster performance and replication, I reckon smaller workers make more Sense? Does cloudflare replicate ALL workers everywhere all the time or just on first request ?
Walshy
Walshy3mo ago
Size doesn't change replication either. It will improve startup time but that's marginal in most cases (wrangler will also emit your startup time so if you see it getting too high then yeah, I'd recommend splitting out)
Want results from more Discord servers?
Add your server