Is this a sensible approach to use in AEM?
So i would like to ask before I spend the time prototyping this up if you think this is a sensible approach to a problem I am trying to solve.
The issue: I have an Ecommerce site with a large number of categories. I don't want to load them all into AEM if I can help it. I want to be able to have a basic layout that all categories will use unless it is specifically overridden for a specific category.
My solution: There will be a layer between the front end and AEM, this will translate a url from say /shop/categoryA to /content/categories?categoryId=A and make a call to AEM.
in AEM at /content/categories will be some logic that checks if this category has been created if so return it, if not return the generic category layout.
Do you think this is a sensible approach? The layer between AEM and the front end can be taken as a given we will be implementing that. I'm more concerned about my plan to lookup categories in AEM does this seem like the best way to solve my problem.