gdesmedt1
CDCloudflare Developers
•Created by Ricky U on 4/10/2025 in #general-help
Pages functions vs workers - the difference
ok - I think this is the part that's tripping me up
You could use a single Worker for both front and backendso you can have 1 system, that has a front end on Svelte, and then the backend running your API's - and it's all in one worker... correct?
11 replies
CDCloudflare Developers
•Created by Ricky U on 4/10/2025 in #general-help
Pages functions vs workers - the difference
This is really helping me as a noob, so thanks for these questions and answers!
One thing I'm struggling to understand is
Can you run multiple "workers" in one "worker" - because you are able to run Svelte and a worker in 1 worker - can you hav emore workers in there? Or do you have run Svelte on Pages - and then link to multiple workers that are seperate for different things?Sorry if that question makes no sense - but trying to make sense of the concept of "workers" vs "pages" - in my mind I have "pages are public or restricted pages that people will access and use and have a UI - and they call various "workers" to do various backend logic stuff" - so then when I hear I can run Svelte ON a worker - I'm like, ok, but where do I then run the "worker" for the backend logic, and if it's in the same "worker" - then how many of these workers can I have on a "worker" 🙂
11 replies
CDCloudflare Developers
•Created by pat on 3/29/2025 in #workers-help
Is it possible to have a worker and a pages app on the same domain
I've been battling to get this up and running myself - but that grok answer has actually helped - and I've decided to go back to 2 seperate things - 1 PAGES and 1 WORKER - and keeping it seperate - and then figuring. out the routing so that it all runs of one URL
6 replies