Giter Club home page Giter Club logo

kafkaguide's Introduction

KafkaGuide

1.) Kafka Topics
Topics are the particular stream of data without any constraints unlike in database. You can have as many Topics as you want inside of your cluster and can have as many Topics as you want inside of your cluster. You can store Kafka Topics in any format like json, avro schema etc. You cannot query to access the data from the Kafka but you need Producers to send data and Consumers to read.
2.) Kafka Partitions and Offsets
Topics are split into Partitions.

  • Messages in each Partitions are ordered.
  • Each message within the idea gets an incremental id called Offsets.
  • Kafka Topics are immutable means once the data is written inside of the Partition it cannot be modified.
Screenshot 2024-01-10 at 7 02 43 PM

Important Points:

  1. Data is only kept for limited time (One week - configurable).
  2. Offset only have a meaning for a specific partition.
    • Offset 3 in the Partition 0 doesn't have the same data as of the Offset 3 of Partition 1.
    • Offsets are not reused even if the previous messages have been deleted.
  3. Order is guaranteed only within a Partition(not across Partitions).
  4. Data is assigned randomly to a Partition unless the key is provided.
  5. You can have as many Partitions as you want as per Topic.
3.) Kafka Producers
  • Messages in each Partitions are ordered.
  • Producers write data to the Topics (which are made up of partitions).
  • Producers know to which partition to write to (and which Kafka broker has it).
  • In case of Kafka broker failures, Producers will automatically recover.
image

kafkaguide's People

Contributors

muhammadibrahimalvi avatar

Watchers

 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.