{"id":48389503,"url":"https://github.com/snds-prfct/recommendation-system","last_synced_at":"2026-04-05T23:14:07.584Z","repository":{"id":320777772,"uuid":"1083319022","full_name":"snds-prfct/recommendation-system","owner":"snds-prfct","description":"Cluster of 3 microservices and Kafka broker. Kafka, Java 25/Spring Boot 4 Microservices, Docker, Prometheus, Grafana","archived":false,"fork":false,"pushed_at":"2026-03-30T19:00:38.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T21:04:02.948Z","etag":null,"topics":["docker","grafana","java","kafka","prometheus","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","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/snds-prfct.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-25T19:20:46.000Z","updated_at":"2026-03-30T19:00:44.000Z","dependencies_parsed_at":"2025-10-25T21:19:45.094Z","dependency_job_id":"0b7971e7-aa97-476b-8d34-1985ff25274b","html_url":"https://github.com/snds-prfct/recommendation-system","commit_stats":null,"previous_names":["snds-prfct/recommendation-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/snds-prfct/recommendation-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snds-prfct%2Frecommendation-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snds-prfct%2Frecommendation-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snds-prfct%2Frecommendation-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snds-prfct%2Frecommendation-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snds-prfct","download_url":"https://codeload.github.com/snds-prfct/recommendation-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snds-prfct%2Frecommendation-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31453022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["docker","grafana","java","kafka","prometheus","spring","spring-boot"],"created_at":"2026-04-05T23:14:05.796Z","updated_at":"2026-04-05T23:14:07.577Z","avatar_url":"https://github.com/snds-prfct.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Recommendation System\n\nThe system consisting of several microservices and a Kafka broker, emulating the operation of a recommendation system (creating/processing recommendations based on users activity).\n\nThis project focuses not on business logic and code, but on the system as a whole, the interaction between components, and the infrastructure.\n\n\u003cimg src=\"docs/images/recommendation_system_diagram.png\" alt=\"drawing\" width=\"70%\"/\u003e\n\n## System Components\n\n### Main Service\n###### Technology\nJava 25 / Spring Boot 4 Microservice\n###### Description\nHas few REST endpoints in order to emulate users activity:\n\u003e GET localhost:8080/posts/view\n\n\u003e POST localhost:8080/posts/like\n\n\u003e POST localhost:8080/posts/repost\n\nWhen these endpoints are executed it sends messages into `recommendation-system.users-activity` Kafka topic with specific key (`view`, `like`, `repost`)\nin order to separate them by partition.\n\n### Recommendation Service\n###### Technology\nJava 25 / Spring Boot 4 Microservice\n###### Description\nEmulates the generation of recommendations for users:\n- Reads messages from the `recommendation-system.users-activity` Kafka topic about users activity\n- Generates recommendations with different types and\n- Sends messages with some information about recommendations to different partitions of a `recommendation-system.recommendations` Kafka topic.\n\n### Notification Service\n###### Technology\nJava 25 / Spring Boot 4 Microservice\n###### Description\nEmulates the generation and sending of notifications to users based on recommendations:\n- Reads recommendations from the `recommendation-system.recommendations` Kafka topic\n- 'Sends' notifications about recommendations to users.\n\n### Kafka Broker\n###### Technology\nA Docker container based on `apache/kafka:4.1.0` image\n###### Description\nHas few topics:\n- `recommendation-system.users-activity` with 3 partitions for users activity types: views, likes, reposts;\n- `recommendation-system.recommendations` with 3 partitions for different recommendations: news, new friends, interesting blog posts.\n\n### Kafka UI\n###### Technology\nA Docker container based on `ghcr.io/kafbat/kafka-ui:v1.4.2` image\n###### Description\nUI for Apache Kafka message broker is available at:\n\u003e localhost:8083\n\n### Prometheus\n###### Technology\nA Docker container based on `prom/prometheus:v3.9.1` image\n###### Description\nPrometheus becomes available after starting services using Docker Compose:\n\u003e localhost:9090\n\n### Grafana\n\n###### Technology\nA Docker container based on `grafana/grafana:12.3.2` image\n###### Description\nGrafana becomes available after starting services using Docker Compose:\n\u003e localhost:3000\n\n## Running the System using the Docker Compose tool\n\nIn order to run the system it is necessary to build microservices first:\n\u003e mvn clean package\n\nThen the Docker images can be built:\n\u003e docker compose build [--no-cache]\n\nAnd the full System can be launched:\n\u003e docker compose up -d\n\nTo shut down the system, run:\n\u003e docker compose down\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnds-prfct%2Frecommendation-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnds-prfct%2Frecommendation-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnds-prfct%2Frecommendation-system/lists"}