Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

  1. Refer common update required General update for services to be Central-Instance compatible

  2. 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.

View file
nameMultiStateInstanceUtil.html

3. New environment variables to be added mandatorily for environments

Code Block
is.environment.central.instance=false
state.level.tenantid.length=2
state.schema.index.position.tenantid=1
  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.

  2. 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.

  3. The schema index position points to the substring of the tenantId whose value represents the schema name of the database for the given state.