explaingit

salmanm/fastify-kafka

Analysis updated 2026-07-18 · repo last pushed 2021-06-03

Audience · developerComplexity · 3/5DormantSetup · moderate

TLDR

A Fastify plugin that connects your web server to Apache Kafka, letting it send and receive messages so services can communicate without calling each other directly.

Mindmap

mindmap
  root((repo))
    What it does
      Sends messages to Kafka
      Listens for Kafka messages
      Plugs into Fastify server
    Tech stack
      Fastify
      Apache Kafka
      node-rdkafka
    Use cases
      Event driven backends
      Async service communication
      Decoupled architectures
    Audience
      Backend developers
    Notable features
      Simple push method
      Topic subscriptions

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Send form submissions to Kafka instead of writing directly to a database, so multiple services can process them independently.

USE CASE 2

Build an event-driven backend where services communicate asynchronously through Kafka topics.

USE CASE 3

Decouple parts of a backend so one service doesn't have to wait on another's response.

USE CASE 4

Subscribe to a Kafka topic and trigger custom logic whenever a new message arrives.

What is it built with?

FastifyKafkanode-rdkafka

How does it compare?

salmanm/fastify-kafka0verflowme/alarm-clock0verflowme/seclists
LanguageCSS
Last pushed2021-06-032022-10-032020-05-03
MaintenanceDormantDormantDormant
Setup difficultymoderateeasyeasy
Complexity3/52/51/5
Audiencedevelopervibe coderops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires a running Kafka broker and configuring broker addresses plus a consumer group ID.

Copy-paste prompts

Prompt 1
Show me how to register this fastify-kafka plugin and send a message with fastify.kafka.push().
Prompt 2
Help me set up a Kafka consumer in my Fastify app that listens to a specific topic and processes incoming messages.
Prompt 3
Explain how to configure the broker addresses and consumer group ID for this plugin.
Prompt 4
Walk me through building an event-driven system where a web form submission is sent to Kafka instead of a database.
Prompt 5
Help me decide if this plugin fits my use case of decoupling two backend services.

Frequently asked questions

What is fastify-kafka?

A Fastify plugin that connects your web server to Apache Kafka, letting it send and receive messages so services can communicate without calling each other directly.

Is fastify-kafka actively maintained?

Dormant — no commits in 2+ years (last push 2021-06-03).

How hard is fastify-kafka to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is fastify-kafka for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.