{"id":18885417,"url":"https://github.com/atechguide/click-stream-analysis","last_synced_at":"2025-10-03T22:59:30.552Z","repository":{"id":127851872,"uuid":"250726922","full_name":"aTechGuide/click-stream-analysis","owner":"aTechGuide","description":"Spark Structured Streaming App to aggregate data on rolling window of events (Not necessarily time)","archived":false,"fork":false,"pushed_at":"2020-05-03T10:03:04.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-08T16:52:30.383Z","etag":null,"topics":["akka-http","kafka","project","sbt","scala","spark-structured-streaming"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/aTechGuide.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-28T06:09:10.000Z","updated_at":"2023-12-21T19:42:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"718cbcb6-8027-46e0-a4c1-405eb4265133","html_url":"https://github.com/aTechGuide/click-stream-analysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aTechGuide/click-stream-analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aTechGuide%2Fclick-stream-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aTechGuide%2Fclick-stream-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aTechGuide%2Fclick-stream-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aTechGuide%2Fclick-stream-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aTechGuide","download_url":"https://codeload.github.com/aTechGuide/click-stream-analysis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aTechGuide%2Fclick-stream-analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278239972,"owners_count":25954098,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"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":["akka-http","kafka","project","sbt","scala","spark-structured-streaming"],"created_at":"2024-11-08T07:18:28.891Z","updated_at":"2025-10-03T22:59:30.538Z","avatar_url":"https://github.com/aTechGuide.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Click Stream Analysis\n\nAnalyzing the Click stream data from web page.  \n\nThis App is divided into two main components\n\n### Server App\n- It starts the Akka Web Server and exposes the endpoints\n- Captures the clicks from web page and sends it to kafka\n\n### ClickStream App\n- It fetches the data from Kafka server\n- Aggregates the ROLLING average response time over the past N clicks\n\n## Tech Stack\n- Spark Structured Streaming\n- Akka HTTP Server\n- Kafka\n- Scala\n- sbt \n\n## How to Run the App\n- Start Docker Containers from the project root -\u003e `docker-compose up`\n- Start the WebServer -\u003e Run `src/main/scala/guide/atech/ServerApp.scala`\n- Start the Spark Aggregation -\u003e Run `src/main/scala/guide/atech/ClickStreamApp.scala`\n\n\n## Useful Commands\n- Page URL to capture Click Stream -\u003e `http://localhost:9998/`\n- Connect to container -\u003e `docker exec -it atechguide-kafka bash`\n  - `cd /opt/kafka_2.12-2.4.1/bin/`\n- Create a Topic -\u003e `kafka-topics.sh --bootstrap-server localhost:9092 --create --partitions 1 --replication-factor 1 --topic atechguide_click_stream`\n- Connect to Kafka Consumer `kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic atechguide_click_stream`\n\n\n# References\n- This project is build as part of [rockthejvm.com  Spark Streaming with Scala](https://rockthejvm.com/p/spark-streaming) Course\n  \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatechguide%2Fclick-stream-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatechguide%2Fclick-stream-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatechguide%2Fclick-stream-analysis/lists"}