Expand my Community achievements bar.

SOLVED

Single Domain Vs Multiple or subdomain

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Level 10

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.

Avatar

Level 4

Thank you Gaurav for the answer.

Can you also provide your suggestions on point no 2?

Avatar

Correct answer by
Level 10