> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/tposs/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/tposs/latest/configuration/nats-services/nats-service.md).

# CDM NATS services

## CDM NATS services

TPOSS provides different services that use [NATS](https://nats.io/)-based Cennso Data Mesh (CDM) as a connectivity layer.

These services are:

- [Global lock service](https://docs.cennso.com/components/tposs/latest/configuration/nats-services/global-lock.md)
- [CDMP service](https://docs.cennso.com/components/tposs/latest/configuration/nats-services/cdmp.md)

You can configure each service using the TPOSS Helm chart:

```yaml
nats-services:
  {SERVICE_NAME}:
    {SERVICE_SETTINGS}
```

Each service has its own configuration options applicable only to this service. You can find more information about service-specific configuration options in the respective documents. This document provides information about generic configuration options applicable to both services:

- **nats-services.{SERVICE_NAME}.enabled** - Enables the service.
- **nats-services.{SERVICE_NAME}.server** - Endpoint of the NATS server.
- **nats-services.{SERVICE_NAME}.backoff_period** - Timeout in milliseconds to reconnect to a NATS server in case the connection is lost.
- **nats-services.{SERVICE_NAME}.pool_size** - Number of the client connections established to the NATS server.
- **nats-services.{SERVICE_NAME}.max_connections** - Number of additional client connections established to the NATS server if the number of connections established in **nats-services.{SERVICE_NAME}.pool_size** is not enough.
- **nats-services.{SERVICE_NAME}.connection_timeout** - Timeout in milliseconds to wait for the establishment of the connection to a NATS server.
- **nats-services.{SERVICE_NAME}.request_histogram_buckets** - The time values that show how many NATS requests were handled for that time or less. The values are translated into Prometheus histogram buckets and are provided in milliseconds.
- **nats-services.{SERVICE_NAME}.recv_timeout** - Timeout in milliseconds that specifies the maximum wait time for a response from the NATS server.
- **nats-services.{SERVICE_NAME}.send_timeout** - Timeout in milliseconds that specifies the maximum wait time for the underlying TCP stack to accept a send operation.
