{"id":20625832,"url":"https://github.com/jmorbegoso/outboxinboxpatternsample","last_synced_at":"2025-03-07T13:37:27.619Z","repository":{"id":187798068,"uuid":"517198531","full_name":"JMOrbegoso/OutboxInboxPatternSample","owner":"JMOrbegoso","description":"A sample of the transactional Outbox and Inbox patterns in C# and RabbitMQ.","archived":false,"fork":false,"pushed_at":"2022-08-14T16:49:00.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T06:09:55.590Z","etag":null,"topics":["api","c-sharp","docker","docker-compose","inbox-pattern","message-queue","outbox-pattern","quarz","rabbitmq","sqlserver","worker"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JMOrbegoso.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}},"created_at":"2022-07-24T01:14:32.000Z","updated_at":"2024-08-16T07:26:36.000Z","dependencies_parsed_at":"2023-08-12T07:04:56.697Z","dependency_job_id":null,"html_url":"https://github.com/JMOrbegoso/OutboxInboxPatternSample","commit_stats":null,"previous_names":["jmorbegoso/outboxinboxpatternsample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMOrbegoso%2FOutboxInboxPatternSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMOrbegoso%2FOutboxInboxPatternSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMOrbegoso%2FOutboxInboxPatternSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMOrbegoso%2FOutboxInboxPatternSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JMOrbegoso","download_url":"https://codeload.github.com/JMOrbegoso/OutboxInboxPatternSample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242398942,"owners_count":20121735,"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":["api","c-sharp","docker","docker-compose","inbox-pattern","message-queue","outbox-pattern","quarz","rabbitmq","sqlserver","worker"],"created_at":"2024-11-16T13:11:09.708Z","updated_at":"2025-03-07T13:37:27.599Z","avatar_url":"https://github.com/JMOrbegoso.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OutboxInboxPatternSample\n\nA sample of the transactional Outbox and Inbox patterns using C#, SQL Server and RabbitMQ.\n\n\u003e Note: This project is just a proof of concept and is not production ready, in production you may use frameworks such as [MassTransit](https://github.com/MassTransit/MassTransit) or [NServiceBus](https://github.com/Particular/NServiceBus).\n\n## Requirements\n\n1. Docker\n2. Docker compose\n\n## Run sample\n\n1. Set-up the SQL Server database and RabbitMQ:\n\n```BASH\ndocker compose up\n```\n\n2. Apply database schemas:\n\n```BASH\ndotnet ef database update -p .\\SenderApi\\\ndotnet ef database update -p .\\Receiver\\\n```\n\n## Usage\n\n1. Run **SenderApi** project:\n\n```BASH\ndotnet run --project .\\SenderApi\\\n```\n\n2. Run **OutboxProcessor** project:\n\n```BASH\ndotnet run --project .\\OutboxProcessor\\\n```\n\n3. Run **Receiver** project:\n\n```BASH\ndotnet run --project .\\Receiver\\\n```\n\n4. Launch swagger in your web browser:\n   https://localhost:7278/swagger/index.html\n\n5. Using Swagger or Postman make a HTTP POST to **/Users**.\n\n### Parts:\n\nThis sample consists of 3 projects:\n\n1. **SenderApi**: API project, when a new user is created, it stores an Outbox message in the same transaction than the business database using the Unit of Work pattern.\n\n2. **OutboxProcessor**: Worker, it read the Outbox database table and publish the unpublished ones to a RabbitMQ queue.\n\n3. **Receiver**: Worker, it is subscribed to the outbox RabbitMQ queue, and save them into the Inbox database table and handle them from there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmorbegoso%2Foutboxinboxpatternsample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmorbegoso%2Foutboxinboxpatternsample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmorbegoso%2Foutboxinboxpatternsample/lists"}