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.
- 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.
To get started, visit the releases page to download the application:
Visit Releases Page to Download
- 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.
-
Download the Application: Go to the releases page and select the latest version. Click the link to download the necessary files.
-
Extract the Files: If your download is in a zipped format, extract the files to a folder of your choice.
-
Open a Terminal: Launch your terminal (Command Prompt, PowerShell, or Terminal) and navigate to the folder where you extracted the files.
-
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.
-
Access the Application: Once the services are running, open your web browser and type:
http://localhost:8000You will see the FastAPI interface, where you can begin interacting with the demo.
- 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.
When you first access the FastAPI web interface, you will see options to send and receive messages. Follow these simple steps:
-
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.
-
Receive Messages:
- Go to the endpoint for receiving messages.
- View messages as they arrive in real time.
If you encounter any issues or have questions, feel free to reach out. Join the discussions and connect with others using this demo.
- GitHub Issues: Use the issues section for any technical problems.
- Community Forums: Engage with other users in various online platforms discussing Kafka and FastAPI.
- 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.
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!