#Multiple workers vs 1 worker with routes
4 messages · Page 1 of 1 (latest)
I also had the same dilemma. Eventually, I just figured out that if exceed the 1MB upload limit. I have to split the routes into multiple workers, otherwise, a single worker works fine.
At a certain size it can make sense to split for maintainability. The micro-frontend architecture follows this kind of mentality: https://blog.cloudflare.com/better-micro-frontends/
My personal recommendation would be to stick with a single worker and something like itty-router or Hono until you find a need to create multiple.
I've wrestled with the same dilemma. I decided to split into different workers where the functions are very different. I don't want to break functionality A when deploying functionality in B.