Apache Kafka - iOS consumer - ios

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.

Related

App Engine as iOS Backend

I'm quite new to backend dev, and Google cloud seemed like a good option for hosting a Golang API for an iOS app.
Recently app started requiring that the app should be accessible in a IPv6 only environment, and I was wondering if Google Cloud App Engine can provide me with that.
Thanks in advance!
Yes, a blog post in 2010 the GAE team stated
The Google over IPv6 program allows ISPs with good connectivity to request IPv6 access for most Google services. In about a week, we'll be adding Google App Engine and the appspot.com domain to this program. This means that all App Engine apps will become accessible over IPv6 to anyone participating in the program!
For most people, this won't require any changes to your code at all. If your App Engine code reads os.environ["REMOTE_ADDR"] in Python, or HttpServletRequest.getRemoteAddr() in Java, be aware that this value may be an IPv4 address, like "192.0.2.1", or an IPv6 address, like "2001:db8::1". Now is the time to verify that your code doesn't make any IPv4-specific assumptions, so that your IPv6-ready users will have a seamless transition.

Send messages to Kafka Topic from iOS

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.

Brokered message transfer between iOS device and backend using Azure Bus service queue

I am trying send data between iOS device and backend using azure bus service .
But all the things that I found on Microsoft azure portal provide Accounts storage methods to azure or through hub providing push notifications.
I am trying to send a "Brokered message"(used for distributed systems) through a queue client using bus service Queue(FIFO). I also came across this method but found that on .net C# not for iOS even Our team here is able to send the data in .net but no luck with Mobile systems(iOS and Android)
You should be able to use REST API for Azure Service Bus from iOS or Android. There's also a good walk-through tutorial you can try.

STUN/TURN/ICE implementation with Ejabberd server and XMPP client iOS

I am using ejabberd-16.04 on my mac and XMPPFramework from robbiehanson.
It works fine for chatting, no problem.
But now I want to add voice calling into my application.
I am using Jingle Protocol for call establishment and it works fine for direct communication (i.e. both caller and callee are in same network).
The problem I am facing is for cross-network and I want to implement Jingle ICE for this, NATed clients.
1 Can any one tell me how can I enable and use STUN/TURN module on ejabberd server and same thing at client side.
1.1 Iam also facing problems with urn:xmpp:extdisco:2 for external service discovery.
2 Is there any library for XMPP which implements Jingle-ICE for iOS?
The community version of ejabberd includes STUN and TURN.
https://docs.ejabberd.im/admin/guide/configuration/#stun-and-turn
You'll need to configure SRV records for both STUN and TURN in order for client discovery of STUN/TURN to work correctly.
http://wiki.xmpp.org/web/SRV_Records#STUN_SRV_records
The only significant limitation is that TURN Authentication does not work with SCRAM password storage.

How to use EndPoints to generate API library in Objective-C in Google App Engine

I used google app engine as my backend server. I watched the google I/O video, and it said it can generate the IOS api library in EndPoints by command line. But I couldn't find the way to do that, and there is no information about it on the Internet. Is there anyone who uses google app engine as their IOS app backend and could answer my question?
Working with GAE, there is no way to generate an API "in objective-c". Google app engine infrastructure supports Java and python, so you need to write your API in one of these languages to deploy it in GAE cloud.
Then, in your iOS application, you will need to communicate with the APIs you just deployed in GAE, this can be done with a so called client library. Here is an example of a client library for Objective-C.
Cloud Endpoints is still under Trusted Tester program.
You can sign up here:
http://endpoints-trusted-tester.appspot.com/
UPDATE Official docs on generating iOS client libs can be found here:
Python
Java

Resources