Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a4cc5b2
feat(lib-rt-helpers): read sets and keys, and give up a subscription
fr3shw3b Aug 21, 2026
36f6f47
fix(lib-rt-ws-registry): recognise a message the cluster has already …
fr3shw3b Aug 21, 2026
e836c8b
feat(lib-rt-ws-redis): put nodes in groups and route between them
fr3shw3b Aug 21, 2026
f9c80d8
feat(lib-rt-core): let a websocket api be deployed as more than one node
fr3shw3b Aug 21, 2026
87e2689
feat(lib-rt-sdk-schema): name the failure to join the other nodes
fr3shw3b Aug 21, 2026
747680f
feat(lib-rt-sdk-ffi): carry the cluster settings and its startup failure
fr3shw3b Aug 21, 2026
49f5b43
feat(lib-rt-sdk-node): read the cluster settings and build with clust…
fr3shw3b Aug 21, 2026
8e54498
feat(lib-rt-sdk-python): read the cluster settings and build with clu…
fr3shw3b Aug 21, 2026
6e4bddd
feat(runtime-core): ship the image able to cluster
fr3shw3b Aug 21, 2026
c1cb22f
feat(runtime-nodejs): build the local image able to cluster
fr3shw3b Aug 21, 2026
9692474
feat(lib-rt-core): recognise a message a client sent to another node
fr3shw3b Aug 21, 2026
da022c6
feat(lib-rt-helpers): give the crates that build on this one somewher…
fr3shw3b Aug 21, 2026
d4680bd
feat(lib-rt-core): make joining a cluster something a test can run
fr3shw3b Aug 21, 2026
c8105ac
test(runtime-libs): run the redis tests against a cluster as well
fr3shw3b Aug 21, 2026
76c6c53
chore: pin the rust toolchain
fr3shw3b Aug 21, 2026
b4f85b3
fix(lib-rt-consumer-sqs): quieten the large error lint on the sdk's e…
fr3shw3b Aug 21, 2026
6a06c1c
fix(lib-rt-core): take the auth response off the stack where it helps
fr3shw3b Aug 21, 2026
b255c92
test(runtime-libs): keep triggering a schedule until it is picked up
fr3shw3b Aug 21, 2026
9ab67e2
fix(runtime-libs): refuse an empty name as a node's identity
fr3shw3b Aug 21, 2026
6662533
fix(lib-rt-ws-redis): keep a connection whose entry would not write
fr3shw3b Aug 21, 2026
ed24c50
fix(lib-rt-core): keep a cluster's credentials out of what is logged
fr3shw3b Aug 21, 2026
68c61fa
fix(lib-rt-ws-redis): leave a node group without a joiner losing it
fr3shw3b Aug 21, 2026
3c6bd3c
fix(lib-rt-ws-redis): keep trying to follow a node into its new group
fr3shw3b Aug 21, 2026
bfa17c1
fix(lib-rt-ws-redis): keep the channels of a group a node came back to
fr3shw3b Aug 21, 2026
b2b2fc4
test(lib-rt-ws-redis): wait for a connection's whereabouts to be written
fr3shw3b Aug 21, 2026
7230653
test(lib-rt-ws-redis): clear the connection entries a run leaves behind
fr3shw3b Aug 22, 2026
7dacb64
test(lib-rt-ws-redis): wait for a moved node to take up its new channels
fr3shw3b Aug 22, 2026
2f2968a
fix(lib-rt-core): settle on one name for a node and keep it
fr3shw3b Aug 22, 2026
bd20519
chore(runtime-libs): ensure valkey cluster not ready error is handled…
fr3shw3b Aug 22, 2026
3e34641
test(runtime-libs): wait for the valkey nodes before forming a cluster
fr3shw3b Aug 22, 2026
93be1d8
test(runtime-libs): notice a valkey cluster that never formed
fr3shw3b Aug 22, 2026
f060219
test(lib-rt-ws-redis): wait for the probe rather than for any message
fr3shw3b Aug 22, 2026
674c013
docs(lib-rt-ws-redis): say what forgetting a connection first does buy
fr3shw3b Aug 22, 2026
0624ba6
fix(runtime-libs): give back the record of a message that was not sent
fr3shw3b Aug 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions apps/runtime/core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions apps/runtime/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ tracing = "=0.1.44"

