I have set up a multi broker Kafka cluster in my local server. I want to be able to send messages to the Kafka topics in this cluster from a iOS app.Is there any api available that will allow me to achieve this.
Have a try kafka rest proxy, which support to send/consumer messages in rest style.
Related
When I try to publish to different topics using same client id it disconnects the previous connection.
It says the mosquitto_pub publishes a single message at a time so was wondering if this is a limitation.
MQTT Client Ids MUST be unique across all clients connected to the broker. The spec says the broker must disconnect any existing client when a new client with the same client id tries to connect.
The mosquitto_pub command will only publish a single message to a single topic (unless reading from a file or stdin, in which case it publishes a message per line, but again to a single topic).
If you want a single client to publish to multiple topics then you should look at one of the many MQTT client libraries and built a client that meets your needs.
I need to add webcheck monitoring in zabbix for some of my domains. But the problem is this urls will only can be accessed if we connect to the corresponding pritunl VPN Client.
Anyone please guide me on this?
My project, using mosquitto is mqtt server.
I want to get the information clientid once it connects or disconnects to server. Then it will automatically send to sub default. Please help me with this issue.
Assuming you want some other client to know when a certain client connects to the broker,
When your client connects , maybe in onConnected(depends on the client library) handle you can have a specific message published with connectin info. Which the listening client can be subscribed to.
Whereas for disconnection, try the last will message. To quote mosquitto.org
Last Will and Testament
The last will and testament or just “will” is a very nice feature of MQTT. When your client connects to the MQTT broker/server, it can give the broker this will, which consists of a topic and a message. If the client is disconnected from the broker unexpectedly, that is to say without sending a disconnect message, then the broker publishes the will message on the will topic.
Has anyone implemented iOS devices as a consumer of kafka? Is there any client libraries in Obj-C or Swift that could subscribe to Kafka topics?
I don't think consuming Kafka streams directly on a mobile device is the right way to go, unless you are doing some research kind of work. The ideal solution would be to have a REST API (a small web service) that can talk directly to Kafka. You can then poll API endpoints to retrieve messages from Kafka.
For instance, you can write a web service using Python Bottle framework integrated with kafka-python as a solution.
I'm using Mandrill service, now I want to use this service to replay instance email, you know that instance blocked 25 port, so will use 2525 port for this replay, is Google Cloud Compute support Mandrill ?
Thanks
I have personally used mandrill and found no issues working with Google cloud as long as the port is 2525.
Yes it should work fine as Mandrill does indeed support port 2525 which google compute engine can use.