ქსელი4 წუთის საკითხავი
A subdomain per server, and why it is worth the five minutes
play.yourdomain, api.yourdomain, db.yourdomain. What this buys you beyond neatness, and what it costs you when you migrate.
ეს სტატია ჯერ ინგლისურადაა. ვთარგმნით.
Handing out an IP address and a port works. It also means that every future change - a migration, an upgrade, a move to another location - requires telling every person who wrote it down. A subdomain makes that a record you edit instead.
One name per thing
- play.example.com for the game server, which is what people memorise.
- api.example.com for the application, so it can move independently.
- db.example.com if anything external connects, though usually nothing should.
The cost
Five minutes and a TTL you should lower before a move. That is the entire cost, and it is paid once.