Skip to content

⚡ Run a FastAPI app with a complete Kafka setup using Docker Compose, featuring producer and consumer services for easy event management.

Notifications You must be signed in to change notification settings

Ashishkabirpanthi/fastapi-kafka-docker-demo

Repository files navigation

🚀 fastapi-kafka-docker-demo - Simple Event Streaming Setup

Download Now

📚 Overview

Welcome to the fastapi-kafka-docker-demo! This application demonstrates a lightweight event streaming setup using Kafka, FastAPI, and Docker. It serves as a reference point for creating asynchronous message pipelines in simple terms. Whether you want to learn about event streaming or set up a demo environment, this project is for you.

🔧 Features

  • Event Streaming: Learn how data flows in real-time using event streams.
  • Asynchronous Communication: Understand how FastAPI handles requests without waiting.
  • Easy Setup: Get started in minutes with Docker.
  • Lightweight Design: Minimal resources needed for smooth operation.

📥 Download & Install

To get started, visit the releases page to download the application:

Visit Releases Page to Download

🖥️ System Requirements

  • Operating System: Windows, MacOS, or Linux.
  • Docker: Install Docker Desktop. Ensure Docker is up and running.
  • Memory: At least 4 GB of RAM is recommended for smooth operation.

🛠️ Installation Steps

  1. Download the Application: Go to the releases page and select the latest version. Click the link to download the necessary files.

  2. Extract the Files: If your download is in a zipped format, extract the files to a folder of your choice.

  3. Open a Terminal: Launch your terminal (Command Prompt, PowerShell, or Terminal) and navigate to the folder where you extracted the files.

  4. Build and Run the Docker Containers: Execute the following command to start the services:

    docker-compose up

    This command pulls the required images and starts the Kafka and FastAPI services.

  5. Access the Application: Once the services are running, open your web browser and type:

    http://localhost:8000
    

    You will see the FastAPI interface, where you can begin interacting with the demo.

📊 How It Works

  • Kafka: Acts as a message broker. It handles the exchange of messages between different services.
  • FastAPI: Provides a web interface for users. It allows users to send and receive messages easily.
  • Docker: Simplifies the setup process. It ensures that all dependencies run smoothly in isolated environments.

📦 Usage

When you first access the FastAPI web interface, you will see options to send and receive messages. Follow these simple steps:

  1. Send a Message:

    • Navigate to the endpoint for sending messages.
    • Input your message and hit send.
    • Your message will be processed and passed through Kafka.
  2. Receive Messages:

    • Go to the endpoint for receiving messages.
    • View messages as they arrive in real time.

🌐 Community and Support

If you encounter any issues or have questions, feel free to reach out. Join the discussions and connect with others using this demo.

  1. GitHub Issues: Use the issues section for any technical problems.
  2. Community Forums: Engage with other users in various online platforms discussing Kafka and FastAPI.

🔗 Additional Resources

  • Kafka Documentation: Learn more about Apache Kafka's features and capabilities.
  • FastAPI Documentation: Explore FastAPI's features and examples.
  • Docker Documentation: Familiarize yourself with Docker and its commands.

💬 Feedback

We welcome your feedback to improve this application. Please leave your thoughts in the issues section or share your experience with the community.


For any additional information, updates, or to download the latest version, visit the releases page:

Visit Releases Page to Download

Enjoy exploring the fastapi-kafka-docker-demo and happy coding!

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •