Best Of
Re: Content resolution example with Spring Cloud Stream
Thanks Marc!
The sink example is helpful … and for "the simplest of examples", would be great to see this be even simpler!
Instead of
channel.send(MessageBuilder.withPayload(new SensorReading("test", 50, BaseUnit.FAHRENHEIT)).build());
For example … with the help from above, this is what I am now doing with a StreamBridge
streamBridge.send("try-me", new PersonPOJO("Miles Archer"));
Re: Solace Python API on Mac M1 ?
Just a friendly ping that the latest version of the Python API has been released (v. 1.7.0) with support for Mac M-series processors. It should be slowly rolling out in different places and is already available via PyPI (
)Thanks again for all your patience!
Re: Unable to start the Solace pubsub in podman
Hi @vase18,
It looks like you have mapped port 1943 (for HTTPS access to the PubSub+ Manager) through but, you have not configured a server certificate. Try mapping through port 8080 and accessing the Manager via HTTP or configure a server certificate. I think either of those will get you going.
Best Regards,
Paul
Golang Parallel For One Consumer?
How can I increase the number of connections for a consumer using pubsubplus-go-client? We pass a callback to ReceiveAsync for a consumer via PersistentMessageReceiver, but only one message is processed at a time.
Re: How to send JSON in Javascript
Hi @TestUserName, welcome to the Community!
If you want to send some JSON, just do: message.setBinaryAttachment(JSON.stringify(obj));
Note that message.setBinaryAttachment(..)
is for just for a plain "raw" binary payload (a BytesMessage). If you want to send a formatted TextMessage in JavaScript, you'd do something like this:
var msg = solace.SolclientFactory.createMessage(); var payloadText = JSON.stringify(obj); msg.setSdtContainer(solace.SDTField.create(solace.SDTFieldType.STRING, payloadText)); msg.setDestination(solace.SolclientFactory.createTopic("hello/world"));
Sending a formatted TextMessage is generally better for actual text strings as it is easier to deal with in other APIs, and you don't have to worry about encoding it correctly… e.g. UTF-8 or whatever, especially if your string contains any weird chars. See this thread for more details on that!
Re: Introductions Thread - New to the community? Start here!
I am Kegan, I have over a decade experience with Solace products, primarily developing Event Driven libraries and abstractions using Java.
** Location **
Sweden
** Job **
Event Driven Architect
Re: Need Help in orderbook-distribution-ext-users using Solace C API
done multiple queue . all working fine :)
Queue with random order?
How can we enable this?
Re: Queue with random order?
Yes haha, it really contradicts the principle of queues. But it would be cool if there was such a possibility. However, messages must not be lost :( We do need that property of queues already...
We've also experimented with prioritization. If the sender assigns a random priority from 0 to 9, then younger events could pass older events, but then it would be semi-randomized. Additionally, the sender would have to take care of that, which also bloats the code…
Re: Queue with random order?
Hi @klauszi, welcome to the Community!
That's a wacky idea! haha that goes against what almost all "queueing" systems try to prevent.
Do you care if you lose messages?