{"id":25828429,"url":"https://github.com/chenxu2394/ticketsystem-rabbitmq","last_synced_at":"2025-09-10T18:35:01.352Z","repository":{"id":215376668,"uuid":"738774101","full_name":"chenxu2394/TicketSystem-RabbitMQ","owner":"chenxu2394","description":"An example implementation of a distributed, asynchronous messaging system for an amusement park ticketing application using RabbitMQ.","archived":false,"fork":false,"pushed_at":"2024-01-04T03:28:57.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T20:43:53.049Z","etag":null,"topics":["asynchronous-messaging","backend","cloudcomputing","distributed-systems","eventdrivenarchitecture","rabbitmq"],"latest_commit_sha":null,"homepage":"","language":"Python","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/chenxu2394.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}},"created_at":"2024-01-04T02:33:30.000Z","updated_at":"2025-03-25T09:50:10.000Z","dependencies_parsed_at":"2024-01-04T04:27:13.725Z","dependency_job_id":"0cbcce0f-03d2-4988-99da-fb26bb0a5820","html_url":"https://github.com/chenxu2394/TicketSystem-RabbitMQ","commit_stats":null,"previous_names":["chenxu2394/ticketsystem-rabbitmq"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chenxu2394/TicketSystem-RabbitMQ","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenxu2394%2FTicketSystem-RabbitMQ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenxu2394%2FTicketSystem-RabbitMQ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenxu2394%2FTicketSystem-RabbitMQ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenxu2394%2FTicketSystem-RabbitMQ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenxu2394","download_url":"https://codeload.github.com/chenxu2394/TicketSystem-RabbitMQ/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenxu2394%2FTicketSystem-RabbitMQ/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264507097,"owners_count":23619141,"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":["asynchronous-messaging","backend","cloudcomputing","distributed-systems","eventdrivenarchitecture","rabbitmq"],"created_at":"2025-02-28T17:39:30.603Z","updated_at":"2025-07-10T01:08:28.012Z","avatar_url":"https://github.com/chenxu2394.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RabbitMQ Amusement Park Ticketing System\n\nThis repository contains my implementation of an asynchronous messaging system for an amusement park ticketing application, using RabbitMQ. This project is part of an assignment I completed for the Cloud Software and Systems course offered by the Department of Computer Science at Aalto University. It focuses on building distributed systems with asynchronous messaging principles.\n\n## Project Overview\n\nThe application simulates an amusement park ticketing system, comprising of three main components:\n\n- **Ticket Machine (TicketEventProducer)**: Simulates customers tapping their phone to issue ticket events.\n- **Ticket Worker (TicketWorker)**: Processes ticket events by verifying customer details and ride prices, and then notifying the customers.\n- **Customer App (CustomerEventConsumer)**: Receives notifications about ticket processing for individual customers.\n\n## Message Flow Diagram\n\n```mermaid\nflowchart TD\n    A(Ticket Machine) --\u003e|Direct Exchange| B[Worker Queue]\n    B --\u003e |Invalid|Z[Dead Letter Exchange]\n    B --\u003e |Valid| C{ }\n    C --\u003e Y[Worker 1]\n    C --\u003e X[Worker 2]\n    X --\u003e D[Topic Exchange]\n    Y --\u003e D[Topic Exchange]\n    D --\u003e E(Customer App)\n```\n\n## System Architecture\n\n```mermaid\nsequenceDiagram\n    participant TM as Ticket Machine\n    participant TW as Ticket Worker\n    participant CA as Customer App\n    participant RMQ as RabbitMQ Broker\n\n    TM-\u003e\u003eRMQ: TicketEvent\n    RMQ-\u003e\u003eTW: Forward TicketEvent\n    TW-\u003e\u003eTW: Process Event\n    TW-\u003e\u003eRMQ: CustomerEvent\n    RMQ-\u003e\u003eCA: Forward CustomerEvent to relevant Customer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenxu2394%2Fticketsystem-rabbitmq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenxu2394%2Fticketsystem-rabbitmq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenxu2394%2Fticketsystem-rabbitmq/lists"}