Skip to content

@purista/core v2.0.5


PURISTA API / @purista/core / DefinitionEventBridgeConfig

Type Alias: DefinitionEventBridgeConfig

DefinitionEventBridgeConfig: object

Defined in: packages/core/src/core/types/DefinitionEventBridgeConfig.ts:6

Settings and advices for the event bridge, which are set in the command or subscription builder. The properties are advices and hints. It depends on the used event bridge implementation and underlaying message broker, if a specific property can be respected.

Type declaration

autoacknowledge

autoacknowledge: boolean

Send the acknowledge to message broker as soon as the message arrives

  • defaults to true for commands
  • defaults to false for subscriptions

durable

durable: boolean

Advise the underlaying message broker to store messages if no consumer is available. Messages will be send as soon as the service is able to consume.

shared

shared: boolean

If set to true, the event bridge is adviced to deliver one message to at least one consumer instance. True is the default value. If set to false, the event bridge is adviced to deliver one message to all consumer instances.

Use case: Receiving Info of message, which need to be passed to all instance to keep information in sync.

In serverless environments, this flag should not have any effect

Default

ts
true