Leverge multi-tenency while deploy web application with user generated data

Posted a broader question to fully grasp on how can I built using Cloudflare Stack.

Requirements:
  • Deploy a web application which will server the user generated content
  • User can set custom domain to the web application
From what I understand:
  • CF Worker can be used to accept all incoming requests from multiple custom domains to single worker by using map URL pattern
  • User generated data can be stored in D1
  • KV can be used to map the custom domain ID to user generated content
How can I truly achieve a multi-tenency in the above scenario? Any/all help is really appreciated? 🙏
Was this page helpful?