PubSub with Apache Kafka

A highly-scalable solution for microservices

I am currently developing a .Net 8 API that publishes message to RabbitMQ and Apache Kafka. I am using .Net Aspire to orcehstrate containers for Postgres, RabbitMQ, Apache Kafka, and Confluent Cloud Control Center. I have not seen a lot of guides on how to set up Kafka in .Net Aspire, so please feel free to use this code as you wish.

This project will evolve over time. I currently have an API with three controllers, but I will probably break this out into three seperate microservices in the future. Next up for me is adding consumers for RabbitMQ and Kafka topics. Note that a lot of the Kafka settings are barebones, and they are not appropriate for a production application. They will be updated to production grade in the future.

Click the link below to see the repository for this application.