

Otherwise, this state might get lost if an instance is stopped. State must not be kept in memory but persisted in the repository. If there is the need to identify the primary in the cluster, the Apache Sling Discovery API can be used to detect it. Therefore, old code must not break with content created by new code and new code must be able to deal with old content. The code must be resilient especially as an instance might be stopped at any point in time.ĭuring the update of AEM as a Cloud Service, there will be instances with old and new code running in parallel. This means that there is always more than one instance running. Code Must Be Cluster-AwareĬode running in AEM as a Cloud Service must be aware of the fact that it is always running in a cluster. This document presents guidelines for developing on AEM as a Cloud Service and about important ways in which it differs from AEM on premises and AEM in AMS. AEM as a Cloud Service Development Guidelines