[dependencies.celerity_runtime_core]
path = "../../../libs/runtime/core"
# Shipped with the image so a deployment turns clustering on with environment
# variables rather than a rebuild. With no Redis deployment configured it stays
# a single node.
features = ["ws_clustering"]

[dependencies.celerity_helpers]
path = "../../../libs/runtime/helpers"
Expand Down
2 changes: 1 addition & 1 deletion apps/runtime/nodejs/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ COPY --from=runtime sdk/ ./sdk/
# Install napi-cli and build the native addon for this platform
WORKDIR /build/sdk/node
RUN npm install
RUN npx napi build --platform --features celerity_local_consumers
RUN npx napi build --platform --features celerity_local_consumers,ws_clustering

# -----------------------------------------------------------------------------
# Stage 1b: Lightweight cache — only the final NAPI artifacts (~100 MB vs ~14 GB)
Expand Down
5 changes: 5 additions & 0 deletions libs/runtime/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions libs/runtime/consumers/consumer-sqs/src/message_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,11 @@ impl SQSMessageConsumer {
}
}

// The error is the SDK's own, and the lint's advice is to make it smaller,
// which is not ours to do. Boxing it here instead would change how every
// caller matches on it, to save a hundred and change bytes on the path
// where a network call has already failed.
#[allow(clippy::result_large_err)]
async fn terminate_visibility_timeout(&self, messages: &[MessageHandle]) -> Result<(), Error> {
if !self.config.terminate_visibility_timeout {
debug!("sqs consumer not configured to terminate visibility timeout, moving on");
Expand All @@ -387,6 +392,8 @@ impl SQSMessageConsumer {
Ok(())
}

// The error is the SDK's own, as above.
#[allow(clippy::result_large_err)]
async fn delete_messages(
&self,
messages: &[MessageHandle],
Expand Down Expand Up @@ -438,6 +445,11 @@ impl SQSMessageConsumer {
}

#[instrument(skip(self))]
// The error is the SDK's own, and the lint's advice is to make it smaller,
// which is not ours to do. Boxing it here instead would change how every
// caller matches on it, to save a hundred and change bytes on the path
// where a network call has already failed.
#[allow(clippy::result_large_err)]
async fn receive_messages(&self) -> Result<(), SdkError<ReceiveMessageError>> {
let rcv_message_output = self
.client
Expand Down
4 changes: 4 additions & 0 deletions libs/runtime/consumers/consumer-sqs/src/visibility_timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ impl VisibilityTimeoutExtender {
}
}

// The error is the SDK's own, and shrinking it is not ours to do. Boxing it
// would change how the caller matches on it, to save bytes on the path
// where a call to AWS has already failed.
#[allow(clippy::result_large_err)]
pub async fn change_visibility_timeout(
&self,
messages: &[MessageHandle],
Expand Down
11 changes: 11 additions & 0 deletions libs/runtime/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ optional = true
[dependencies.celerity_ws_registry]
path = "../ws/ws-registry"

[dependencies.celerity_ws_redis]
path = "../ws/ws-redis"
optional = true

[dev-dependencies.celerity_helpers]
path = "../helpers"
features = ["test-support"]

[dev-dependencies]
# tonic 0.14 builds on tower 0.5 while the crate itself still uses 0.4, so
# the test connector needs the newer one under a name that cannot collide.
Expand Down Expand Up @@ -108,3 +116,6 @@ gcloud_consumers = [
"dep:celerity_consumer_gcloud_tasks",
]
celerity_local_consumers = ["dep:celerity_consumer_redis"]
# Lets a WebSocket API be deployed as more than one node. Compiling it in
# changes nothing until a Redis deployment is configured to cluster over.
ws_clustering = ["dep:celerity_ws_redis"]
Loading
Loading