feat: v2 rewrite — hexagonal arch, ActivityPub federation, NATS, deployment-ready #1
@@ -7,7 +7,9 @@ use std::sync::Arc;
|
||||
|
||||
// Stream name and subjects used by both publisher and consumer.
|
||||
const STREAM_NAME: &str = "THOUGHTS_EVENTS";
|
||||
const STREAM_SUBJECTS: &[&str] = &[">"];
|
||||
// Explicit prefixes instead of ">" — NATS WorkQueue retention disallows
|
||||
// the catch-all ">" wildcard without also setting no_ack = true.
|
||||
const STREAM_SUBJECTS: &[&str] = &["thoughts.>", "likes.>", "boosts.>", "follows.>", "users.>"];
|
||||
const CONSUMER_NAME: &str = "worker";
|
||||
// Redelivery timeout: if a message is not acked within this time, NATS redelivers it.
|
||||
const ACK_WAIT_SECS: u64 = 30;
|
||||
|
||||
Reference in New Issue
Block a user