🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Publish/Consume messages to topic-endpoints using Golang
Kindly help me, how can I connect to the topic-endpoint using golang.
Answers
-
Hi there,
I don't think you should use topic-endpoint. Topic Endpoint feature is provided for JMS standard compatibility when you're migrating from another vendor to Solace.
(and at the end of a migration, you'd move to queue subscription)You'd prefer using either "topic subscription" or "queue binding".
- Topic Subscription : use that if you're doing Direct Messaging, ie : no persistence on disk, no acknowledgement at publish or subscribe. It has the highest performances. it's used in the finance industrie to publish stock prices
- Publish :
- Subscribe :
- Queue Subscription : Use that if you're doing guaranteed Messaging.
Both publisher and subscriber messages are acknowledged and messages are store on disk.
You're likely to want to use this I think.- In the queue configuration, you set the subscriptions to topics, to choose which messages are stored on the queue (it can be changed dynamically via REST API, see SEMP)
- Publish to a topic
- Subscribe to a queue
- If you need scalability of your microservices and ensure messages are consumed in the order they are produced check @Aaron video on Partitioned Queue :
Check our Developer resources here. :
In particular, have a look to API Tutorial & Codelabs ;)
1 - Topic Subscription : use that if you're doing Direct Messaging, ie : no persistence on disk, no acknowledgement at publish or subscribe. It has the highest performances. it's used in the finance industrie to publish stock prices