@entifix/amqp 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/package.json +7 -10
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# @entifix/amqp
|
|
2
|
+
|
|
3
|
+
RabbitMQ, on `amqplib`. The root entry provides the connection, the channel and a health probe. The `transactions` subpath implements the `EventBus` port from `@entifix/transactions`: publishing onto a topic exchange, consuming with retry, and quarantining a message that cannot be processed rather than redelivering it forever.
|
|
4
|
+
|
|
5
|
+
Bus throughput and failures are recorded as metrics.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @entifix/amqp effect
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Entry points
|
|
14
|
+
|
|
15
|
+
| Import | What it holds |
|
|
16
|
+
| ---------------------------- | -------------------------------------------------------------------------- |
|
|
17
|
+
| `@entifix/amqp` | `makeAmqpConnector`, `AmqpLayer`, `AmqpChannelTag`, `AmqpHealthProbeLayer` |
|
|
18
|
+
| `@entifix/amqp/transactions` | `makeAmqpEventBus`, `AmqpEventBusLayer`, bus metrics |
|
|
19
|
+
|
|
20
|
+
## Optional peers
|
|
21
|
+
|
|
22
|
+
Install these only if you use what needs them.
|
|
23
|
+
|
|
24
|
+
| Peer | Needed by |
|
|
25
|
+
| ----------------------- | ---------------------------- |
|
|
26
|
+
| `@entifix/transactions` | `@entifix/amqp/transactions` |
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
Tier 2 (adapters) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entifix/amqp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "RabbitMQ connection and health probe, and an optional event bus for @entifix/transactions with retry and quarantine.",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -36,10 +37,6 @@
|
|
|
36
37
|
],
|
|
37
38
|
"nx": {
|
|
38
39
|
"tags": [
|
|
39
|
-
"layer:entifix",
|
|
40
|
-
"scope:shared",
|
|
41
|
-
"entifix:client",
|
|
42
|
-
"runtime:datastore",
|
|
43
40
|
"tier:2"
|
|
44
41
|
],
|
|
45
42
|
"sourceRoot": "packages/ts/amqp-client/src",
|
|
@@ -62,18 +59,18 @@
|
|
|
62
59
|
"dependencies": {
|
|
63
60
|
"@swc/helpers": "0.5.23",
|
|
64
61
|
"amqplib": "2.0.1",
|
|
65
|
-
"@entifix/business": "0.1.
|
|
66
|
-
"@entifix/core": "0.1.
|
|
62
|
+
"@entifix/business": "0.1.2",
|
|
63
|
+
"@entifix/core": "0.1.2"
|
|
67
64
|
},
|
|
68
65
|
"devDependencies": {
|
|
69
66
|
"@types/amqplib": "0.10.5",
|
|
70
67
|
"effect": "3.22.1",
|
|
71
|
-
"@entifix/
|
|
72
|
-
"@entifix/
|
|
68
|
+
"@entifix/transactions": "0.1.2",
|
|
69
|
+
"@entifix/testing-unit": "0.1.2"
|
|
73
70
|
},
|
|
74
71
|
"peerDependencies": {
|
|
75
72
|
"effect": ">=3.22 <4",
|
|
76
|
-
"@entifix/transactions": "0.1.
|
|
73
|
+
"@entifix/transactions": "0.1.2"
|
|
77
74
|
},
|
|
78
75
|
"peerDependenciesMeta": {
|
|
79
76
|
"@entifix/transactions": {
|