Latest 1.0.2
Homepage https://github.com/kellanburket/franz
License MIT
Platforms ios 9.0, osx 10.10, tvos 9.0, watchos 2.0, requires ARC
Authors ,

Build Status
Version
License
Platform

Franz is an Apache Kafka 0.9.0 client for iOS and macOS.

Usage

import Franz

let cluster = Cluster(brokers: [("localhost", 9092)], clientId: "FranzExample")

let consumer = cluster.getConsumer(topics: ["test"], groupId: "group")
consumer.listen { message in
    print(String(data: message.value, encoding: .utf8)!)
}

cluster.sendMessage("test", message: "Hello world!")

You can view the documentation here.

The current release of Franz should be considered beta. It is not necessarily ready for production code.

The repo has example projects for CocoaPods and Swift Package Manager.

Installation

CocoaPods

Add the following line to your Podfile:

pod "Franz"

Swift Package Manager

Add the following dependency to your Package.swift:

dependencies: [
    .package(url: "https://github.com/kellanburket/franz.git", from: "1.0.0"),
],
targets: [
    .target(name: "MyTarget", dependencies: ["Franz"])
]

Author

Kellan Cummings

Luke Lau

License

Franz is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Franz",
    "version": "1.0.2",
    "summary": "An Apache Kafka Client for iOS and OSX.",
    "description": "Franz is an Apache Kafka 0.9.0 client for iOS and OSx. Franz supports both simple and high-level consumers.",
    "homepage": "https://github.com/kellanburket/franz",
    "license": "MIT",
    "authors": {
        "kellanburket": "[email protected]",
        "bubba": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kellanburket/franz.git",
        "tag": "1.0.2"
    },
    "requires_arc": true,
    "source_files": "Sources/Franz/**/*",
    "platforms": {
        "ios": "9.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "swift_version": "4.1"
}

Pin It on Pinterest

Share This