notifications

The notifications section contains keys that are created by the Model Loading Engine.

This section is initially empty with keys added when data models are processed.

The typical format of a notification key is:

config/application/notifications/modelsProcessed/<TenantName>/<CacheName>

For example,

config/applicatioin/notifications/modelsProcessed/<TenantName>/PRODUCT_CACHE

When the Model Loading Engine micro service completed a model loading activity, the date value for the appropriate cache is updated. A key for that cache is created if it does not exist.

The value of this key is the current time (in milliseconds) when the notification was sent. Consul notifies all Offer Search Engine micro service that have registered for these notifications. These micro services then update their corresponding caches without requiring a restart of the application or container.

The following image shows a sample key-value notification: