{"id":28278184,"url":"https://github.com/siimas/uptime","last_synced_at":"2026-07-04T09:32:27.931Z","repository":{"id":293307173,"uuid":"983624099","full_name":"Siimas/UpTime","owner":"Siimas","description":"Distributed website uptime monitoring service built with Go, Kafka, Redis, and PostgreSQL. Event-driven, scalable, and optimized for performance.","archived":false,"fork":false,"pushed_at":"2025-05-29T20:50:42.000Z","size":246,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T11:44:24.522Z","etag":null,"topics":["go","golang","kafka","monitoring-tool","postgresql","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Siimas.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,"zenodo":null}},"created_at":"2025-05-14T16:58:23.000Z","updated_at":"2025-07-06T20:37:13.000Z","dependencies_parsed_at":"2025-05-29T21:32:15.737Z","dependency_job_id":null,"html_url":"https://github.com/Siimas/UpTime","commit_stats":null,"previous_names":["siimas/uptime"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Siimas/UpTime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siimas%2FUpTime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siimas%2FUpTime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siimas%2FUpTime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siimas%2FUpTime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Siimas","download_url":"https://codeload.github.com/Siimas/UpTime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Siimas%2FUpTime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35117335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"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":["go","golang","kafka","monitoring-tool","postgresql","redis"],"created_at":"2025-05-21T07:14:52.517Z","updated_at":"2026-07-04T09:32:27.908Z","avatar_url":"https://github.com/Siimas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖥️ Uptime - Distributed Website Monitoring Service\n\n**Uptime** is a modular, event-driven website uptime monitoring service. It leverages Go's concurrency, Kafka for pub/sub event flow, Redis for fast cache access, and PostgreSQL for durable persistence. It is optimized for scale, performance, and modularity.\n\n---\n\n## 🚀 Features\n\n- 🕒 **Scheduled Monitoring** – Periodic HTTP pings to user-defined URLs.\n- 📬 **Event-Driven Architecture** – Kafka is used for distributing monitor results and scheduling tasks.\n- 🧵 **Worker Pool** – Efficient concurrent message processing to handle thousands of events per minute.\n- 🧠 **PostgreSQL Logging** – Durable persistence of monitor status over time.\n- ⚡ **Redis Caching** – Real-time monitor status updates for quick reads.\n- 🌐 **REST API** – Expose endpoints for CRUD operations on monitors.\n- 🔐 **Environment-based Config** – Easy switching between local and cloud environments.\n\n---\n\n## 🛠️ Tech Stack\n\n- **Language**: Go 1.24.3+\n- **Message Queue**: Kafka (Confluent v2 client)\n- **Database**: PostgreSQL\n- **Cache**: Redis\n- **API**: Standard Go `net/http`\n- **Others**: Docker (for deployment), systemd/graceful shutdown support\n\n---\n\n## 📁 Project Structure\n\n```bash\n.\n├── cmd/                  # Application entry point\n├── internal/\n│   ├── cache/            # Redis client and utilities\n│   ├── config/           # Environment variable loading\n│   ├── constants/        # Shared constant values\n│   ├── events/           # Kafka consumer/producer wrapper\n│   ├── http/             # HTTP server and handlers\n│   ├── logger/           # Kafka consumer for log processing (with worker pool)\n│   ├── models/           # Data models\n│   ├── postgres/         # Postgres logic\n│   ├── scheduler/        # Monitor scheduling engine\n│   └── worker/           # Monitor runner and async job handler\n├── .env.example          # Environment config template\n├── go.mod / go.sum       # Go dependencies\n└── README.md             # Project documentation\n```\n---\n\n**Built with ❤️ by Siimas.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiimas%2Fuptime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiimas%2Fuptime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiimas%2Fuptime/lists"}