git repository godev reference
Command stickyrouter subscribes to a NATS subject in the form of
sticky.route.{duration}.{hash}
. From the first time a message is received,
on a subject, all messages for the same {hash}
are routed to the same
reply subject for a duration of {duration}
.
The {duration}
is given as a string in the form of 1h2m3.45s
.
Usage: stickyrouter [FLAGS]
Flag | Usage |
---|---|
--debug.addr |
Address to listen on for debug endpoints (default “localhost:6060”) |
--nats.auth.credentialsFile |
NATS credentials file |
--nats.auth.jwtFile |
NATS JWT file |
--nats.auth.password |
NATS password |
--nats.auth.passwordFile |
NATS password file |
--nats.auth.seedFile |
NATS seed file |
--nats.auth.username |
NATS username |
--nats.name |
Name to send to the NATS servers |
--nats.servers |
NATS servers (default [nats://127.0.0.1:4222]) |
--redis.addresses |
Redis addresses (default [localhost:6379]) |
--redis.password |
Redis password |
--redis.passwordFile |
Redis password file |
--redis.poolSize |
Redis connection pool size |
--redis.username |
Redis username |
--route.queue |
Queue to use when subscribing (default “default”) |
--route.subject |
Subject pattern to subscribe to (default “sticky.route.{duration}.{hash}”) |
--route.workers |
Number of workers (default 1) |