Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/ext-drasi-change-driven-agents-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ This example focuses on an inventory agent that automatically generates purchase

Data lives in a Postgres instance — when a product's stock level dips below its threshold (or reaches zero), it emits a low-level change event that is tracked by two Drasi queries: one for "low" and one for "critical". All of the low-level changes are transparent to downstream consumers, as queries **only** emit change events when their conditions are satisfied. The inventory agent does not have to do any additional processing.

The setup script installs a demo application Redis and creates namespace-local Dapr pub/sub components for the `PostDaprPubSub` reaction and inventory agent. Both components point to this broker, which is separate from Drasi's internal pub/sub infrastructure.

## Prerequisites

- [Docker](https://docs.docker.com/get-started/get-docker/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: drasi-pubsub
name: inventory-agent-pubsub
namespace: drasi-system
spec:
type: pubsub.redis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ spec:
queries:
low-stock-event-query: >
{
"pubsubName": "drasi-pubsub",
"pubsubName": "inventory-agent-pubsub",
"topicName": "drasi-events-low-stock-event-query",
"format": "Unpacked",
"skipControlSignals": true
}

critical-stock-event-query: >
{
"pubsubName": "drasi-pubsub",
"pubsubName": "inventory-agent-pubsub",
"topicName": "drasi-events-critical-stock-event-query",
"format": "Unpacked",
"skipControlSignals": true
Expand Down
Loading