3 ms·
I'd recommend the opposite, as with a versioned URL you can very easily route stuff to different machines by simple URL inspection and have a very clean separat
by idlewords 6y ago
I'd recommend the opposite, as with a versioned URL you can very easily route stuff to different machines by simple URL inspection and have a very clean separation between versions.
- dnautics 6y agoUnless you're talking about a human dispatching the request (url toolbar or via tool like curl) There's nothing special between a url path or a content header Either way it's layer 7 routing. What was the advantage again?
- packetlost 6y agoLoad balancers/reverse proxy have first-class support for routing based on paths, but support for routing based on headers is trickier or not possible depending on the software.
- wtetzner 6y agoI think they're useful for different things. Media-type versioning is useful for supporting different data types/representations of the same resource. URL versioning is useful for versioning resources themselves and their behavior/business logic.