My guess, they’ll contract this out to a player like Cloudflare (like with iCloud relay).
e.g. I can see Apple building a framework for “isomorphic” Apps. Where the front end in SwiftUI and backend in SwiftStateful (a hypothetical framework for permissions/auth and connecting to cloud databases) compiled and deployed to CF Workers or some other edge deployed service.
I think they might even take this one step further and make some future version of MacStudio+WiFi that downloads and executes CFs Workers. If they went this route, it’s unclear if they’d need or want a partner like CF just to deploy and cache the workers.
Disclaimer: I have an investment in Cloudflare. I have no real idea about anything really.