{"id":50453991,"url":"https://github.com/mizcausevic-dev/payment-event-ledger-eos","last_synced_at":"2026-06-01T01:05:31.711Z","repository":{"id":358387986,"uuid":"1236278633","full_name":"mizcausevic-dev/payment-event-ledger-eos","owner":"mizcausevic-dev","description":"Kafka exactly-once payments backend with Outbox Pattern, Debezium CDC, and idempotency tracking.","archived":false,"fork":false,"pushed_at":"2026-05-28T01:05:40.000Z","size":1678,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T03:08:36.008Z","etag":null,"topics":["backend","cdc","debezium","event-driven","exactly-once","fintech","idempotency","java","kafka","outbox-pattern","payments","spring-boot"],"latest_commit_sha":null,"homepage":"https://kineticgain.com/","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/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T05:30:51.000Z","updated_at":"2026-05-28T01:05:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/payment-event-ledger-eos","commit_stats":null,"previous_names":["mizcausevic-dev/payment-event-ledger-eos"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/payment-event-ledger-eos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpayment-event-ledger-eos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpayment-event-ledger-eos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpayment-event-ledger-eos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpayment-event-ledger-eos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/payment-event-ledger-eos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fpayment-event-ledger-eos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["backend","cdc","debezium","event-driven","exactly-once","fintech","idempotency","java","kafka","outbox-pattern","payments","spring-boot"],"created_at":"2026-06-01T01:05:31.625Z","updated_at":"2026-06-01T01:05:31.698Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payment Event Ledger EOS\r\n\r\nExactly-once payments backend that demonstrates the **Outbox Pattern**, CDC alignment, consumer checkpointing, and idempotency tracking without making local startup painful.\r\n\r\n\u003e **What this repo proves**\r\n\u003e\r\n\u003e It is possible to make payment correctness, replay confidence, and dual-write discipline legible to operators instead of hiding them behind Kafka buzzwords.\r\n\r\n## Why this repo is good\r\n\r\n- It targets a real fintech/platform problem instead of another generic API.\r\n- It shows how to talk about **payment correctness**, not just Kafka buzzwords.\r\n- It makes the dual-write problem visible through a payment lane, durable outbox records, and checkpoint evidence.\r\n- It runs immediately in local simulation mode, then layers in `docker-compose` assets for `Postgres + Redpanda + Debezium`.\r\n\r\n## Screenshots\r\n\r\n![Overview](./screenshots/01-overview.png)\r\n![Verification](./screenshots/02-verification.png)\r\n![Docs](./screenshots/03-docs.png)\r\n![API Summary](./screenshots/04-api-summary.png)\r\n\r\n## What it includes\r\n\r\n- Spring Boot 3.5 / Java 21 service\r\n- Operator-style HTML control surface at `/`\r\n- JSON APIs for summary, payments, outbox, and analysis\r\n- Local-first sample ledger\r\n- Idempotency claim tracking and duplicate-blocking demo\r\n- Dockerfile and Docker Compose\r\n- GitHub Actions CI\r\n- Architecture notes in [docs/architecture.md](./docs/architecture.md)\r\n\r\n## Local run\r\n\r\n```powershell\r\ncd payment-event-ledger-eos\r\n$env:JAVA_HOME = \"C:\\Program Files\\Microsoft\\jdk-21.0.11.10-hotspot\"\r\n$env:Path = \"$env:JAVA_HOME\\bin;$env:Path\"\r\n.\\mvnw.cmd spring-boot:run\r\n```\r\n\r\nOpen:\r\n\r\n- `http://127.0.0.1:4337/`\r\n- `http://127.0.0.1:4337/verification`\r\n- `http://127.0.0.1:4337/docs`\r\n\r\nIf the port is busy:\r\n\r\n```powershell\r\n$env:PORT = \"4341\"\r\n.\\mvnw.cmd spring-boot:run\r\n```\r\n\r\n## Verification\r\n\r\n```powershell\r\n.\\mvnw.cmd test\r\n.\\mvnw.cmd package\r\n```\r\n\r\nKey routes:\r\n\r\n- `GET /api/dashboard/summary`\r\n- `GET /api/payments/pay_90842`\r\n- `GET /api/outbox`\r\n- `GET /api/eos-verification`\r\n- `POST /api/payments/submit`\r\n- `POST /api/analyze/payment`\r\n\r\n## Example payment analysis\r\n\r\n```json\r\nPOST /api/analyze/payment\r\n{\r\n  \"paymentId\": \"pay_90842\"\r\n}\r\n```\r\n\r\nReturns a `Stable`, `Watch`, or `Escalate` verdict plus the exact blockers still keeping the lane from broader rollout.\r\n\r\n## Full event-stack assets\r\n\r\nThe app runs fine on its own, but the repo also ships with a fuller event-stack story:\r\n\r\n```powershell\r\ndocker compose --profile event-stack up --build\r\n```\r\n\r\nThat profile adds:\r\n\r\n- `postgres`\r\n- `redpanda`\r\n- `debezium/connect`\r\n\r\n## Repo anatomy\r\n\r\n- [src/main/java/com/mizcausevic/paymenteventledgereos/controllers/PageController.java](./src/main/java/com/mizcausevic/paymenteventledgereos/controllers/PageController.java)\r\n- [src/main/java/com/mizcausevic/paymenteventledgereos/controllers/LedgerController.java](./src/main/java/com/mizcausevic/paymenteventledgereos/controllers/LedgerController.java)\r\n- [src/main/java/com/mizcausevic/paymenteventledgereos/services/LedgerService.java](./src/main/java/com/mizcausevic/paymenteventledgereos/services/LedgerService.java)\r\n- [src/main/java/com/mizcausevic/paymenteventledgereos/data/SampleLedgerData.java](./src/main/java/com/mizcausevic/paymenteventledgereos/data/SampleLedgerData.java)\r\n- [docker-compose.yml](./docker-compose.yml)\r\n- [docs/architecture.md](./docs/architecture.md)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fpayment-event-ledger-eos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Fpayment-event-ledger-eos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fpayment-event-ledger-eos/lists"}