{"id":19644364,"url":"https://github.com/nanorocks/symfony-microservices","last_synced_at":"2026-04-21T10:02:13.036Z","repository":{"id":212193944,"uuid":"730918413","full_name":"nanorocks/symfony-microservices","owner":"nanorocks","description":"Microservices architecture with symfony framework","archived":false,"fork":false,"pushed_at":"2023-12-13T01:12:02.000Z","size":2,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-09T20:11:55.746Z","etag":null,"topics":["docker","microservice","php","rabbitmq","redis","symfony5"],"latest_commit_sha":null,"homepage":"","language":null,"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/nanorocks.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}},"created_at":"2023-12-13T00:49:50.000Z","updated_at":"2023-12-13T01:12:50.000Z","dependencies_parsed_at":"2024-01-03T23:30:16.147Z","dependency_job_id":null,"html_url":"https://github.com/nanorocks/symfony-microservices","commit_stats":null,"previous_names":["nanorocks/symfony-microservices"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanorocks%2Fsymfony-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanorocks%2Fsymfony-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanorocks%2Fsymfony-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanorocks%2Fsymfony-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanorocks","download_url":"https://codeload.github.com/nanorocks/symfony-microservices/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240951604,"owners_count":19883757,"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":["docker","microservice","php","rabbitmq","redis","symfony5"],"created_at":"2024-11-11T14:27:06.146Z","updated_at":"2026-04-21T10:02:12.891Z","avatar_url":"https://github.com/nanorocks.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🚀 Microservices Architecture with RabbitMQ, Redis, and Symfony PHP\n\n## Overview\n\nThis project showcases a sophisticated microservices architecture, utilizing Symfony PHP for each microservice, RabbitMQ as a dynamic message broker, and Redis for efficient caching. The architecture comprises two pivotal Symfony microservices: User \u0026 Event Microservice and Betting Microservice. RabbitMQ orchestrates asynchronous communication between these microservices, while Redis optimizes data retrieval speed, enhancing overall performance and mitigating database load.\n\n## 🛠️ Components\n\n1. **User \u0026 Event Microservice:**\n   - Manages user data and sports events using Symfony PHP.\n   - Publishes user-related events (e.g., customization) and sports events data.\n   - Leverages Redis for caching frequently accessed user data and sports events.\n\n2. **Betting Microservice:**\n   - Handles betting-related data using Symfony PHP.\n   - Consumes user-related events and sports events data, then publishes betting data.\n   - Takes advantage of Redis for caching frequently accessed betting-related data.\n\n3. **RabbitMQ:**\n   - Serves as a dynamic message broker between the User \u0026 Event Microservice and Betting Microservice.\n   - Facilitates seamless asynchronous communication.\n\n4. **Redis:**\n   - Employs caching for frequently accessed data within the User \u0026 Event Microservice and Betting Microservice.\n   - Enhances data retrieval speed and reduces the load on databases.\n\n## 🌐 Diagram Overview\n\n```plaintext\n+----------------------+          +----------------------+\n|   User \u0026 Event       |          |   Betting            |\n|   Microservice       |          |   Microservice       |\n+-----------^----------+          +----------^-----------+\n            |                                |\n            | Publishes events, user data    |\n            |                                |\n            v                                v\n+---------------------+      +-----------------------------+\n|      Redis Cache    |      |        Redis Cache         |\n|                     |      |                            |\n+---------------------+      +-----------------------------+\n            |                                |\n            | Caches user and sports events   |\n            | data                           |\n            |                                |\n+-----------+--------------------------------+------------------+\n|                  RabbitMQ Message Queue                        |\n+----------------------------------------------------------------+\n            |\n            | Consumes events, user data, and publishes betting data\n            |\n+-----------v----------+          +-----------------------------+\n|      User Entity    |          |        Bet \u0026 Trend Entity   |\n|      Event Entity   |          |                             |\n+---------------------+          +-----------------------------+\n```\n\n## 🚀 Usage\n\n1. **Clone the Repository:**\n   ```bash\n   git clone https://github.com/yourusername/your-repo.git\n   ```\n\n2. **Install Dependencies:**\n   - Navigate to each Symfony microservice directory and run:\n     ```bash\n     composer install\n     ```\n\n3. **Configure RabbitMQ and Redis:**\n   - Update configuration files in each Symfony microservice to point to your RabbitMQ and Redis instances.\n\n4. **Run Microservices:**\n   - Start each Symfony microservice:\n     ```bash\n     php bin/console server:start\n     ```\n\n## ⚙️ Configuration\n\n- Adjust Symfony configuration files (config/packages/*.yaml) in each microservice to set environment-specific variables for RabbitMQ and Redis connections.\n\n## 🤝 Contributions\n\nContributions are welcome! Please follow our [Contribution Guidelines](CONTRIBUTING.md).\n\n## 📝 License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanorocks%2Fsymfony-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanorocks%2Fsymfony-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanorocks%2Fsymfony-microservices/lists"}