Alpha Version: You are viewing the ALPHA documentation. This is an experimental version and may contain breaking changes.
Skip to main content

EventTopic — Local

Source: reventless-local/src/adapter/EventTopic/LocalEventTopicPublisher.res

AWS equivalent: EventTopic → SNS

How It Works

Events are published to the shared LocalBus using Bus.publishEvent. The bus fans out events to all subscribers using Effect's PubSub primitive. The topic name (set during make) is used as the bus topic key.

The adapter returns a dummy resource with the topic name, which LocalEventCollectorChannel uses to subscribe to the correct bus topic.

Operations

OperationDescription
publishJsonPublishes a single event to the bus topic
publishJsonStreamStream variant — groups items into batches of 10

Key Differences from AWS

AspectLocalAWS
TransportEffect PubSub fan-outSNS topic
DeliverySynchronous (2-3 microtask ticks)Asynchronous SNS → SQS
SubscribersBus subscribersSNS subscriptions (SQS, Lambda, etc.)
Fan-outUnbounded or bounded PubSubSNS unlimited subscriptions