Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Single Domain Vs Multiple or subdomain

ashishkhadpe
Level 3
Level 3

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
Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor
3 Replies
Gaurav-Behl
Community Advisor
Community Advisor

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.

ashishkhadpe
Level 3
Level 3

Thank you Gaurav for the answer.

Can you also provide your suggestions on point no 2?

Gaurav-Behl
Correct answer by
Community Advisor
Community Advisor