Giter Site home page Giter Site logo

greta's Introduction

greta

A modern and (fairly) low-level Kafka client for Clojure projects.

It implementments the API introduced in Kafka 0.8.3 as an Aleph TCP client.

Development targets Kafka 0.9.0+.

Usage

FIXME

Contributing

The tests assume that the greta-tests topic already exists, and that topics are not automatically created. This not default, so you must add auto.create.topics.enable = false to your broker configuration.

License

Copyright ยฉ 2015 Funding Circle

Distributed under the BSD 3-Clause License.

greta's People

Contributors

ottbot avatar

Stargazers

 avatar

Watchers

 avatar

greta's Issues

Support multiple apis on single connection?

Pretty straight forward to find the right codec via api-key for the requests (using gloss.core/header).

Harder to get the codec to use on the response, since only the correlation-id is returned, so some state is needed. Which begs the question if we should be correlating the correlation-id anyway..

The plan is see how using a connection per api works out, and change it if it becomes unwieldy.

Trade off is some duplication vs complexity.

Deal with small max-bytes in fetch

If max bytes is small, say less than 80, kafka won't send enough of the response to get to the codecs that deal with truncated/partial messages.

We should deal with this better than letting a gloss exception (assert failure) raise, but not a huge priority.

Consume API

  • Make consume request
  • Get messages from Kafka

Remove Eclipse Public license

๐Ÿ“ This project is currently proprietary and should have a commercial, non-distributable license attached.

Only a single serde per-client is supported

Is this a problem? Should we pass more information to the serde (topic/partition info)? Right now it just assumes a simple bytes to string use-case, and would not enable to, say, support a confluent schema registry as-is.

A client could always create a client with the identity-serde and handle it as needed.

Offset API

  • Make offset request
  • Read offset response
  • Make consumer group metadata request
  • Read consumer metadata response
  • Make offset commit request
  • Read offset commit response
  • Make a offset fetch request
  • Read offset fetch response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.