How sylvesterkwon/recrit works
Main System Components
a) External Services Layer (Top)
• TMDB API Integration
• Kafka Message Broker
• Elasticsearch
• Neo4j Graph Database
b) Application Layer (Middle)
• API Gateway/Controllers
• Application Services
• Domain Services
• Event Manager
c) Data Layer (Bottom)
• Repositories
• Entities
• Database Connections
Component Relationships
• User Module (Authentication & Authorization)
• Movie Module
• Comparable Module
• Comparison Module
• Graph Module
• Elasticsearch Module
• Common Layer (Decorators, Filters, Exceptions)
• Event Management System
• Authentication/Authorization
Specific Implementation Details
Important architectural patterns:
a) Data Flow Patterns:
• REST API endpoints (Controllers)
• Event-driven communication (Kafka)
• Graph-based relationships (Neo4j)
• Search functionality (Elasticsearch)
b) Security Layer:
• JWT Authentication
• Permission-based authorization
• Guards and strategies
Key Relationships to Highlight
• User Authentication Flow
• Movie Synchronization with TMDB
• Comparison Creation and Storage
• Event Processing Pipeline
• Search and Graph Relationships
The modular architecture following NestJS patterns
This will provide a clear understanding of how the system components interact while maintaining the scalability and maintainability of the application.