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
- Can't create pull consumer from cli HOT 10
- Add a JWT decoder
- `micro list` timeout when micro service process paused via debugger HOT 4
- Subscribing to JetStream Stream on a 3 node cluster with a single offline node fails 1 in 3 times HOT 10
- nats: error: user: unknown userid 929600006 HOT 2
- nats sub --stream does not respect the --js-domain flag HOT 7
- Max Message Size accepts too large a value HOT 2
- Add stream ingest rate sampling HOT 4
- Clean up consumer code HOT 5
- corrupt images when headers data is included HOT 5
- 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.