RedCrab Italiano
Research

The criterion behind RedCrab, and the papers that state it

RedCrab realizes a criterion: where each part of a remote call belongs, and how to check that it stays there. First the criterion, then what has been written on it.

The criterion

Where each part of a remote call belongs

Calling a capability over a broker brings in work the domain never asked for: channels, correlation, pending state, dispatch, failures, outcomes. The reference paper answers where each piece belongs, in three steps. RedCrab holds every piece where the answer puts it, and a test pins each one.

That is the second half of the name: a Checkable Responsibility Allocation to Boundary elements.

1 Two questions place every responsibility

Scope of governance

Does its correctness need agreement beyond one node?

Local: one node can settle it alone.

Distributed: it is correct only if other nodes hold the same convention.

Role

Would it survive if the remote interaction became an in-process typed call of the same operation?

Execution: no; it exists only because the interaction is remote.

Semantics: yes; it fixes what a request, a reply, a failure or an outcome means.

2 Four families: the 15 responsibilities of one exchange, each in one cell

Local
Distributed
Execution
LELLocal Execution Leakage
  • LEL-1 Broker client construction and access
  • LEL-2 Pending state
  • LEL-3 Reply consume loop
  • LEL-4 Request consume loop
  • LEL-5 Technical failures
DELDistributed Execution Leakage
  • DEL-1 Operation-channel binding
  • DEL-2 Request-reply pairing
  • DEL-3 Payload representation
  • DEL-4 Correlation binding
Semantics
LSLLocal Semantics Leakage
  • LSL-1 Unmatched reply handling
  • LSL-2 Failure normalization
  • LSL-3 Handler dispatch
DSLDistributed Semantics Leakage
  • DSL-1 Request payload
  • DSL-2 Reply payload
  • DSL-3 Error/outcome payload

Correlation is DEL: agreed among the participants, yet gone with the broker. Failure normalization is LSL: shared with nobody, yet it fixes what an outcome means.

3 Three objectives, one treatment per family

  • Minimal explicit agreement
  • A single authority over whatever must be agreed
  • Confinement that is checkable rather than disciplined

The objectives are chosen, not entailed: other objectives would prescribe other treatments.

DELEliminated by convention

Alone among the families, it can be derived deterministically from identifiers both sides already hold: derivation removes the datum instead of declaring it.

Governed per-operation protocol binding

RedCrab.ProtocolBinding

DSLAsserted centrally

Meaning cannot be generated: it needs one authoritative assertion in a governed artifact, not a runtime mediator.

Governed operation contract; generated local surfaces

RedCrab.OperationContract · RedCrab.Surfaces

LSLReified as an explicit artifact

Left in the domain flow it would be unreviewable; made an artifact, it is explicit without the agreement that centralizing it would demand.

Local policies and handler dispatcher

RedCrab.LocalPolicies

LELConfined by construction

A mechanism a node may still name is confined only by discipline; construction makes its absence checkable.

Per-node Requestor/Replier Runtimes; the broker threshold the runtimes stand on

RedCrab.Runtime.Requestor · RedCrab.Runtime.Replier · RedCrab.Transport.Abstractions

Publications

What has been written on it

RedCrab is the reference realization of the request–reply boundary that the reference paper prescribes. The papers are listed from the most recent; each with its abstract and the BibTeX to cite it.

AcceptedReference
From Leakage to Allocation: A Criterion for Request–Reply Boundaries over Brokers
Nicola Boffoli, Corrado Loglisci and Stefano Mazzoleni
NEXT-SOFT @ ARTIIS 2026. Accepted, to appear in the conference proceedings.

The paper calls RedCrab Bartoo, its former name.

Abstract

Exposing a capability as Request–Reply over a broker requires channels, request–reply pairing, correlation, payload conversion, pending state, dispatch, failure normalization, and outcome interpretation. The pattern literature names them and mature frameworks implement them; what remains unstated is their ownership, which each framework settles implicitly through the abstractions it exposes. Teams are left without a criterion for deciding which responsibilities may legitimately remain in their own application code, and on what grounds. This paper proposes one. Responsibilities are classified by the scope of governance they require and by the role they play in the interaction, yielding four families; three chosen design objectives then prescribe one treatment for each, whether to eliminate it by convention, assert it centrally, reify it as an explicit artifact, or confine it by construction. It yields a boundary architecture that keeps the broker an agnostic substrate rather than an application orchestrator, partly realized in a working system whose degree of conformance is open to inspection, responsibility by responsibility. Used to characterize existing solutions, it states what each leaves in application code.

BibTeX
@inproceedings{boffoli2026leakage,
  title     = {From Leakage to Allocation: A Criterion for Request--Reply Boundaries over Brokers},
  author    = {Boffoli, Nicola and Loglisci, Corrado and Mazzoleni, Stefano},
  booktitle = {NEXT-SOFT, special session of ARTIIS 2026, the International Conference on Advanced Research in Technologies, Information, Innovation and Sustainability},
  year      = {2026},
  note      = {Accepted, to appear in the conference proceedings}
}