# hongxeob/archiving architecture

> Architecture diagram of the GitHub repository hongxeob/archiving, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hongxeob/archiving
- Repository: https://github.com/hongxeob/archiving

## Overview

##### Main Components Identification

The project can be organized into these main components:
- Knowledge Base Components
- Lab Projects
- Study Materials
- Code Examples

**[Knowledge Management System]**

**[Core] [Lab] [CS] [Practice]**

**[Core Knowledge Base]**

- Spring Framework
- Core Concepts
- Security
- Data Access

- Java
- JVM
- Core Features
- Best Practices

- Database
- Concepts
- SQL
- Design

- Architecture
- Patterns
- Best Practices

**[Lab Projects]**

- Coupon System (Redis)
- API Layer
- Service Layer
- Data Layer

- Payment Saga Pattern
- Order Service
- Payment Service
- Stock Service

- Query & Stream Test
- Test Cases
- Performance Metrics

##### Relationship Mapping

- Use different line styles:

##### Implementation Details

For Lab Projects:
**[Coupon System]**

- [API Layer]
- Controllers
- DTOs

- [Service Layer]
- Business Logic
- Event Handling

- [Data Layer]
- Redis
- JPA

- [Infrastructure]
- Configuration
- Scheduling

##### Cross-Cutting Concerns

How common elements like testing, documentation, and security are implemented across the system:
**[Cross-Cutting Concerns]**

- Testing Strategy
- Unit Tests
- Integration Tests

- Documentation
- Technical Docs
- API Docs

- Security
- Authentication
- Authorization

- Clear separation of concerns
- Hierarchical structure of knowledge
- Relationships between different components
- Implementation details of practical projects
- Cross-cutting concerns and their implementation

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Legend
        L1[Component]:::component
        L2([Service]):::service
        L3[(Database)]:::database
        L4{{Infrastructure}}:::infrastructure
        L5[/API/]:::api
    end

    KMS[Knowledge Management System]:::root

    subgraph CoreKnowledge[Core Knowledge Base]
        Spring[Spring Framework]:::core
        Java[Java]:::core
        DB[Database]:::core
        Arch[Architecture]:::core

        Spring --> SpringCore[Core Concepts]
        Spring --> SpringSec[Security]
        Spring --> SpringData[Data Access]

        Java --> JVM[JVM]
        Java --> CoreFeatures[Core Features]
        Java --> BestPractices[Best Practices]

        DB --> DBConcepts[Concepts]
        DB --> SQL[SQL]
        DB --> DBDesign[Design]

        Arch --> Patterns[Patterns]
        Arch --> ArchBest[Best Practices]
    end

    subgraph LabProjects[Lab Projects]
        Coupon[Coupon System]:::project
        Payment[Payment Saga Pattern]:::project
        QueryTest[Query & Stream Test]:::project

        subgraph CouponSystem[Coupon System Components]
            CouponAPI[/API Layer/]:::api
            CouponService([Service Layer]):::service
            CouponData[(Data Layer)]:::database
            CouponInfra{{Infrastructure}}:::infrastructure
        end

        subgraph PaymentSystem[Payment Saga Components]
            OrderService([Order Service]):::service
            PaymentService([Payment Service]):::service
            StockService([Stock Service]):::service
        end

        subgraph QuerySystem[Query Test Components]
            TestCases[Test Cases]:::test
            PerfMetrics[Performance Metrics]:::test
        end
    end

    subgraph CrossCutting[Cross-Cutting Concerns]
        Testing[Testing Strategy]:::cross
        Documentation[Documentation]:::cross
        Security[Security]:::cross

        Testing --> UnitTests[Unit Tests]
        Testing --> IntegTests[Integration Tests]
        Documentation --> TechDocs[Technical Docs]
        Documentation --> APIDocs[API Docs]
        Security --> Auth[Authentication]
        Security --> Authz[Authorization]
    end

    KMS --> CoreKnowledge
    KMS --> LabProjects
    KMS --> CrossCutting

    %% Component Mappings
    click Spring "https://github.com/hongxeob/Archiving/tree/main/Spring/"
    click Java "https://github.com/hongxeob/Archiving/tree/main/JAVA/"
    click DB "https://github.com/hongxeob/Archiving/tree/main/DB/"
    click Arch "https://github.com/hongxeob/Archiving/blob/main/ETC./DDD(Domain-Driven Design).md"
    click Coupon "https://github.com/hongxeob/Archiving/tree/main/LAB/coupon-system-redis/"
    click Payment "https://github.com/hongxeob/Archiving/tree/main/LAB/payment-saga-pattern/"
    click QueryTest "https://github.com/hongxeob/Archiving/tree/main/LAB/query_and_stream_test/"
    click Testing "https://github.com/hongxeob/Archiving/tree/main/Test/"
    click CouponInfra "https://github.com/hongxeob/Archiving/tree/main/LAB/coupon-system-redis/src/main/java/org/example/couponsystem/config/"
    click PaymentSystem "https://github.com/hongxeob/Archiving/tree/main/LAB/payment-saga-pattern/"

    %% Styling
    classDef root fill:#f9f,stroke:#333,stroke-width:4px
    classDef component fill:#bbf,stroke:#333,stroke-width:2px
    classDef service fill:#bfb,stroke:#333,stroke-width:2px
    classDef database fill:#fbb,stroke:#333,stroke-width:2px
    classDef infrastructure fill:#fbf,stroke:#333,stroke-width:2px
    classDef api fill:#ff9,stroke:#333,stroke-width:2px
    classDef core fill:#ddf,stroke:#333,stroke-width:2px
    classDef project fill:#dfd,stroke:#333,stroke-width:2px
    classDef cross fill:#fdd,stroke:#333,stroke-width:2px
    classDef test fill:#ffd,stroke:#333,stroke-width:2px
```
