Comments (11)
Please show stream info of the stream listening on that subject?
check error on js.Subscribe()
from natscli.
Thanks @ripienaar .
I did not eve create a stream.
Do you know what FATA[0000] nats: filtered consumer not unique on workqueue stream
means ?
I tried to change a name in code, but it does not help
from natscli.
What language do you ise
from natscli.
Golang.
looks like as nats-io/nats.js#461
from natscli.
I got this error when second consumer starting
from natscli.
The clients have some unintended consequences where it makes consumers for you. Probably what happens is the 2nd one tries to make a new consumer rather than attach to existing.
Maybe if you share the code @wallyqs can help
from natscli.
func (n Nats) Init() {
log.Info("NATS init")
// Connect Options.
opts := []nats.Option{nats.Name("NATS Sample Subscriber 2")}
opts = setupConnOptions(opts)
// Connect to NATS
nc, err := nats.Connect(n.Host, opts...)
if err != nil {
log.Fatal(err)
}
// Create JetStream Context
js, _ := nc.JetStream(nats.PublishAsyncMaxPending(256))
// Simple Async Ephemeral Consumer
_, err = js.Subscribe("NATS.Positions", func(m *nats.Msg) {
fmt.Printf("Received a JetStream message: %s\n", string(m.Data))
})
if err != nil {
log.Fatal(err)
}
if err := nc.LastError(); err != nil {
log.Fatal(err)
}
log.Printf("Listening on [%s]", PositionTopic)
runtime.Goexit()
}
from natscli.
But I want to start a new second consumer and balance messages inside a stream between 2 and more consumers. As I expected in WorkQueue stream type
from natscli.
You should instead have 1 consumer and connect many clients to it.
from natscli.
Do you have some example maybe in github ?
from natscli.
Closing this, perhaps ask in slack or on the client you use discussions or something, it's not really CLI related I think.
from natscli.
Related Issues (20)
- nats str edit cannot update Subject Transform HOT 2
- A bug that was filed in nats.go HOT 2
- If user is set then token is not transmitted HOT 2
- Displayed ObjectStore digest is truncated HOT 1
- Not recognizing difference in stream configuration for sources HOT 1
- Support wildcard for KV get HOT 11
- Broken nats-cli arm64 binary HOT 3
- Stream info shows first and last timestamps incorrectly HOT 2
- Enable inactive-threshold flag while editing consumer HOT 2
- Add tooling for create sharded streams
- Extend --trace or add a --debug flag to see server connections HOT 2
- req: set exit status based on: response / header existing
- Incorrect local JetStream store directory when $XDG_DATA_HOME is defined HOT 1
- Change `--completion-script-bash` option to `completion bash` by convention
- Add support for the s390x architecture HOT 1
- Context subcommand "create" missing from CLI Menu HOT 2
- sub: allow multiple subjects HOT 1
- Consider making a new release HOT 2
- Upload of large object fails with `nats: error: nats: stalled with too many outstanding async published messages`
- Consumer pause/resume commands fail after selecting stream/consumer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from natscli.