Development guidelines after central-master code merge
Refer common update required General update for services to be Central-Instance compatible
make use of centralInstanceUtil class to perform any tenantId manipulations, manual manipulation of tenantId is to be avoided for common purposes like getting state-level tenantId, state-specific Kafka topic. Please read the following methods from MultiStateInstanceUtil class found in the common-services package and make use of them as mentioned in the document.
HTML :
3. New environment variables to be added mandatorily for environments
is.environment.central.instance=false
state.level.tenantid.length=2
state.schema.index.position.tenantid=1
The environment should be set to false when the current server is not for multi-state(non-central-instance), disabling and enabling this make the methods in the multiStateUtil class behave as required.
The state-level tenant length describes till what part of the whole tenantId is representing the state part. for eg: in tenantId “in.statea.tenantx” in.statea represents the state part so the value will be 2.
The schema index position points to the substring of the tenantId whose value represents the schema name of the database for the given state.