diff --git a/Indexed Entitites.adoc b/Indexed Entitites.adoc new file mode 100644 index 0000000..ec049f9 --- /dev/null +++ b/Indexed Entitites.adoc @@ -0,0 +1,59 @@ +== Indexed entities + +Defining indexed entities in a cache configuration currently requires those entities to be present in the schema cache. For example: + +[source,xml] +---- + + + + entity.proto + + + +---- +requires the `entity.proto` entry. + +Adding entity schemas to the schema cache, however, can only be performed dynamically at runtime and not statically at startup. + +We should allow static configuration of the schema, either directly in the configuration as character data, or by referencing an external resource: + +[source,xml] +---- + + + + entity.proto + + + + + +---- + +On cache startup, the cache manager will ensure that the schema is added to the schema cache unless it is already present. +It is up to the user to ensure that external resources are identical across all nodes in the cluster.