{"id":18865767,"url":"https://github.com/bitxon/java-spring-kafka","last_synced_at":"2026-02-12T13:30:16.805Z","repository":{"id":253164585,"uuid":"747921229","full_name":"bitxon/java-spring-kafka","owner":"bitxon","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-26T10:49:34.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T11:26:18.514Z","etag":null,"topics":["java","kafka","spring"],"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/bitxon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-01-24T22:40:28.000Z","updated_at":"2025-01-26T10:49:38.000Z","dependencies_parsed_at":"2024-09-07T11:28:55.041Z","dependency_job_id":"a15282f5-3c8e-400e-b4c6-13670ab5fc27","html_url":"https://github.com/bitxon/java-spring-kafka","commit_stats":null,"previous_names":["bitxon/java-spring-kafka"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitxon%2Fjava-spring-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitxon","download_url":"https://codeload.github.com/bitxon/java-spring-kafka/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239809837,"owners_count":19700695,"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":["java","kafka","spring"],"created_at":"2024-11-08T05:04:33.614Z","updated_at":"2026-02-12T13:30:16.777Z","avatar_url":"https://github.com/bitxon.png","language":"Java","readme":"# Java Spring Kafka\n\nThis is a playground for Spring \u0026 Kafka\n\n---\n## Kafka: Single Pojo Processing\n\n### Description\n- `OrderListener` simulates long-running operation - 2000millis for one message, but topic has 3 partitions and listener has `concurrency = \"3\"` so we parallelize processing.\n- `PaymentListener` simulates failure using custom exceptions Retryable and Non-Retryable\n\n### Run\n```shell\ndocker compose up -d\n```\n```shell\n./gradlew kafka-single-pojo:bootRun\n```\n\n---\n## Kafka: Single Pojo Processing | Reply  Topic + DLQ Topic\n\n### Description\n- `InvoiceForwardingListener` forward message from `invoice-request` to `invoice-response` but in case of error to `invoice-dlq`\n\n### Run\n```shell\ndocker compose up -d\n```\n```shell\n./gradlew kafka-single-pojo-reply-or-dlq:bootRun\n```\n\n---\n## Kafka: Batch Pojo (v1) Processing\n\n### Description\n- `ShipmentBatchListener` simulates failure using custom exceptions Retryable and Non-Retryable in **Batch**\n\n### Run\n```shell\ndocker compose up -d\n```\n```shell\n./gradlew kafka-batch-pojo:bootRun\n```\n\n---\n## Kafka: Batch Pojo (v2) Processing\nThis module has the same logic as v1 but configuration is done without Spring auto-configurations\n\n### Description\n- `ShipmentBatchListener` simulates failure using custom exceptions Retryable and Non-Retryable in **Batch**\n\n### Run\n```shell\ndocker compose up -d\n```\n```shell\n./gradlew kafka-batch-pojo-v2:bootRun\n```\n\n---\n## Test\n\n[Open Kafka-UI](http://localhost:9000)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxon%2Fjava-spring-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitxon%2Fjava-spring-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitxon%2Fjava-spring-kafka/lists"}