{"id":22836607,"url":"https://github.com/theboringhumane/OtterMQ","last_synced_at":"2025-08-10T21:32:32.068Z","repository":{"id":267083738,"uuid":"900216621","full_name":"fofsinx/OtterMQ","owner":"fofsinx","description":"🦦 A distributed, language-agnostic task queue powered by Go and WebAssembly","archived":false,"fork":false,"pushed_at":"2024-12-08T07:40:38.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"sudo","last_synced_at":"2024-12-08T08:23:53.807Z","etag":null,"topics":["distributed-systems","golang","message-queue","queue","queue-workers","task-scheduler","typescript","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":null,"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/fofsinx.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":"2024-12-08T07:16:40.000Z","updated_at":"2024-12-08T07:40:42.000Z","dependencies_parsed_at":"2024-12-08T08:34:32.231Z","dependency_job_id":null,"html_url":"https://github.com/fofsinx/OtterMQ","commit_stats":null,"previous_names":["fofsinx/ottermq"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofsinx%2FOtterMQ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofsinx%2FOtterMQ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofsinx%2FOtterMQ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fofsinx%2FOtterMQ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fofsinx","download_url":"https://codeload.github.com/fofsinx/OtterMQ/tar.gz/refs/heads/sudo","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229464386,"owners_count":18077040,"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":["distributed-systems","golang","message-queue","queue","queue-workers","task-scheduler","typescript","wasm","webassembly"],"created_at":"2024-12-12T23:11:50.204Z","updated_at":"2025-08-10T21:32:26.698Z","avatar_url":"https://github.com/fofsinx.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# OtterMQ 🦦\n\nA high-performance, redis-backed distributed task queue system that lets you write workers in any language via WebAssembly. Features priority queuing, task scheduling, dead letter queues, and real-time event monitoring.\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/username/ottermq)](https://goreportcard.com/report/github.com/username/ottermq)\n[![GoDoc](https://godoc.org/github.com/username/ottermq?status.svg)](https://godoc.org/github.com/username/ottermq)\n[![License](https://img.shields.io/github/license/username/ottermq.svg)](https://github.com/username/ottermq/blob/master/LICENSE)\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/5ffa4bcc-6147-4544-934c-201bda3e08fe\" alt=\"OtterMQ Banner\" /\u003e\n\u003c/div\u003e\n\n\n# [Google Doc](https://docs.google.com/document/d/16bNoGTDqS3aZMKqFLrX33sjG0UjE1ZpXwt7kPqTHEiM/edit?usp=sharing)\n\n## 🌟 Features\n\n- **Language Agnostic**: Write workers in any language that compiles to WebAssembly\n- **Flexible Queue Types**: FIFO, LIFO, Priority, Delayed, and Composite queues\n- **Advanced Task Management**: \n  - Task dependencies and DAG support\n  - Scheduled and periodic tasks\n  - Batch processing capabilities\n  - Task versioning and migration\n- **Robust Architecture**:\n  - Redis-backed persistence\n  - Distributed task processing\n  - Auto-scaling worker pools\n  - Dead letter queue handling\n- **Real-time Monitoring**:\n  - Live queue metrics\n  - Worker performance tracking\n  - Task execution statistics\n  - Distributed tracing\n\n## 📋 Table of Contents\n\n- [Quick Start](#-quick-start)\n- [Architecture](#-architecture)\n- [Use Cases](#-use-cases)\n- [Installation](#-installation)\n- [Configuration](#-configuration)\n- [Examples](#-examples)\n- [Documentation](#-documentation)\n- [Contributing](#-contributing)\n- [License](#-license)\n\n## 🚀 Quick Start\n\n```bash\n# Still in DEV\n```\n\n## 🏗 Architecture\n\nOtterMQ is built on a modular architecture that prioritizes scalability and flexibility:\n\n\n```mermaid\n---\ntitle: OtterMQ High-Level Architecture\n---\ngraph TB\n    %% Node Definitions\n    classDef client fill:#87CEFA,stroke:#1E90FF,stroke-width:2px;\n    classDef api fill:#FFD700,stroke:#FF8C00,stroke-width:2px;\n    classDef taskManager fill:#98FB98,stroke:#32CD32,stroke-width:2px;\n    classDef scheduler fill:#FFA07A,stroke:#FF4500,stroke-width:2px;\n    classDef queueManager fill:#9370DB,stroke:#6A5ACD,stroke-width:2px;\n    classDef queues fill:#DDA0DD,stroke:#BA55D3,stroke-width:1px;\n    classDef workerPool fill:#FFB6C1,stroke:#FF69B4,stroke-width:2px;\n    classDef redis fill:#FFC0CB,stroke:#DC143C,stroke-width:2px;\n    classDef eventBus fill:#ADD8E6,stroke:#4682B4,stroke-width:2px;\n    classDef wasm fill:#F0E68C,stroke:#FFD700,stroke-width:2px;\n\n    %% Nodes\n    Client[Client Applications]:::client --\u003e API[API Gateway]:::api\n    API --\u003e TaskManager[Task Manager]:::taskManager\n    \n    subgraph Core System\n        TaskManager --\u003e Scheduler[Task Scheduler]:::scheduler\n        TaskManager --\u003e QueueManager[Queue Manager]:::queueManager\n        \n        QueueManager --\u003e Queue1[Priority Queue]:::queues\n        QueueManager --\u003e Queue2[FIFO Queue]:::queues\n        QueueManager --\u003e Queue3[LIFO Queue]:::queues\n        \n        Queue1 --\u003e WorkerPool[Worker Pool]:::workerPool\n        Queue2 --\u003e WorkerPool\n        Queue3 --\u003e WorkerPool\n        \n        WorkerPool --\u003e Worker1[Worker 1]\n        WorkerPool --\u003e Worker2[Worker 2]\n        WorkerPool --\u003e Worker3[Worker 3]\n    end\n    \n    subgraph Storage Layer\n        Redis[(Redis Cluster)]:::redis\n        WorkerPool --\u003e Redis\n        QueueManager --\u003e Redis\n        TaskManager --\u003e Redis\n    end\n    \n    subgraph Event System\n        EventBus[Redis Pub/Sub]:::eventBus\n        WorkerPool --\u003e EventBus\n        QueueManager --\u003e EventBus\n        TaskManager --\u003e EventBus\n    end\n    \n    subgraph Language Bridge\n        Worker1 --\u003e WASM[WASM Runtime]:::wasm\n        Worker2 --\u003e WASM\n        Worker3 --\u003e WASM\n    end\n```\n\n## 🎯 Use Cases\n\n\u003e All the code-examples are just a bluff as of now\n\n### 1. Microservices Task Processing\nPerfect for distributed systems where tasks need to be processed across different services:\n```go\n// Create a task chain\ntask := ottermq.NewTask().\n    Then(\"validate-order\").\n    Then(\"process-payment\").\n    Then(\"update-inventory\").\n    Then(\"send-confirmation\")\n```\n\n### 2. Background Job Processing\nIdeal for handling time-consuming tasks:\n```go\n// Schedule a periodic task\nscheduler.Every(24 * time.Hour).\n    At(\"02:00\").\n    Run(\"generate-daily-reports\")\n```\n\n### 3. Event-Driven Systems\nGreat for systems requiring real-time event processing:\n```go\n// Subscribe to task events\nevents.Subscribe(\"task.completed\", func(e Event) {\n    log.Printf(\"Task %s completed: %v\", e.TaskID, e.Result)\n})\n```\n\n### 4. Cross-Language Task Processing\nWrite workers in any language that compiles to WebAssembly:\n\n```typescript\n// TypeScript worker\nexport function processTask(payload: any): Result {\n    // Process task\n    return { status: \"success\", data: processed }\n}\n```\n\n```python\n# Python worker (compiled to WASM)\ndef process_task(payload):\n    # Process task\n    return {\"status\": \"success\", \"data\": processed}\n```\n\n## ⚙️ Configuration\n\nOtterMQ can be configured via environment variables, config file, or CLI flags:\n\n```yaml\n# config.yaml\nredis:\n  host: localhost\n  port: 6379\n  password: \"\"\n\nqueues:\n  default:\n    type: fifo\n    max_size: 1000\n    worker_count: 5\n  priority:\n    type: priority\n    levels: 5\n    worker_count: 10\n\nmonitoring:\n  metrics_port: 9090\n  tracing_enabled: true\n```\n\n## 📊 Monitoring \u0026 Metrics\n\nOtterMQ provides comprehensive monitoring capabilities:\n\n- Prometheus metrics endpoint\n- Grafana dashboards\n- Distributed tracing with OpenTelemetry\n- Real-time queue statistics\n\n## 🔧 Development\n\n```bash\n# Clone the repository\ngit clone https://github.com/fofsinx/ottermq.git\n\n# Install dependencies\ngo mod download\n\n# Run tests\nmake test\n\n# Build\nmake build\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.\n\n### Development Prerequisites\n\n- Go 1.21 or higher\n- Redis 6.x or higher\n- Docker (for development environment)\n\n## 📝 License\n\nOtterMQ is released under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## 🌟 Stargazers\n\n[![Stargazers repo roster for @username/ottermq](https://reporoster.com/stars/fofsinx/ottermq)](https://github.com/fofsinx/ottermq/stargazers)\n\n## 🔗 Links\n\n- [Documentation](https://ottermq.io/docs)\n- [API Reference](https://ottermq.io/api)\n- [Examples](https://github.com/username/ottermq/tree/master/examples)\n- [Docker Hub](https://hub.docker.com/r/username/ottermq)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003csub\u003eBuilt with ❤️ by the OtterMQ Team back in 🇮🇳\u003c/sub\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheboringhumane%2FOtterMQ","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheboringhumane%2FOtterMQ","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheboringhumane%2FOtterMQ/lists"}