# rda-service-registry

> Service registry for the RDA framework

Latest version **1.4.0** (published 2018-07-15) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install rda-service-registry
pnpm add rda-service-registry
yarn add rda-service-registry
bun add rda-service-registry
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2018-07-15 |
| First published | 2018-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Michael van der Weg |
| Maintainers | ee |
| Keywords | rda, service-registry |

## Links

- npm: https://www.npmjs.com/package/rda-service-registry
- Repository: https://github.com/infect-org/rda-service-registry
- Homepage: https://github.com/infect-org/rda-service-registry#readme
- Issues: https://github.com/infect-org/rda-service-registry/issues
- npm.io page: https://npm.io/package/rda-service-registry

## Dependencies (11)

- [envr](https://npm.io/package/envr.md) ^2.1.3
- [logd](https://npm.io/package/logd.md) ^2.1.3
- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [ee-log](https://npm.io/package/ee-log.md) ^3.0.6
- [express](https://npm.io/package/express.md) ^4.16.3
- [related](https://npm.io/package/related.md) ^2.16.0
- [ee-types](https://npm.io/package/ee-types.md) ^2.1.4
- [rda-service](https://npm.io/package/rda-service.md) ^2.5.0
- [ee-machine-id](https://npm.io/package/ee-machine-id.md) ^1.0.0
- [related-timestamps](https://npm.io/package/related-timestamps.md) ^2.0.0
- [logd-console-transport](https://npm.io/package/logd-console-transport.md) ^1.0.0

## Recent versions

- 1.4.0 (latest) — 2018-07-15
- 1.3.0 — 2018-07-15
- 1.2.1 — 2018-07-15
- 1.2.0 — 2018-07-14
- 1.1.1 — 2018-07-08
- 1.1.0 — 2018-07-08
- 1.0.0 — 2018-07-06

## README

# RDA Service Registry

The service registry knows at all times which service instance is running where.
It is consumed by the RDA-Manager Service which orchestrates the services needed
for the RDA system.

The registry stores its status in a postgres db and is because of that stateless.

## API

### PUT /rda-service-registry.service-instance/:id

This endpoint is used by the services to tell the registry that they are online 
and ready to accept work. Each service needs to call this endpoint every x seconds 
as proof of life. If the service stops calling this endpoint it is assumed to be 
offline.

payload:

```json
{
    "serviceType": "rda-compute-node",
    "instanceId": "uuid.v4"
}
```


### DELETE /rda-service-registry.service-instance/:id

This endpoint is used by the service instances to remove themselves from the RDA
cluster.

---
_Source: https://npm.io/package/rda-service-registry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
