{"id":20463146,"url":"https://github.com/shubhamharitash/kafka","last_synced_at":"2025-03-05T11:50:06.604Z","repository":{"id":214646287,"uuid":"736955596","full_name":"shubhamharitash/kafka","owner":"shubhamharitash","description":"Integerating kafka in Spring boot , creating producer , consumer .sending meessage , listening messsages and much more:)","archived":false,"fork":false,"pushed_at":"2023-12-29T15:22:00.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T00:55:40.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/shubhamharitash.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}},"created_at":"2023-12-29T11:14:41.000Z","updated_at":"2024-11-03T17:15:10.000Z","dependencies_parsed_at":"2023-12-29T16:44:32.918Z","dependency_job_id":null,"html_url":"https://github.com/shubhamharitash/kafka","commit_stats":null,"previous_names":["shubhamharitash/kafka"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamharitash%2Fkafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamharitash%2Fkafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamharitash%2Fkafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamharitash%2Fkafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubhamharitash","download_url":"https://codeload.github.com/shubhamharitash/kafka/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023204,"owners_count":20059297,"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":[],"created_at":"2024-11-15T13:09:33.583Z","updated_at":"2025-03-05T11:50:06.536Z","avatar_url":"https://github.com/shubhamharitash.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"🔴 Thinking of Integerating 𝕂𝔸𝔽𝕂𝔸 in you 𝗦𝗣𝗥𝗜𝗡𝗚 Project???\n\n \n\nBelieve me it's damn easy.\n\n \n\nJust follow these highlighted steps and you are good to go:)\n\n \n\n➡ First \u0026 formost you need to have kafka installed in in your system,you may install it locally or via docker(preferably)\n\n \n\n➡ Once you have kafka installed , here comes second step: add maven dependency of kafka in your pom.xml file of your Spring Project.\n\n \n\n➡ Now comes third step( aka icebreaker step):\n\nConfiguration of Kafka Topic\n\nConfiguration of Kafka Producer\n\nConfiguration of Kafka Consumer\n\n \n\nYou may configure producer or consumer or both as per your need.\n\n \n\n➡ Lets further break each of them into further steps:\n\n \n\n⏩ Cᴏɴꜰɪɢᴜʀᴀᴛɪᴏɴ ᴏꜰ Kᴀꜰᴋᴀ Tᴏᴘɪᴄ:\n\n \n\nCreate bean of kafka topic using Topicbuilder of spring\n\n\n\n⏩ Cᴏɴꜰɪɢᴜʀᴀᴛɪᴏɴ ᴏꜰ Kᴀꜰᴋᴀ Pʀᴏᴅᴜᴄᴇʀ:\n\n \n\n1.Get kafka broker server from your property file,\n\n then create producer config map passing out kafka broker +serializer(key+value)\n\n \n\n2.Create producer instance using producer factory\n\n \n\n3.Then configure KAFKA TEMPLATE so as to send message.\n\n \n\n⏩ Cᴏɴꜰɪɢᴜʀᴀᴛɪᴏɴ ᴏꜰ Kᴀꜰᴋᴀ Cᴏɴꜱᴜᴍᴇʀ:\n\n \n\n1.Get kafka broker server from your property file,\n\n then create consumer config map passing out kafka broker +DEserializer(key+value)\n\n \n\n2.Create consumer instance using consumer factory\n\n \n\n3.Then configure KafkaListenerContainerFactory so as to consume message.\n\n \n\n \n\n \n\n➡ ONCE all above configuration is done ,Then remains final step , so as to create a listener for kafka, which listens to every message of kafka.\n\n \n\n \n\n➡ Once this is done, you may send message on given topic using kafka template either creating an API endpoint or any other ways.\n\n \n\nThat's all you need to do ❗❗❗❗❗\n\n \n\n \n\nWanna checkout exact code for it??\n\n \n\nThen here's my github repository for same:\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamharitash%2Fkafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhamharitash%2Fkafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamharitash%2Fkafka/lists"}