Loading
The ordering key section of aerospike-pubsub-outbound.yml
The ordering-key
section of the
/etc/aerospike-pubsub-outbound/aerospike-pubsub-outbound.yml
controls
how Aerospike records are ordered to the destination.
Here is a list of the ordering key modes:
static
Always order the records by a fixed value.namespace
Uses the namespace of each Aerospike record as the ordering key.set
Uses the set of each Aerospike record as the ordering key.bin
Uses the value of a bin in each Aerospike record as the ordering key.digest
Uses the digest of the Aerospike record as the ordering key.
note
- If an ordering key for a record is missing, then the record is dispatched without an ordering key.
- If an ordering key for a record is specified then a
regional-endpoint
should be specified for the record. Ordering works only when published to a regional endpoint service.
Static ordering keyโ
Always order the records by a fixed value.
Here are the configuration options:
Option | Required | Expected value | Description |
---|---|---|---|
mode | yes | static | Specifies to publish messages with the value option as the ordering key. |
value | yes | The value of the ordering key. |
Exampleโ
ordering-key:
mode: static
value: red
Namespace ordering keyโ
Uses the namespace of each Aerospike record as the ordering key.
Here are the configuration options:
Option | Required | Expected value | Description |
---|---|---|---|
mode | yes | namespace | Specifies to publish messages with the record namespace as the ordering key. |
Exampleโ
ordering-key:
mode: namespace
Set name ordering keyโ
Uses the set name of each Aerospike record as the ordering key.
Here are the configuration options:
Option | Required | Expected value | Description |
---|---|---|---|
mode | yes | set | Specifies to publish messages with the record set name as the ordering key. |
Exampleโ
ordering-key:
mode: set
Bin value ordering keyโ
Uses the value of a bin in each Aerospike record as the ordering key.
Here are the configuration options:
Option | Required | Expected value | Description |
---|---|---|---|
mode | yes | bin | Specifies to publish messages with the record bin value as specified in bin as the ordering key. |
bin | yes | The bin value of the record to use as the ordering key. |
Exampleโ
ordering-key:
mode: bin
bin: id # Order by value of bin "id".
Digest ordering keyโ
Uses the digest of each Aerospike record as the ordering key.
Here are the configuration options:
Option | Required | Expected value | Description |
---|---|---|---|
mode | yes | digest | Specifies to publish messages with the record digest as the ordering key. |
Exampleโ
ordering-key:
mode: digest