4 ms·
yes I agress subdomain is definitely better than subpath overall. I personally use the subdomain AND subpath approach for a api and an api service (api.example.
by giorgioz 7y ago
yes I agress subdomain is definitely better than subpath overall.
I personally use the subdomain AND subpath approach for a api and an api service (api.example.com/api)
This way I have the separate DNS but if I want I can add the API service as a subpath to www.example.com/api using AWS API Gateway and avoid an extra round trip call to the DNS and CORS.