{"id":22642541,"url":"https://github.com/anzolin/rabbitmqnetcore","last_synced_at":"2025-03-29T05:42:38.267Z","repository":{"id":79351421,"uuid":"450473494","full_name":"anzolin/RabbitMQNetCore","owner":"anzolin","description":"A project example using RabbitMQ and .Net Core 6 (console)","archived":false,"fork":false,"pushed_at":"2024-01-31T13:48:24.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T16:58:48.533Z","etag":null,"topics":["message-broker","netcore","netcore6","rabbitmq"],"latest_commit_sha":null,"homepage":"","language":"C#","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/anzolin.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}},"created_at":"2022-01-21T11:58:05.000Z","updated_at":"2024-01-31T13:48:35.000Z","dependencies_parsed_at":"2024-01-31T14:56:55.751Z","dependency_job_id":null,"html_url":"https://github.com/anzolin/RabbitMQNetCore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FRabbitMQNetCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FRabbitMQNetCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FRabbitMQNetCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FRabbitMQNetCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anzolin","download_url":"https://codeload.github.com/anzolin/RabbitMQNetCore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145017,"owners_count":20730493,"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":["message-broker","netcore","netcore6","rabbitmq"],"created_at":"2024-12-09T05:07:13.813Z","updated_at":"2025-03-29T05:42:38.242Z","avatar_url":"https://github.com/anzolin.png","language":"C#","funding_links":["https://www.paypal.com/donate?business=DN2VPNW42RTXY\u0026no_recurring=0\u0026currency_code=BRL","https://www.buymeacoffee.com/anzolin"],"categories":[],"sub_categories":[],"readme":"\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n[![Contributors][contributors-shield]][contributors-url]\n[![Watchers][watchers-shield]][watchers-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Forks][forks-shield]][forks-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n---\n\n# RabbitMQ and .Net Core\nA project example using RabbitMQ and .Net Core 6 (console).\n\n\n## What is RabbitMQ?\n\nRabbitMQ is an open source message broker software. It accepts messages from producers, and delivers them to consumers. It acts like a middleman which can be used to reduce loads and delivery times taken by web application servers.\n\nI recommend you visit the project [website](https://www.rabbitmq.com/) and even the [tutorials page](https://www.rabbitmq.com/getstarted.html).\n\n\n## The project\n\nThis project consists of three sub-projects, which are:\n- **RabbitMQNetCore**: a class project containing a class to type our message and also classes with the rules for sending and consuming the message.\n- **RabbitMQNetCore.Publisher**: a console project responsible for running the publisher.\n- **RabbitMQNetCore.Consumer**: a console project responsible for running the consumer.\n\nCould I have created a single project, yes I could, but I wanted to separate it for a better understanding of what each one does.\n\n\n## How to run?\n\nFirst we need to run the RabbitMQ service, I recommend that you make use of a Docker image, so you need to have Docker installed and run the following command:\n\n```bash\ndocker run -d --hostname localhost --name localrabbit -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password rabbitmq:3-management\n```\n\nThis command will create and run an instance of RabbitMQ.\n\nRun the Publisher project:\n\n```bash\ndotnet run --project .\\RabbitMQNetCore.Publisher\\RabbitMQNetCore.Publisher.csproj\n```\n\nRun the Consumer project:\n\n```bash\ndotnet run --project .\\RabbitMQNetCore.Consumer\\RabbitMQNetCore.Consumer.csproj\n```\n\nNow, in the Publisher console, you can perform tests by sending messages and monitoring the consumption of the same in the Consumer console.\n\nThis is a simple project to demonstrate how the messaging service works.\n\n\n## License\n\nThis project is [MIT Licensed](https://github.com/anzolin/RabbitMQNetCore/blob/master/LICENSE).\n\n  \n## About the author\n\nHello everyone, my name is Diego Anzolin Ferreira. I'm a .NET developer from Brazil. I hope you will enjoy this project as much as I enjoy developing it. If you have any problems, you can post a [GitHub issue](https://github.com/anzolin/AnzolinNetDevPack/issues). You can reach me out at diego@anzolin.com.br.\n\n\n## Donate\n  \nWant to help me keep creating open source projects, make a donation:\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg?style=for-the-badge)](https://www.paypal.com/donate?business=DN2VPNW42RTXY\u0026no_recurring=0\u0026currency_code=BRL) [![Donate](https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee\u0026style=for-the-badge)](https://www.buymeacoffee.com/anzolin)\n\nThank you!\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/anzolin/RabbitMQNetCore.svg?style=for-the-badge\n[contributors-url]: https://github.com/anzolin/RabbitMQNetCore/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/anzolin/RabbitMQNetCore.svg?style=for-the-badge\n[forks-url]: https://github.com/anzolin/RabbitMQNetCore/network/members\n[watchers-shield]: https://img.shields.io/github/watchers/anzolin/RabbitMQNetCore.svg?style=for-the-badge\n[watchers-url]: https://github.com/anzolin/RabbitMQNetCore/watchers\n[stars-shield]: https://img.shields.io/github/stars/anzolin/RabbitMQNetCore.svg?style=for-the-badge\n[stars-url]: https://github.com/anzolin/RabbitMQNetCore/stargazers\n[issues-shield]: https://img.shields.io/github/issues/anzolin/RabbitMQNetCore.svg?style=for-the-badge\n[issues-url]: https://github.com/anzolin/RabbitMQNetCore/issues\n[license-shield]: https://img.shields.io/github/license/anzolin/RabbitMQNetCore.svg?style=for-the-badge\n[license-url]: https://github.com/anzolin/RabbitMQNetCore/blob/master/LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzolin%2Frabbitmqnetcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanzolin%2Frabbitmqnetcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzolin%2Frabbitmqnetcore/lists"}