{"id":19930867,"url":"https://github.com/anusikh/100k-data-streaming","last_synced_at":"2026-05-13T00:33:20.314Z","repository":{"id":221539963,"uuid":"754302735","full_name":"anusikh/100k-data-streaming","owner":"anusikh","description":"flink-kafka-postgres","archived":false,"fork":false,"pushed_at":"2024-02-10T09:12:26.000Z","size":256,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T11:27:02.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/anusikh.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}},"created_at":"2024-02-07T19:36:58.000Z","updated_at":"2024-02-07T19:37:28.000Z","dependencies_parsed_at":"2024-02-10T10:25:50.262Z","dependency_job_id":"6a20a34b-2abd-48e7-a380-f726b4a6da05","html_url":"https://github.com/anusikh/100k-data-streaming","commit_stats":null,"previous_names":["anusikh/100k-data-streaming"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anusikh/100k-data-streaming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2F100k-data-streaming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2F100k-data-streaming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2F100k-data-streaming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2F100k-data-streaming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anusikh","download_url":"https://codeload.github.com/anusikh/100k-data-streaming/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2F100k-data-streaming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32963164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-12T23:05:28.136Z","updated_at":"2026-05-13T00:33:20.294Z","avatar_url":"https://github.com/anusikh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flink + Kafka\n\n### about\n\n- generate-data service creates 100k rows in postgres\n- kafka-producer service reads the data and sends it to kafka\n- flink-processor runs at the same time with a tumbling window of 5 mins and processes the sum of the costs based on customer_name's\n- if a tumbling window has a window interval of 10 seconds, every incoming event from a data stream for 10 seconds will fall into the same window\n- then we compare the results from flink by running a sql query and it's accurate\n\n![screenshot](/screenshot/screenshot.png \"screenshot\").\n\n### setup\n\n- create jars in flink-processor folder\n\n```\nmvn clean install\n```\n\n- to start containers\n\n```\ndocker-compose up -d\n```\n\n- kafka tricks:\n\n```sh\nkafka-topics.sh --bootstrap-server kafka:9092 --create --topic datastream\n```\n\n```sh\n# to check list of topics\nkafka-topics.sh --bootstrap-server kafka:9092 --list\n```\n\n- in code, for local testing, replace all the container name in url's with localhost. To make it work in docker, we need to make sure we have container names instead\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanusikh%2F100k-data-streaming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanusikh%2F100k-data-streaming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanusikh%2F100k-data-streaming/lists"}