{"id":32492885,"url":"https://github.com/fkucukkara/event-driven-demo","last_synced_at":"2026-05-18T10:07:13.420Z","repository":{"id":318180834,"uuid":"1026894223","full_name":"fkucukkara/event-driven-demo","owner":"fkucukkara","description":"AI powered EDA Demo","archived":false,"fork":false,"pushed_at":"2025-12-21T13:06:43.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T16:11:35.399Z","etag":null,"topics":["csharp","demo","docker","docker-compose","dotnet-core","eda","educational","event-driven-architecture","rabbitmq"],"latest_commit_sha":null,"homepage":"","language":"C#","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/fkucukkara.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-26T21:03:11.000Z","updated_at":"2025-12-21T18:57:03.000Z","dependencies_parsed_at":"2025-10-05T17:45:08.780Z","dependency_job_id":null,"html_url":"https://github.com/fkucukkara/event-driven-demo","commit_stats":null,"previous_names":["fkucukkara/event-driven-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fkucukkara/event-driven-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkucukkara%2Fevent-driven-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkucukkara%2Fevent-driven-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkucukkara%2Fevent-driven-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkucukkara%2Fevent-driven-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fkucukkara","download_url":"https://codeload.github.com/fkucukkara/event-driven-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkucukkara%2Fevent-driven-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33174091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csharp","demo","docker","docker-compose","dotnet-core","eda","educational","event-driven-architecture","rabbitmq"],"created_at":"2025-10-27T11:56:20.339Z","updated_at":"2026-05-18T10:07:13.414Z","avatar_url":"https://github.com/fkucukkara.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Event-Driven Architecture Demo with .NET 10\n\nThis project demonstrates an event-driven architecture using .NET 10 with C# 14, Minimal APIs, RabbitMQ message broker, and Docker Compose.\n\nThis is an educational demonstration project perfect for learning event-driven architecture patterns and modern .NET development practices.\n\n## Architecture Overview\n\nThe system consists of three microservices that communicate through events:\n\n1. **Order API** (Port 5001) - Manages orders and publishes order events\n2. **Inventory API** (Port 5002) - Manages inventory and subscribes to order events\n3. **Notification API** (Port 5003) - Sends notifications and subscribes to order events\n\n## Event Flow\n\n```\nOrder API → RabbitMQ → Inventory API (reserves stock)\n         ↘          ↗ Notification API (sends emails)\n```\n\n### Events Published:\n- `OrderCreatedEvent` - When a new order is created\n- `OrderUpdatedEvent` - When an order status is updated\n- `OrderCancelledEvent` - When an order is cancelled\n\n## Getting Started\n\n### Prerequisites\n- Docker and Docker Compose\n- .NET 10.0 SDK\n\n### Running with Docker Compose\n\n1. Clone the repository\n2. Run the entire system:\n```bash\ndocker-compose up --build\n```\n\n3. Access the APIs:\n   - Order API: http://localhost:5001/swagger\n   - Inventory API: http://localhost:5002/swagger\n   - Notification API: http://localhost:5003/swagger\n   - RabbitMQ Management: http://localhost:15672 (guest/guest)\n\n### 🐛 Debugging in Visual Studio\n\nFor Visual Studio users, the solution includes Docker Compose orchestration support:\n\n1. **Open the solution** in Visual Studio 2022\n2. **Set docker-compose as startup project**:\n   - Right-click on `docker-compose` project in Solution Explorer\n   - Select \"Set as Startup Project\"\n3. **Start debugging** (F5) or run without debugging (Ctrl+F5)\n4. **Visual Studio will**:\n   - Build all Docker images\n   - Start all services with debugging support\n   - Open browser to Order API Swagger UI\n   - Enable breakpoint debugging in containerized services\n\n#### 🔧 Debug Configuration Features:\n- **Breakpoint debugging** in all APIs\n- **Hot reload** support for code changes\n- **Volume mounting** for real-time file updates\n- **Integrated logging** in Visual Studio output\n- **Service dependency management** with health checks\n\n### Testing the Event Flow\n\n1. **Create an Order** (POST to Order API):\n```json\n{\n  \"customerEmail\": \"customer@example.com\",\n  \"items\": [\n    {\n      \"productId\": \"LAPTOP001\",\n      \"productName\": \"Gaming Laptop\",\n      \"quantity\": 1,\n      \"unitPrice\": 999.99\n    }\n  ]\n}\n```\n\n2. **Check Inventory** (GET from Inventory API):\n   - View reserved quantities for products\n\n3. **Check Notifications** (GET from Notification API):\n   - View sent notifications for the customer\n\n## Key Features\n\n- **Event-Driven Communication**: Loose coupling between services\n- **Message Broker**: RabbitMQ for reliable message delivery\n- **Event Sourcing**: All events are logged and traceable\n- **Microservices**: Independent, scalable services\n- **Minimal APIs**: Modern, lightweight API endpoints\n- **Docker Compose**: Easy deployment and orchestration\n- **Swagger Documentation**: Interactive API documentation\n\n## Technologies Used\n\n- .NET 10.0 with C# 14\n- ASP.NET Core Minimal APIs\n- Entity Framework Core (In-Memory)\n- RabbitMQ\n- Docker \u0026 Docker Compose\n- Swagger/OpenAPI\n\n---\n\n## 📚 Educational Purpose \u0026 Attribution\n\n### 🎓 **Learning Objectives**\nThis project serves as a comprehensive educational resource for:\n- **Event-Driven Architecture** patterns and best practices\n- **Microservices** design and implementation\n- **.NET 10 with C# 14 Minimal APIs** modern development approach\n- **Message Brokers** (RabbitMQ) integration\n- **Docker containerization** and orchestration\n- **Asynchronous communication** between services\n\n### ⚖️ **License \u0026 Usage**\n- **Educational Use Only**: This project is intended for learning and educational purposes\n- **Not for Commercial Use**: Please do not use this code in commercial applications without proper review and modifications\n- **Open Source**: Feel free to study, modify, and learn from this codebase\n\n### 🔗 **Learn More**\n- **Event-Driven Architecture**: Study the patterns demonstrated in this project\n- **Microservices**: Explore the service boundaries and communication patterns\n\n## License\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nThis project is licensed under the MIT License. See the [`LICENSE`](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkucukkara%2Fevent-driven-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffkucukkara%2Fevent-driven-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkucukkara%2Fevent-driven-demo/lists"}