Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nitsas/kafka-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Go

Building a simple Kafka server with Go (v1.22) step by step, following the instructions on codecrafters.io.

In this challenge, we build a toy Kafka clone that's capable of accepting and responding to APIVersions & Fetch API requests. Along the way, we also learn about encoding and decoding messages using the Kafka wire protocol. We also learn about handling the network protocol, event loops, TCP sockets and more.

Running the server

  1. Ensure you have go (1.22) installed locally
  2. Run ./your_program.sh to run your Kafka broker, which is implemented in app/server.go. The broker then listens for requests on port 9092.

At the moment this kafka server only listens for APIVersions requests and answers with error code 35 when the requested APIVersion is invalid, or responds with the supported versions if the request is valid.

About

Building a toy kafka server with Go step by step

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •