{"id":26717984,"url":"https://github.com/amalchandru/tickete-hiring-problem","last_synced_at":"2026-04-15T13:33:59.345Z","repository":{"id":284588069,"uuid":"953964835","full_name":"AmalChandru/tickete-hiring-problem","owner":"AmalChandru","description":"A scalable inventory fetching service that periodically syncs product availability data from a partner API. It supports configurable fetching intervals, rate limiting, batch processing, and API endpoints for retrieving availability data. Includes pause/resume functionality per product.","archived":false,"fork":false,"pushed_at":"2025-03-29T18:15:51.000Z","size":409,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T11:43:30.594Z","etag":null,"topics":["inventory-system","nestjs","postgresql","prisma","rest-api","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmalChandru.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}},"created_at":"2025-03-24T11:03:51.000Z","updated_at":"2025-03-29T19:29:42.000Z","dependencies_parsed_at":"2025-03-26T17:26:51.124Z","dependency_job_id":"aec32b45-83c4-4608-99e8-12d5be761e7b","html_url":"https://github.com/AmalChandru/tickete-hiring-problem","commit_stats":null,"previous_names":["amalchandru/tickete-hiring-problem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmalChandru/tickete-hiring-problem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalChandru%2Ftickete-hiring-problem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalChandru%2Ftickete-hiring-problem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalChandru%2Ftickete-hiring-problem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalChandru%2Ftickete-hiring-problem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmalChandru","download_url":"https://codeload.github.com/AmalChandru/tickete-hiring-problem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmalChandru%2Ftickete-hiring-problem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"last_error":"SSL_read: 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":["inventory-system","nestjs","postgresql","prisma","rest-api","typescript"],"created_at":"2025-03-27T16:33:56.182Z","updated_at":"2026-04-15T13:33:59.315Z","avatar_url":"https://github.com/AmalChandru.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Inventory Sync 🛸\n\n![Fetching Service Architecture](./docs//fetch-inventory.png)\n\n### System 🤖\n- **[Cron Job](https://github.com/AmalChandru/tickete-hiring-problem/pull/1)**: Triggers at scheduled intervals to create fetch jobs.  \n- **Database**: Stores inventory data and tracks job execution.  \n- **[Priority Queue](https://github.com/AmalChandru/tickete-hiring-problem/pull/2)**: Manages fetch jobs efficiently, ensuring timely execution.  \n- **[Workers](https://github.com/AmalChandru/tickete-hiring-problem/pull/4)**: Pull jobs from the queue, fetch data from the external API, and update the database.  \n- **[External API](https://github.com/AmalChandru/tickete-hiring-problem/pull/5)**: The source of inventory data, providing slot availability and pricing.  \n- **[Sync Process](https://github.com/AmalChandru/tickete-hiring-problem/pull/7)**: Updates inventory in the database after successful data retrieval.  \n\n### Code Glossary 🐉\n\n```\ntickete-hiring-problem\n├── config/              # Configuration files (e.g., default settings, logger setup)\n├── docs/                # Documentation for system design, API design, optimizations\n│   ├── fetch-inventory.png  # System architecture diagram\n│   ├── system_design.md     # System design details\n│   ├── api_design.md        # API specifications\n│   ├── optimization_strategies.md  # Performance improvements\n│   └── api_call_feasibility_analysis.md  # Feasibility of API requests\n├── prisma/              # Database schema and migrations (Prisma ORM)\n│   └── schema.prisma    # Prisma schema defining the database structure\n├── src/                 # Main source code for the project\n│   ├── database/        # Database connection module (e.g., database service)\n│   ├── enums/           # Enum definitions (e.g., fetch-period types)\n│   ├── modules/         # Main business logic, divided into modules\n│   │   ├── api-fetcher/ # Service for fetching data from external APIs\n│   │   ├── experience/  # Experience-related API endpoints and logic\n│   │   ├── inventory/   # Inventory synchronization logic\n│   │   ├── queue/       # Priority queue implementation for processing jobs\n│   │   ├── scheduler/   # Scheduler module for triggering jobs\n│   │   └── workers/     # Worker services that process API fetch jobs\n│   ├── app.module.ts    # Root module of the application\n│   └── main.ts          # Entry point of the NestJS application\n├── test/                # End-to-end tests\n├── README.md            # Project documentation\n├── package.json         # Project dependencies and scripts\n├── tsconfig.json        # TypeScript configuration\n├── nest-cli.json        # NestJS CLI configuration\n└── LICENSE              # License information\n\n```\n### Notes 📚\n1. [System design](./docs/system_design.md).\n2. [API design](./docs/api_design.md).\n3. [Optimization Strategies](./docs/optimization_strategies.md).\n4. [API call feasibility analysis](./docs/api_call_feasibility_analysis.md).\n5. [Setup guide.](./docs/setup_guide.md)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famalchandru%2Ftickete-hiring-problem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famalchandru%2Ftickete-hiring-problem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famalchandru%2Ftickete-hiring-problem/lists"}