Code Monkey home page Code Monkey logo

gcn-classic-to-kafka's Introduction

GCN Classic to Kafka bridge

codecov

Pump GCN Classic notices to a Kafka broker.

GCN Classic sends binary and VOEvent format notices to us over TCP/IP. We act as the server and GCN Classic acts as the client. The packet format consists of the following fields:

  1. The 160-byte binary notice. The first 4 bytes are the notice type as a network byte order integer.
  2. A 4-byte network byte order integer that is the length of the VOEvent.
  3. The VOEvent.
  4. A 4-byte network byte order integer that is the length of the text notice.
  5. The text notice.

GCN Classic does not expect us to send any data back. GCN sends a packet at least every 60 seconds, including keepalive packets. Keepalive packets have the same format as notice packets, except that the notice type is gcn.NoticeType.IM_ALIVE, gcn.NoticeType.VOE_11_IM_ALIVE, or gcn.NoticeType.VOE_20_IM_ALIVE.

Because this protocol does not have any authentication, it must be tunneled using a tool like ssh or stunnel.

To install

$ pip install .

To hack

This project uses Poetry. To hack on it, first install Poetry. Then, run the following commands to set up and enter the development virtual environment:

$ poetry install
$ poetry shell

To monitor

By default, metrics for Prometheus are provided on port 8000.

gcn-classic-to-kafka's People

Contributors

dakota002 avatar dependabot[bot] avatar lpsinger avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lpsinger

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.