Subdomain or path for dev/stage/uat environments
- 1 minutes read - 184 wordsIn my previous two companies, everytime I used the subdomain way without thinking much about this. Recently I wondered the rational behind this decisions. I had the clear answers two days ago. Today I have the time to put it into this writing.
Factors |
subdomain(dev.example.com) |
subdomain reasons |
path (example.com/dev/) |
path reasons |
server side performance |
9 |
|
5 |
no way to point to different IP. CDN rules like cloudflare page rules? |
private dns resolving |
10 |
cloud |
1 |
|
client side performance |
10 |
|
5 |
one tab only have limited connections to a specific domain. |
routing simplicity |
8 |
|
8 |
reverse proxy conf |
dev/delivery productivity(speed/velociyt) |
10 |
|
5 |
Ops usaully will be the bottleneck. |