Content Criteria
The Content Criteria MicroService is responsible for the processing of content selections, which is the composition of content criteria filters done by the user through the Content Criteria Component.
Installation
You can get started with Content Criteria Microservice by spinning up a docker container from the Docker image mib-cms-microservices-contentcriteria. You can find out more about our Docker Image Feeds here.
Port
The service is by default mapped to Port 8637 in the container.
Dependent services
The service stays behind MibServerApi, which is its consumer.
Environment Variables
Available configurations for the Content Criteria MicroService and for consumer services are listed below. Mandatory configurations are indicated with Required label.
Server Side
The configurations below are available to be set in Content Criteria MicroService's container:
MibDatabaseConfig - Required
Configuration used to indicate the content database, which is the one also used by MibServerApi.
Example:
MIBDATABASECONFIG_CONTENT_TYPE=sql2005
MIBDATABASECONFIG_CONTENT_SERVER=services.mediaibox.com.br
MIBDATABASECONFIG_CONTENT_DATABASE=content
MIBDATABASECONFIG_CONTENT_USERNAME=username
MIBDATABASECONFIG_CONTENT_PASSWORD=secret
MibContentCriteriaMicroServiceServerConfig
Configurations for the MibMiddleware (enable Swagger, Serilog and other things). Refer to MibMiddlewareConfig for complete list of configuration keys.
Example:
MIBCONTENTCRITERIAMICROSERVICESERVERCONFIG_DEFAULT_ENABLEMETRICS=true
MIBCONTENTCRITERIAMICROSERVICESERVERCONFIG_DEFAULT_ENABLEMIBLOGPROVIDER=true
MibLogConfig
Defines general configurations for logging. Please refer to MibLogConfig for complete list of configuration keys.
MibCacheConfig
Defines general configurations for caching. Please refer to MibCacheConfig for complete list of configuration keys.
MibObjectCacheConfig
Defines cache preferences for Mib Objects.
Client Side (MibServerApi)
The configurations below are available to be set in the container of the MibServerApi.
MibContentCriteriaMicroServiceClientConfig - Required
Configures behavior for the client of the Content Criteria Service.
Required
urlMicroService- url of the MibContentCriteria service
Optional
timeoutmax time in seconds to wait for HTTP request completion (default 100)maxRetriesmax times the request should be reattempted in case of failure (default 3)retryIntervalinterval in seconds between request retries (default 2)
Example:
MIBCONTENTCRITERIAMICROSERVICECLIENTCONFIG_DEFAULT_URLMICROSERVICE=mibcontentcriteriaservice
MIBCONTENTCRITERIAMICROSERVICECLIENTCONFIG_DEFAULT_TIMEOUT=100
MIBCONTENTCRITERIAMICROSERVICECLIENTCONFIG_DEFAULT_RETRYINTERVAL=5
MIBCONTENTCRITERIAMICROSERVICECLIENTCONFIG_DEFAULT_MAXRETRIES=5