For a number of reasons not critical to my question, I've decided that my website, currently on the clear web, would serve my users more effectively as an .onion site.
I'm still researching Tor basics and how to bring this to fruition. But there's one aspect I can't seem to wrap my head around:
Q. In the Tor model, what plays the role of CDN (content delivery network, e.g. Cloudlare) ?
My website has a fairly large amount of static HTML/CSS/JS/PNG files. They rarely change. The script embedded in the .js files makes AJAX calls to the site to retrieve data and update the DOM. So the caching of static elements is pretty crucial. I'm using Cloudflare for that task right now.
In the Tor model, what layer/entity would do the caching of static content? I can tell from the explanatory diagrams, that there's an ultimate 'exit node' that would contact my site on port 443 (https). But would it contact my origin server directly without going through a caching layer? If so, presumably I could add additional IIS servers to pick up the load but even then, is there a way to load balance it? In other words, is there a way to point MyDomain.onion to an array of servers instead of just one?
I'm confused as to how to distribute the load if there's no CDN in place. Please enlighten me.
Thanks,
Festus