{"id":26797772,"url":"https://github.com/kameshsampath/go-datastreaming-quickstart","last_synced_at":"2025-03-29T19:15:46.407Z","repository":{"id":210047864,"uuid":"725567617","full_name":"kameshsampath/go-datastreaming-quickstart","owner":"kameshsampath","description":"A demo quickstart to build an simple datastreaming API application with https://echo.labstack.com and https://readpanda.com","archived":false,"fork":false,"pushed_at":"2023-11-30T15:02:05.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-22T20:02:53.649Z","etag":null,"topics":["data-streaming-examples","demo","golang","quickstart","redpanda"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kameshsampath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-30T12:20:19.000Z","updated_at":"2023-11-30T12:25:02.000Z","dependencies_parsed_at":"2023-11-30T14:42:26.383Z","dependency_job_id":null,"html_url":"https://github.com/kameshsampath/go-datastreaming-quickstart","commit_stats":null,"previous_names":["kameshsampath/go-datastreaming-quickstart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kameshsampath%2Fgo-datastreaming-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kameshsampath%2Fgo-datastreaming-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kameshsampath%2Fgo-datastreaming-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kameshsampath%2Fgo-datastreaming-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kameshsampath","download_url":"https://codeload.github.com/kameshsampath/go-datastreaming-quickstart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246230519,"owners_count":20744349,"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":["data-streaming-examples","demo","golang","quickstart","redpanda"],"created_at":"2025-03-29T19:15:46.024Z","updated_at":"2025-03-29T19:15:46.385Z","avatar_url":"https://github.com/kameshsampath.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get Started Building Streaming App With Go\n\nA demo to show how to use [go](https://go.dev) and [redpanda](https://redpanda.com) to build simple streaming API application using [Echo Project](https://echo.labstack.com).\n\n## Pre-requisites\n\n- [Docker for Desktop](https://www.docker.com/products/docker-desktop/)\n- [rpk CLI](https://docs.redpanda.com/current/get-started/rpk-install/)\n- [httpie](https://httpie.io)\n\n## Run Application\n\n```shell\ngo run server.go -brokers \"$RPK_BROKERS\"\n```\n\n### Start Redpanda Server\n\n```shell\nrpk container start -n 1\n```\n\n**NOTE**:\n\n\u003e Make a note of the RPK_BROKERS value and export as instructed\n\n### Create `greetings` Topic\n\n```shell\nrpk topic create greetings --partitions=3 --replicas=1\n```\n\n### Start Streaming Consumer\n\nOpen a new terminal window\n\n```shell\nhttp --stream ':8080/?topic=greetings'\n```\n\nSince the application is set to use the same Consumer Group ID of format `\u003ctopic\u003e-echo-group` the consumer will not read the old messages when restarted. If you wish to read all from start run the following command,\n\n```shell\nhttp --stream ':8080/?topic=greetings\u0026group=new'\n```\n\nThis command will create a new consumer group on each request.\n\n### Produce a message\n\nOpen new terminal and run the following command to produce a new message to topic called `greetings`,\n\n```shell\nhttp -v :8080/ topic=greetings key='1' value='Hello World!'\n```\n\n## Clean up\n\n```shell\nrpk container purge\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkameshsampath%2Fgo-datastreaming-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkameshsampath%2Fgo-datastreaming-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkameshsampath%2Fgo-datastreaming-quickstart/lists"}