{"id":28376146,"url":"https://github.com/ozturkeniss/microservices-designed","last_synced_at":"2025-07-23T12:08:19.531Z","repository":{"id":291178066,"uuid":"975811850","full_name":"ozturkeniss/MicroServices-Designed","owner":"ozturkeniss","description":"This project implements a modern e-commerce platform using a microservices architecture. The system is designed to be scalable, resilient, and maintainable, following domain-driven design principles and event-driven communication patterns.","archived":false,"fork":false,"pushed_at":"2025-05-02T21:39:03.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T10:50:19.239Z","etag":null,"topics":["aggregator","docker","e-commerce","microservices-architecture","ocelot-gateway","rabbitmq","testing"],"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/ozturkeniss.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,"zenodo":null}},"created_at":"2025-05-01T00:10:41.000Z","updated_at":"2025-05-02T21:39:06.000Z","dependencies_parsed_at":"2025-05-02T22:30:33.716Z","dependency_job_id":null,"html_url":"https://github.com/ozturkeniss/MicroServices-Designed","commit_stats":null,"previous_names":["kalzimkholodros/microservices-designed","ozturkeniss/microservices-designed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ozturkeniss/MicroServices-Designed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozturkeniss%2FMicroServices-Designed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozturkeniss%2FMicroServices-Designed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozturkeniss%2FMicroServices-Designed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozturkeniss%2FMicroServices-Designed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozturkeniss","download_url":"https://codeload.github.com/ozturkeniss/MicroServices-Designed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozturkeniss%2FMicroServices-Designed/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266673578,"owners_count":23966375,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["aggregator","docker","e-commerce","microservices-architecture","ocelot-gateway","rabbitmq","testing"],"created_at":"2025-05-30T00:05:35.582Z","updated_at":"2025-07-23T12:08:19.521Z","avatar_url":"https://github.com/ozturkeniss.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Commerce Microservices Architecture\n\n## Overview\n\nThis project implements a modern e-commerce platform using a microservices architecture. The system is designed to be scalable, resilient, and maintainable, following domain-driven design principles and event-driven communication patterns.\n\n## Architecture\n\n![Ekran görüntüsü 2025-05-03 003843](https://github.com/user-attachments/assets/edb9fc89-55b3-447a-82e3-ad06288e4feb)\n\n\n## Service Components\n\n### API Gateways\n\n1. **Ocelot API Gateway**\n   - Routes external requests to appropriate microservices\n   - Implements API composition and request aggregation\n   - Handles cross-cutting concerns like authentication and rate limiting\n\n2. **Aggregator Gateway**\n   - Provides composite APIs for complex operations\n   - Orchestrates multiple service calls\n   - Implements circuit breaker pattern for resilience\n\n### Core Services\n\n1. **Basket Service**\n   - Manages shopping cart operations\n   - Implements distributed caching with Redis\n   - Handles concurrent cart modifications\n\n2. **Product Service**\n   - Manages product catalog and inventory\n   - Implements product search and filtering\n   - Publishes product-related events\n\n3. **Order Service**\n   - Processes order creation and management\n   - Implements saga pattern for distributed transactions\n   - Maintains order history and status\n\n4. **Payment Service**\n   - Handles payment processing\n   - Implements payment gateway integration\n   - Manages transaction history\n\n## Technology Stack\n\n```mermaid\ngraph LR\n    A[.NET 8] --\u003e B[ASP.NET Core]\n    B --\u003e C[Entity Framework Core]\n    B --\u003e D[Ocelot]\n    B --\u003e E[Polly]\n    \n    F[PostgreSQL] --\u003e G[Entity Framework]\n    H[Redis] --\u003e I[Distributed Cache]\n    J[RabbitMQ] --\u003e K[Event Bus]\n```\n\n### Infrastructure\n\n- **PostgreSQL**: Primary data store for services\n- **Redis**: Distributed caching for basket service\n- **RabbitMQ**: Message broker for event-driven communication\n- **Docker**: Containerization and orchestration\n- **Docker Compose**: Local development environment\n\n## Communication Patterns\n\n```mermaid\nsequenceDiagram\n    participant Client\n    participant Gateway\n    participant Service\n    participant EventBus\n    \n    Client-\u003e\u003eGateway: HTTP Request\n    Gateway-\u003e\u003eService: Forward Request\n    Service-\u003e\u003eEventBus: Publish Event\n    EventBus-\u003e\u003eService: Consume Event\n    Service-\u003e\u003eGateway: Response\n    Gateway-\u003e\u003eClient: HTTP Response\n```\n\n### Key Patterns\n\n1. **Event-Driven Architecture**\n   - Asynchronous communication between services\n   - Loose coupling and high scalability\n   - Eventual consistency\n\n2. **Circuit Breaker**\n   - Fault tolerance and resilience\n   - Graceful degradation\n   - Automatic recovery\n\n3. **CQRS Pattern**\n   - Separate read and write models\n   - Optimized query performance\n   - Scalable data access\n\n## Development Guidelines\n\n1. **Service Independence**\n   - Each service has its own database\n   - Independent deployment and scaling\n   - Service-specific technology choices\n\n2. **API Design**\n   - RESTful endpoints\n   - Versioned APIs\n   - Standardized error handling\n\n3. **Testing Strategy**\n   - Unit tests for business logic\n   - Integration tests for service communication\n   - End-to-end tests for critical flows\n\n## Deployment Architecture\n\n```mermaid\ngraph TD\n    LB[Load Balancer] --\u003e GW[API Gateway]\n    GW --\u003e S1[Service 1]\n    GW --\u003e S2[Service 2]\n    GW --\u003e S3[Service 3]\n    \n    S1 --\u003e DB1[(Database 1)]\n    S2 --\u003e DB2[(Database 2)]\n    S3 --\u003e DB3[(Database 3)]\n    \n    S1 --\u003e Cache[(Cache)]\n    S2 --\u003e Cache\n    S3 --\u003e Cache\n    \n    S1 --\u003e MQ[Message Queue]\n    S2 --\u003e MQ\n    S3 --\u003e MQ\n```\n\n## Monitoring and Observability\n\n- Distributed tracing\n- Centralized logging\n- Health checks\n- Performance metrics\n- Alerting system \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozturkeniss%2Fmicroservices-designed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozturkeniss%2Fmicroservices-designed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozturkeniss%2Fmicroservices-designed/lists"}