Sling API vs JCR API
Hello Everyone, AEM is a Web Application Developer based on content. Technology stack of AEM contains both Sling and JCR. What is Sling and JCR When and how to use sling api and jcr api What is Sling and JCR Sling: AEM is built using sling, a web application framework based on REST principles. Sling uses a JCR repository, such as Apache Jackrabbit, or in the case of AEM, the CRX Content Repository, as its data store. It deploy the application in the form of OSGi bundle. JCR (Java Content repository) : Basically a place where the content/data is stored. You can store data as nodes and node properties i.e content repository is hierarchical and represented as a tree structure. When to use sling or JCR Sling : In the most cases it is recommended to use the sling api. The higher-level API(Sling) is faster to write and far more readable and maintainable in the long run. Even if performance is really needed if we compare both the API the difference will be...