{"id":21006267,"url":"https://github.com/derlin/doodlechallenge","last_synced_at":"2026-04-21T22:33:29.261Z","repository":{"id":151664098,"uuid":"249161662","full_name":"derlin/doodlechallenge","owner":"derlin","description":"My solution to Doodle's Data Engineering Hiring Challenge (March, 2020)","archived":false,"fork":false,"pushed_at":"2020-03-22T10:49:42.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-06T23:58:13.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/derlin.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":"2020-03-22T10:41:34.000Z","updated_at":"2024-06-19T07:43:02.941Z","dependencies_parsed_at":null,"dependency_job_id":"e4260f48-aa65-4094-96a8-4ccf9b7a719e","html_url":"https://github.com/derlin/doodlechallenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fdoodlechallenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fdoodlechallenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fdoodlechallenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fdoodlechallenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derlin","download_url":"https://codeload.github.com/derlin/doodlechallenge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428421,"owners_count":20289315,"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-19T08:50:28.436Z","updated_at":"2025-12-29T22:48:48.519Z","avatar_url":"https://github.com/derlin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doodle Data Engineering Hiring Challenge - derlin\n\nThis repository contains the code and the report for the Doodle Hiring Challenge described here: \nhttps://github.com/tamediadigital/hiring-challenges/tree/master/data-engineer-challenge \n\n**⇨ see [report.md](report.md) for details ⇦**\n\n## Structure\n\nFolders:\n\n* `cmd` contains the main program,\n* `baseline` contains a basic baseline program that just read frames from Kafka,\n* `benchmarks` contains the script + results of a little benchmark experiment\n\nFiles:\n\n* `report.md`: explains and discuss the current solution and what else we could do,\n* `docker-compose-yml`: what I used to run Kafka on my Mac\n\n## Prerequisites\n\n1. have a working go installation\n2. have kafka running on `localhost:9092`\n3. have two kafka topics `doodle` and `doodle-out` (see constants in `cmd/main.go`)\n4. have the content of `stream.jsonl` in the kafka topic `doodle` (see their readme) (do it only once !)\n5. (if using my docker-compose) have a folder `data` with the `stream.jsonl` file (see below) \n\n## Install and run\n\n1. clone this repo\n2. install dependencies: `go get github.com/segmentio/kafka-go` or `go get cmd/..`\n2. build and run using `go run cmd/*.go`, or build *then* run using `go build -o doodlechallenge cmd/*.go \u0026\u0026 ./doodlechallenge`\n\n## Using docker for Kafka\n\nGet the data:\n```bash\nmkdir data\ncd data\nwget http://tx.tamedia.ch.s3.amazonaws.com/challenge/data/stream.jsonl.gz\ngunzip -k stream.jsonl.gz\ncd ..\n```\n\nLaunch the containers:\n```bash\ndocker-compose up -d\n```\n\nGet a bash into the kafka container:\n```bash\ndocker exec -it doodlechallenge_kafka_1\n```\n\nSetup the topics and the data (still inside the kafka container):\n\n```bash\n/opt/bitnami/kafka/bin/kafka-topics.sh --create \\\n    --zookeeper zookeeper:2181 \\\n    --replication-factor 1 --partitions 1 \\\n    --topic doodle\n\n/opt/bitnami/kafka/bin/kafka-topics.sh --create \\\n    --zookeeper zookeeper:2181 \\\n    --replication-factor 1 --partitions 1 \\\n    --topic doodle-out\n\n# optionally, set a very low retention policy on the out topic, in case we run many times the program\n/opt/bitnami/kafka/bin/kafka-configs.sh \\\n    --zookeeper localhost:2181 \\\n    --alter \\\n    --topic doodle-out \\\n    --config retention.ms=1000\n\ncat /data/stream.jsonl | /opt/bitnami/kafka/bin/kafka-console-producer.sh --broker-list kafka:9092 --topic doodle\n```\nNote that the last command may take a while, there are 1M records to ingest !\n\n\n----------------------------------\n\nDerlin @ 2020 (during the corona virus outbreak)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderlin%2Fdoodlechallenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderlin%2Fdoodlechallenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderlin%2Fdoodlechallenge/lists"}