Trending

World technology news

→
Archive photograph of network cables and a server rack illustrating message delivery infrastructure.
crates.ioIn-depth report

ic-relay 0.1.1 publishes network software for a bounded canister channel

The package describes a durable channel for a fixed pair of canisters. Acknowledgement, duplicate handling and application consumption are separate stages.

·crates.io
Reading progress0%

Two endpoints share a channel

ic-relay 0.1.1 reached crates.io on November 29 with a versioned Docs.rs build. The package describes a durable, bounded channel between a fixed pair of Internet Computer canisters. Its README describes backpressure from an occupied slot and acknowledgement of a duplicate frame without occupying a second slot. In a fixture, one canister prepares a short notification and another applies it to local state. Record when the transport receives it and when the application makes it visible.

Give acknowledgement and consumption their own counters

The README defines acknowledgement as durable receipt. Application work performed after consumption is another stage. Log separate counters for accepted frames and applied notifications in the fixture. Decide which state the UI should show when the first counter increments before the second. Send, receipt and application times can differ. A synthetic operation identifier gives enough context to trace those transitions without storing the message body in diagnostic output.

Retry after a lost acknowledgement

A sender can miss a response even if the receiver has stored the frame. In a disposable environment, suppress the first reply, then retry the retained frame with the same identifier. Compare received frames with application records. A simple notification fixture should end with one visible record. Inspect the receiver’s actual state alongside the transport result so a repeated application action does not remain hidden.

Preserve the signal from a full slot

Pause consumption at the receiving side and prepare a second message. Observe where the sender retains it while the slot is occupied. Resume the receiver and verify the second record in application state. Track retries and retained items separately. In a user interface, make pending work distinguishable from a failed operation so backpressure remains visible at the correct boundary.

Record both sides across an upgrade

Note the package version at both canisters. If deployment temporarily leaves one endpoint on an older version, follow the same pending frame across that boundary. Read both transport state and application state after consuming it. The versioned build establishes a distributable artifact. The fixture determines whether the workflow preserves the intended result during an upgrade.

Use one notification to make the sequence legible

Attach one identifier to both logs and compare send, acknowledgement and consumption events. Begin with a single receiver and a single sender. Check that repeating an attempt preserves the expected application count. Larger payloads and slower consumers belong in extensions of that fixture, where their particular effects remain observable. If the transport receipt arrives before the application changes its record, preserve that timing in the report. The same test can compare the last pending identifier on each endpoint. This reveals whether delays accumulated before receipt or during the consumer’s own processing.

Photo · RobH / Wikimedia Commons ↗ · CC BY-SA 3.0

Sources and verification
Be the first reader ✎ Write a comment

Reader discussion

Discussion prompt

Which bottleneck would you expect as this solution scales?

No comments yet. Be the first to contribute.

Write a comment

Comments are real visitor contributions. Repeated, link-heavy or abusive submissions may be limited.