I’m a bit Ruby on Rails rookie and would like to aply the idea of collectiveidea.com/blog/archives/2013/06/13/building-awesome-rails-apis-part-1.
I want to have one codebase on github, a ruby on rails app but scale independently the web app, the api, the admin dahsboard, etc using Rails namespace and DNS. It means I have one app connected to render and they’d need to push to different machines.
If your API gets hammered, you can point the DNS for the API subdomain to another set of servers and scale it independently of your main app.
Is it possible to use DNS so that
api.example.com points to a certain Render Service,
app.example.com to another Render Service and
www.example.com to another?
This way I’d hope if each render srver has autoscale, I could scale up and down those three “bounded/seperate” needs from a single codebase, just suing DNS and Rails namespaces to scale independently each stuff.
In a way i could put this usecase like this: 1 monorepo to deploy to 3 Render.com Services on the same Domain (example.com) thanks to some “procfile”, each serving a different subdomain api/example.com, admin.example.com…
Hope I’m clear enough and thanks for any help,
Note: I’ll use a custom domain plugged to Render and Clouflare