Giter Club home page Giter Club logo

garden-sensor-app's Introduction

garden-sensor-app

A dummy app to learn Kafka, Telegraf, and influxDB.

Installation

  1. Prerequisites
    1. Python
    2. Docker
    3. Telegraf
  2. Run docker compose -f docker-compose.yaml to run Apache Zookeeper and Apache Kafka on docker.
  3. Run docker start influxdb to get influx DB running on docker.
    1. By default, it runs on port 8086. Open localhost:8086 to set up InfluxDB for the first time.
  4. Run telegraf --config telegraf.conf to get the telegraf agent to run according to the configuration specified.
  5. Run the python program python garden_sensor_gateway.py to simulate sending sensor data.

Platforms and Services used

Apache Kafka

  • Apache Kafka is an open-source distributed event streaming platform used for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
  • It allows client applications to read and write data from/to many brokers simultaneously by distributing data across multiple Kafka brokers.
  • Kafka uses topics and partitions to organize and store data. Events with the same key are written to the same partition, and consumers will always read events from a partition in the order they were written.
  • Kafka provides features like durability, scalability, fault tolerance, and real-time data processing, making it suitable for handling high-throughput and real-time data feeds.

Apache Zookeeper

Apache ZooKeeper is an open-source server used for coordinating and managing the configuration of cloud applications in a distributed environment. It provides a reliable and simple service for distributed systems, offering a hierarchical key-value store used for a distributed configuration service, synchronization service, and naming registry (URN) for large distributed systems.

Alternatives:

  • etcd - HA, strongly consistent distributed key-value store (CNCF project)
  • Consul - highly available, distributed, multi-datacenter service discovery system with key/value store and health checking.

InfluxDB

Telegraf

garden-sensor-app's People

Contributors

sanjay-george avatar sgeorge-nb avatar

Watchers

James Cloos avatar  avatar

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.