{"id":20923480,"url":"https://github.com/exortek/nodejs-message-queue-examples","last_synced_at":"2025-09-10T01:39:42.155Z","repository":{"id":241428392,"uuid":"806753781","full_name":"ExorTek/nodejs-message-queue-examples","owner":"ExorTek","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-28T10:45:40.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-07T01:53:00.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ExorTek.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}},"created_at":"2024-05-27T20:41:03.000Z","updated_at":"2024-07-16T11:50:14.000Z","dependencies_parsed_at":"2024-05-28T09:33:12.397Z","dependency_job_id":"1473fe57-f242-4449-a2b4-c4a67af683d5","html_url":"https://github.com/ExorTek/nodejs-message-queue-examples","commit_stats":null,"previous_names":["exortek/nodejs-message-queue-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ExorTek/nodejs-message-queue-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExorTek%2Fnodejs-message-queue-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExorTek%2Fnodejs-message-queue-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExorTek%2Fnodejs-message-queue-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExorTek%2Fnodejs-message-queue-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExorTek","download_url":"https://codeload.github.com/ExorTek/nodejs-message-queue-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExorTek%2Fnodejs-message-queue-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274396819,"owners_count":25277398,"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-09-09T02:00:10.223Z","response_time":80,"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":[],"created_at":"2024-11-18T20:16:03.957Z","updated_at":"2025-09-10T01:39:42.134Z","avatar_url":"https://github.com/ExorTek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Node.js Message Queue Examples\n\nThis repository provides simple examples of using message queues in Node.js with various message brokers, including\nRabbitMQ, Apache Kafka, AWS SQS, and Redis.\n\n### How to Run the Examples\n\nFollow these steps to run the examples:\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/ExorTek/nodejs-message-queue-examples.git\n   cd nodejs-message-queue-examples\n   ```\n2. **Install the dependencies:**\n   ```bash\n    npm install\n   ```\n   OR\n   ```bash\n    yarn install\n   ```\n3. **Run the examples:**\n   ```bash\n   npm run start:rabbitmq\n   ```\n   ```bash\n   npm run start:kafka\n   ```\n   ```bash\n   npm run start:sqs\n   ```\n   ```bash\n   npm run start:redis\n   ```\n   OR\n   ```bash\n   yarn start:rabbitmq\n   ```\n   ```bash\n   yarn start:kafka\n   ```\n   ```bash\n   yarn start:sqs\n   ```\n   ```bash\n   yarn start:redis\n   ```\n\n### Using Docker Compose\n\n#### RabbitMQ\n\n1. Navigate to the `rabbitmq` directory:\n   ```bash\n   cd rabbitmq\n   ```\n2. Start the RabbitMQ container:\n   ```bash\n    docker-compose up\n   ```\n\n#### Apache Kafka\n\n1. Navigate to the `kafka` directory:\n   ```bash\n   cd apache-kafka\n   ```\n2. Start the Apache Kafka container:\n   ```bash\n    docker-compose up\n   ```\n\n#### Redis\n\n1. Navigate to the `redis` directory:\n   ```bash\n   cd redis\n   ```\n2. Start the Redis container:\n   ```bash\n    docker-compose up\n   ```\n\n### AWS SQS Setup\n\nFor AWS SQS, ensure that you have your AWS credentials configured. You can use the AWS CLI to configure your credentials:\n\n```bash\naws configure\n```\n\nThe `aws configure` command will prompt you to enter your AWS Access Key ID, Secret Access Key, region, and output format. Make sure to use the same region where your SQS queue is located.\n\n### Creating the SQS Queue\n\nTo create an SQS queue, you can use the AWS Management Console or the AWS CLI. For example, to create a FIFO queue using the AWS CLI, run:\n\n```bash\naws sqs create-queue --queue-name orderQueue.fifo --attributes FifoQueue=true\n```\n\n### Notes\n\n- Ensure that you have Docker and Docker Compose installed on your machine to use the Docker setup.\n- The examples assume that you have the necessary permissions and resources configured for each message broker.\n- If you encounter any issues, please check the respective message broker's documentation or raise an issue in this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexortek%2Fnodejs-message-queue-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexortek%2Fnodejs-message-queue-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexortek%2Fnodejs-message-queue-examples/lists"}