Single Domain Vs Multiple or subdomain

ashishkhadpe

21-08-2019

Hi All,

We are currently developing few AEM content services in AEM 6.4 which will be consumed later by our mobile application.

I would like to know if anyone has already worked on it. I need guidance in terms of :

  1. Should we host the AEM content services on the same domain as my website like : www.example.com/content-services/. or should we host it with subdomain or separate domain like www.apis.example.com/. Please let me know if we have any specific best practices in terms of AEM guidelines.
  2. What all infrastructure activities we can expect apart from CDN and apache changes for new domains.

Thank you in advance.

Answers (2)

Answers (2)

Gaurav-Behl

MVP

21-08-2019

To me, the answer would vary based on your requirements. Couple of generic points to consider:

1) Security aspects - Is the content supposed to be secure/behind authentication/tokenized?

2) CORS use cases, if any

3) Size of requests, # of requests, size of headers - should you consider cookieless domain for any use case?

4) Existing architecture/setup

5) SEO requirements

6) Caching requirements

7) Flushing requirements, frequency of rollout/changes

etc.