@@ -429,19 +429,23 @@ export async function importRemoteCache (name) {
429429}
430430
431431/**
432- * The total number of domains deployed to a host.
433- * A domain consists of one or more models.
434- * Each model represents a domain unless it specifies
435- * the name of another model in `ModelSpecification.domain`,
436- * in which case it is a subdomain within the bounded context
437- * of that domain or simply a supporting entity. Such models
438- * run in the same threadpool and share the same storage
439- * namespace (e.g. collections or tables in the same database)
440- *
432+ * The total number of services deployed to a host. A
433+ * service corresponds to a bounded context containing
434+ * one or more subdomains. A sub/domain corresponds to
435+ * an Aegis domain model. So a service consists of one or
436+ * more Aegis domain models. Each model represents a service
437+ * unless it specifies the name of another model in
438+ * `ModelSpecification.domain`, in which case it is a subdomain
439+ * within a bounded context (service) or simply a supporting entity.
440+ * If it specifies its own name, then that is the name of a bounded
441+ * context (service) of which other models can be members. Models
442+ * in a bounded context (service) run in the same threadpool and
443+ * share the same storage namespace (e.g. their data live in the
444+ * same database).
441445 *
442446 * @returns {number } sum of domains deployed to host
443447 */
444- export const totalDomains = ( ) =>
448+ export const totalServices = ( ) =>
445449 ModelFactory . getModelSpecs ( ) . filter (
446450 s => ! s . isCached && ( ! s . domain || s . modelName === s . domain )
447451 ) . length
0 commit comments