Skip to content

Commit 687a5d0

Browse files
committed
feat(trogon-nats): implement Claim Check pattern for oversized payloads
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent dea4118 commit 687a5d0

File tree

28 files changed

+816
-252
lines changed

28 files changed

+816
-252
lines changed

devops/docker/compose/.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# GITHUB_STREAM_NAME=GITHUB
99
# GITHUB_STREAM_MAX_AGE_SECS=604800
1010
# GITHUB_NATS_ACK_TIMEOUT_SECS=10
11-
# GITHUB_MAX_BODY_SIZE=26214400
1211

1312
# --- GitLab Source ---
1413
# GITLAB_WEBHOOK_SECRET=
@@ -17,7 +16,6 @@
1716
# GITLAB_STREAM_NAME=GITLAB
1817
# GITLAB_STREAM_MAX_AGE_SECS=604800
1918
# GITLAB_NATS_ACK_TIMEOUT_MS=10000
20-
# GITLAB_MAX_BODY_SIZE=26214400
2119

2220
# --- Linear Source ---
2321
# LINEAR_WEBHOOK_SECRET=
@@ -35,7 +33,6 @@
3533
# SLACK_STREAM_NAME=SLACK
3634
# SLACK_STREAM_MAX_AGE_SECS=604800
3735
# SLACK_NATS_ACK_TIMEOUT_SECS=10
38-
# SLACK_MAX_BODY_SIZE=1048576
3936
# SLACK_TIMESTAMP_MAX_DRIFT_SECS=300
4037

4138
# --- Logging ---

devops/docker/compose/compose.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ services:
2929
GITHUB_STREAM_NAME: "${GITHUB_STREAM_NAME:-GITHUB}"
3030
GITHUB_STREAM_MAX_AGE_SECS: "${GITHUB_STREAM_MAX_AGE_SECS:-604800}"
3131
GITHUB_NATS_ACK_TIMEOUT_SECS: "${GITHUB_NATS_ACK_TIMEOUT_SECS:-10}"
32-
GITHUB_MAX_BODY_SIZE: "${GITHUB_MAX_BODY_SIZE:-26214400}"
3332
RUST_LOG: "${RUST_LOG:-info}"
3433
depends_on:
3534
nats:
@@ -79,7 +78,6 @@ services:
7978
GITLAB_STREAM_NAME: "${GITLAB_STREAM_NAME:-GITLAB}"
8079
GITLAB_STREAM_MAX_AGE_SECS: "${GITLAB_STREAM_MAX_AGE_SECS:-604800}"
8180
GITLAB_NATS_ACK_TIMEOUT_MS: "${GITLAB_NATS_ACK_TIMEOUT_MS:-10000}"
82-
GITLAB_MAX_BODY_SIZE: "${GITLAB_MAX_BODY_SIZE:-26214400}"
8381
RUST_LOG: "${RUST_LOG:-info}"
8482
depends_on:
8583
nats:
@@ -104,7 +102,6 @@ services:
104102
SLACK_STREAM_NAME: "${SLACK_STREAM_NAME:-SLACK}"
105103
SLACK_STREAM_MAX_AGE_SECS: "${SLACK_STREAM_MAX_AGE_SECS:-604800}"
106104
SLACK_NATS_ACK_TIMEOUT_SECS: "${SLACK_NATS_ACK_TIMEOUT_SECS:-10}"
107-
SLACK_MAX_BODY_SIZE: "${SLACK_MAX_BODY_SIZE:-1048576}"
108105
SLACK_TIMESTAMP_MAX_DRIFT_SECS: "${SLACK_TIMESTAMP_MAX_DRIFT_SECS:-300}"
109106
RUST_LOG: "${RUST_LOG:-info}"
110107
depends_on:

rsworkspace/Cargo.lock

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rsworkspace/crates/trogon-nats/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ edition = "2024"
77
workspace = true
88

99
[dependencies]
10-
async-nats = { workspace = true, features = ["ring", "nkeys", "jetstream"] }
10+
async-nats = { workspace = true, features = ["ring", "nkeys", "jetstream", "object-store"] }
1111
bytes = { workspace = true }
1212
futures = { workspace = true }
1313
opentelemetry = { workspace = true }
1414
serde = { workspace = true }
1515
serde_json = { workspace = true }
16-
tokio = { workspace = true, features = ["time"] }
16+
tokio = { workspace = true, features = ["time", "io-util"] }
1717
tracing = { workspace = true }
1818
tracing-opentelemetry = { workspace = true }
1919
trogon-std = { workspace = true }

0 commit comments

Comments
 (0)