{"id":18048072,"url":"https://github.com/ivangfr/spring-cloud-stream-kafka-multi-topics","last_synced_at":"2025-04-10T09:48:28.111Z","repository":{"id":111328521,"uuid":"207754522","full_name":"ivangfr/spring-cloud-stream-kafka-multi-topics","owner":"ivangfr","description":"The goal of this project is to create two applications: one as a Spring Boot producer and the other as a Spring Boot consumer. We'll be using Spring for Apache Kafka and Spring Cloud Stream.","archived":false,"fork":false,"pushed_at":"2024-12-16T18:35:06.000Z","size":1358,"stargazers_count":10,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:42:33.674Z","etag":null,"topics":["docker","java","jib","kafdrop","kafka","spring-boot","spring-cloud-stream","spring-kafka","spring-webflux"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivangfr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"ivangfr"}},"created_at":"2019-09-11T07:49:58.000Z","updated_at":"2025-01-20T07:39:37.000Z","dependencies_parsed_at":"2023-11-13T22:30:05.555Z","dependency_job_id":"46f4e6dc-155e-46ef-bd60-ea4bd9e0f325","html_url":"https://github.com/ivangfr/spring-cloud-stream-kafka-multi-topics","commit_stats":null,"previous_names":["ivangfr/spring-cloud-stream-kafka-multi-topics-cloudkarafka"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fspring-cloud-stream-kafka-multi-topics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fspring-cloud-stream-kafka-multi-topics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fspring-cloud-stream-kafka-multi-topics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivangfr%2Fspring-cloud-stream-kafka-multi-topics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivangfr","download_url":"https://codeload.github.com/ivangfr/spring-cloud-stream-kafka-multi-topics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248197307,"owners_count":21063619,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","java","jib","kafdrop","kafka","spring-boot","spring-cloud-stream","spring-kafka","spring-webflux"],"created_at":"2024-10-30T20:11:14.395Z","updated_at":"2025-04-10T09:48:28.088Z","avatar_url":"https://github.com/ivangfr.png","language":"Java","funding_links":["https://github.com/sponsors/ivangfr"],"categories":[],"sub_categories":[],"readme":"# spring-cloud-stream-kafka-multi-topics\n\nThe goal of this project is to create two applications: one as a [`Spring Boot`](https://docs.spring.io/spring-boot/index.html) producer and the other as a `Spring Boot` consumer. We'll be using [`Spring for Apache Kafka`](https://docs.spring.io/spring-kafka/reference/index.html) and [`Spring Cloud Stream`](https://docs.spring.io/spring-cloud-stream/reference/).\n\nSimilar projects are: [`spring-kafka-de-serialization-types`](https://github.com/ivangfr/spring-kafka-de-serialization-types) and [`spring-cloud-stream-kafka-elasticsearch`](https://github.com/ivangfr/spring-cloud-stream-kafka-elasticsearch).\n\n## Proof-of-Concepts \u0026 Articles\n\nOn [ivangfr.github.io](https://ivangfr.github.io), I have compiled my Proof-of-Concepts (PoCs) and articles. You can easily search for the technology you are interested in by using the filter. Who knows, perhaps I have already implemented a PoC or written an article about what you are looking for.\n\n## Additional Readings\n\n- \\[**Medium**\\] [**Implementing a Kafka Producer and Consumer using Spring Cloud Stream**](https://medium.com/@ivangfr/implementing-a-kafka-producer-and-consumer-using-spring-cloud-stream-d4b9a6a9eab1)\n- \\[**Medium**\\] [**Implementing Unit Tests for a Kafka Producer and Consumer that uses Spring Cloud Stream**](https://medium.com/@ivangfr/implementing-unit-tests-for-a-kafka-producer-and-consumer-that-uses-spring-cloud-stream-f7a98a89fcf2)\n- \\[**Medium**\\] [**Implementing End-to-End testing for a Kafka Producer and Consumer that uses Spring Cloud Stream**](https://medium.com/@ivangfr/implementing-end-to-end-testing-for-a-kafka-producer-and-consumer-that-uses-spring-cloud-stream-fbf5e666899e)\n- \\[**Medium**\\] [**Configuring Distributed Tracing with Zipkin in a Kafka Producer and Consumer that uses Spring Cloud Stream**](https://medium.com/@ivangfr/configuring-distributed-tracing-with-zipkin-in-a-kafka-producer-and-consumer-that-uses-spring-cloud-9f1e55468b9e)\n- \\[**Medium**\\] [**Using Cloudevents in a Kafka Producer and Consumer that uses Spring Cloud Stream**](https://medium.com/@ivangfr/using-cloudevents-in-a-kafka-producer-and-consumer-that-uses-spring-cloud-stream-9c51670b5566)\n- \\[**Medium**\\] [**Running in Minikube (Kubernetes) a Kafka Producer and Consumer that uses Spring Cloud Stream**](https://medium.com/@ivangfr/running-in-minikube-kubernetes-a-kafka-producer-and-consumer-that-uses-spring-cloud-stream-d50b2dbfc5ea)\n\n## Examples\n\n- ### [spring-kafka](https://github.com/ivangfr/spring-cloud-stream-kafka-multi-topics/tree/master/spring-kafka#spring-cloud-stream-kafka-multi-topics)\n- ### [spring-cloud-stream](https://github.com/ivangfr/spring-cloud-stream-kafka-multi-topics/tree/master/spring-cloud-stream#spring-cloud-stream-kafka-multi-topics)\n\n## Prerequisites\n\n- [`Java 21+`](https://www.oracle.com/java/technologies/downloads/#java21)\n- Some containerization tool [`Docker`](https://www.docker.com), [`Podman`](https://podman.io), etc.\n\n## Start Environment\n\n- Open a terminal and inside the `spring-cloud-stream-kafka-multi-topics` root folder run:\n  ```\n  docker compose up -d\n  ```\n\n- Wait for Docker containers to be up and running. To check it, run:\n  ```\n  docker ps -a\n  ```\n\n- Create the Kafka topics used by the applications:\n  ```\n  ./create-kafka-topics.sh\n  ```\n\n## Useful Links\n\n- **Kafdrop**\n\n  `Kafdrop` can be accessed at http://localhost:9000\n\n## Shutdown\n\nTo stop and remove docker compose containers, network and volumes, in a terminal, navigate to the `spring-cloud-stream-kafka-multi-topics`, run the command below:\n```\ndocker compose down -v\n```\n\n## Cleanup\n\nTo remove the Docker images created by this project, in a terminal and inside the `spring-cloud-stream-kafka-multi-topics` root folder, run the following script:\n```\n./remove-docker-images.sh\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangfr%2Fspring-cloud-stream-kafka-multi-topics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivangfr%2Fspring-cloud-stream-kafka-multi-topics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivangfr%2Fspring-cloud-stream-kafka-multi-topics/lists"}