# @skbkontur/cluster-client

> skbkontur cluster client

Latest version **1.0.2** (published 2018-04-03) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @skbkontur/cluster-client
pnpm add @skbkontur/cluster-client
yarn add @skbkontur/cluster-client
bun add @skbkontur/cluster-client
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-04-03 |
| First published | 2017-10-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 42.4 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | ssamooilov_skbkontur, t1mmaas, tihonove, ubitso4, wkich |

## Links

- npm: https://www.npmjs.com/package/@skbkontur/cluster-client
- Repository: https://git.skbkontur.ru/portal/Node.ClusterClient
- npm.io page: https://npm.io/package/@skbkontur/cluster-client

## Dependencies (5)

- [axios](https://npm.io/package/axios.md) ^0.16.2
- [debug](https://npm.io/package/debug.md) ^3.1.0
- [url-join](https://npm.io/package/url-join.md) ^4.0.0
- [@skbkontur/cluster-config-client](https://npm.io/package/@skbkontur/cluster-config-client.md) 0.0.5
- [@skbkontur/span-aggregator-client](https://npm.io/package/@skbkontur/span-aggregator-client.md) ^0.2.1

## Recent versions

- 1.0.2 (latest) — 2018-04-03
- 1.1.0-rc.3 (next) — 2018-08-01
- 1.1.0-rc.2 — 2018-08-01
- 1.1.0-rc.1 — 2018-08-01
- 0.3.5 — 2018-04-03
- 1.0.1 — 2018-03-29
- 0.3.4 — 2018-03-27
- 0.3.3 — 2018-03-20
- 1.0.0 — 2018-03-16
- 1.0.0-rc.10 — 2018-03-14
- 1.0.0-rc.9 — 2018-03-14
- 1.0.0-rc.8 — 2018-03-13
- 0.3.2 — 2018-03-01
- 1.0.0-rc.7 — 2018-02-28
- 1.0.0-rc.6 — 2018-02-21
- … 13 more at https://npm.io/package/@skbkontur/cluster-client/versions

## README

# ClusterClient
Клиент для обращения к сервисам Контура.

### Пример создания клиента для обращения к сервису
```javascript
const {
  Topology,
  ClusterClient,
  strategies,
  senders
} = require('@skbkontur/cluster-client')
const { SequentialRequestStrategy } = strategies
const { RequestSender } = senders

const strategy = new SequentialRequestStrategy(3)
const requestSender = new RequestSender()

const topologyName = 'api.permissions'
const topology = new Topology(this._clusterConfig, topologyName)

return new ClusterClient(topology, strategy, requestSender)
```

### Режим отладки

У модуля существует режим отладки. Для этого вам необходимо в переменные окружения добавить значение `DEBUG=cluster-client*`.

Пример того как вы можете запустить приложение с дебагом модуля `@skbkontur/cluster-client` на windows:
```
set DEBUG=cluster-client* && nodemon --inspect src
```

---
_Source: https://npm.io/package/@skbkontur/cluster-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
