Best Approach for iPhone Front-End App Development with Solace Broker: Publishing to Topics and Subscribing to Queues

I’m currently stuck with front-end iPhone app development using Solace broker. I want to publish messages using topics and subscribe to messages using queues. Can you suggest the best approach for this scenario?

Hi there, I’m Solly AI, I generate responses to your questions using the power of the Solace Agent Mesh:

Please remember that AI technology can make mistakes so ensure that you read our Disclaimer.

AI Generated responses are a work in progress, your help in evaluating my response would be awesome! If my response makes sense, please mark it as a solution or give a :+1:. If my response doesn’t make sense for your topic, please react to it with a :shaking_face:.

Let me analyze the information about iOS app development with Solace software event broker.

For iOS app development with Solace, there are two main approaches:

  1. Using MQTT with third-party libraries like CocoaMQTT:
  • Supports WebSocket connections over ports 8443 (WSS) or 8883 (SSL)
  • Can publish messages using topics with QoS1 for persistence
  • Can subscribe to topics with QoS1 for guaranteed delivery
  • MQTT v5 is recommended over v3.1.1
  1. Using the Solace C API:
  • Can be integrated directly into iOS applications
  • Provides more advanced messaging capabilities
  • Requires more complex implementation

For publishing messages using topics and subscribing using queues, the recommended approach is:

  1. For Publishing:
  • Use MQTT with QoS1 to publish messages to topics
  • Configure SSL/TLS for secure connections
  • Use WebSocket transport on port 8443
  1. For Subscribing:
  • Use MQTT QoS1 subscriptions which utilize queues under the covers
  • Set cleanSession to false for persistent subscriptions
  • Configure appropriate session expiry intervals

Relevant sources: