starkandwayne/librdkafka-demo-app-cloudfoundry

Name: librdkafka-demo-app-cloudfoundry

Owner: Stark & Wayne

Description: null

Created: 2017-11-19 22:12:43.0

Updated: 2017-11-19 22:13:01.0

Pushed: 2017-11-20 02:26:55.0

Homepage: null

Size: 66

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Example for using Kafka inside Cloud Foundry

This application is a demonstration of using the https://github.com/edenhill/librdkafka C library as a dependency for a Kafka client library (https://github.com/confluentinc/confluent-kafka-go/kafka in this example).

We use the apt-buildpack to configure and install librdkafka-dev package from Confluent's Apt repository. See the apt.yml file:


:
tp://packages.confluent.io/deb/3.3/archive.key
s:
b [arch=amd64] http://packages.confluent.io/deb/3.3 stable main
ages:
brdkafka-dev

To use the apt buildpack AND the go buildpack together, we use the multi buildpack. See the manifest.yml:

ications:
me: librdkafka-demo-app-cloudfoundry
ildpack: https://github.com/cloudfoundry/multi-buildpack
.

And multi-buildpack.yml file:

dpacks:
tps://github.com/cloudfoundry/apt-buildpack
tps://github.com/cloudfoundry/go-buildpack

To deploy this example app against Stark & Wayne Kafka, run:

reate-service starkandwayne-kafka topic status-topic
ush librdkafka-demo-app-cloudfoundry --no-start
ind-service librdkafka-demo-app-cloudfoundry status-topic
estart librdkafka-demo-app-cloudfoundry
ogs librdkafka-demo-app-cloudfoundry --recent
ogs librdkafka-demo-app-cloudfoundry

During the cf push staging process, Cloud Foundry will register the Confluent Apt repository and the install packages. Your output will include the following:

---> Adding apt keys
---> Apt Buildpack version 0.1.1
g: key 41468433: public key "Confluent Packaging <packages@confluent.io>" imported
g: Total number processed: 1
g:               imported: 1  (RSA: 1)
---> Updating apt cache
---> Adding apt repos

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.