AggregateIds

The one rule of which aggregate ids no route or store keeps as they were given, so that every path an id enters by (admission of a caller's or a peer's request, the intake, a saga's derived and a timer's commands, an id a generator gives, the test DSL) and migrate-data, which reports the 9.x aggregates that have one before the cut-over, never disagree about an id. An aggregate exists only with an id each of its by-id routes reaches, behind the gateway in front of the service too (#6594).

Properties

Link copied to clipboard
const val MAX_BYTES: Int

The most bytes in UTF-8 of an aggregate id admission takes (AggregateIdLimits.MAX_BYTES).

Link copied to clipboard
const val MAX_LENGTH: Int

The longest aggregate id admission takes, in UTF-16 units (AggregateIdLimits.MAX_LENGTH).

Link copied to clipboard
const val UNCARRIED: String

The characters a gateway's path check refuses in a path segment, encoded: /, ; and \.

Functions

Link copied to clipboard
fun oversized(name: String, id: String?): String?

Why id, the name of a request, is too long; checked one by one, without a list of pairs per command.

fun oversized(requestId: String, aggregateId: String?, tenantId: String, scope: Scope, body: Any? = null): String?

Why admission refuses a request's ids as malformed (wow.command.malformed) before any store sees them, or null when it takes them: its requestId, tenantId, and the owner and space of scope, longer than MAX_LENGTH characters, its aggregateId refused (null before one is known), and the owner or space body transfers the aggregate to (oversizedBody) when given. The one check of the gateway, of a peer's admission and of the test DSL.

Link copied to clipboard
fun oversizedBody(body: Any): String?

Why the owner or space body transfers the aggregate to is too long, or null when it transfers none or fits.

Link copied to clipboard
fun refused(id: String?): String?

Why admission refuses id as an aggregate id, as text, or null when it takes it: longer than MAX_LENGTH UTF-16 units, or unaddressable. A blank id is refused where it is read.

Link copied to clipboard

Why id, an aggregate id, is one admission refuses whatever its length in UTF-16 units, as text, or null when it is not: