# ansakharov/go_concurrency_tasks architecture

> Architecture diagram of the GitHub repository ansakharov/go_concurrency_tasks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ansakharov/go_concurrency_tasks
- Repository: https://github.com/ansakharov/go_concurrency_tasks

## Overview

##### Main Components

a. Learning Modules (3 Main Categories):
- Sync Primitives Module
- Maps Concurrency Module
- Channels Module

b. Exercise Structure:
- Problem Statement Component
- Solution Component
- Testing/Validation Component

##### Component Relationships

Use the following symbols and connections:

##### Additional Elements

Supplementary components:
- Version control integration indicator
- Exercise completion tracking mechanism

##### Metadata Section

- Project version
- Total number of exercises
- Contribution guidelines reference
- Prerequisites (Go knowledge level)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        L1[Exercise Module]:::module
        L2[Exercise Category]:::category
        L3[Exercise Implementation]:::implementation
        L4[Solution Implementation]:::solution
        style Legend fill:#f0f0f0,stroke:#333,stroke-width:2px
    end

    subgraph "Learning Path"
        Start((Start))
        Doc["Documentation"]:::docs
        click Doc "https://github.com/ansakharov/go_concurrency_tasks/blob/master/readme.md"

        subgraph "1. Sync Primitives"
            Sync["Sync Module"]:::module
            click Sync "https://github.com/ansakharov/go_concurrency_tasks/tree/master/1_sync"
            SyncEx["Exercise Implementation"]:::implementation
            click SyncEx "https://github.com/ansakharov/go_concurrency_tasks/blob/master/1_sync/main.go"
            SyncSol["Solution Implementation"]:::solution
            click SyncSol "https://github.com/ansakharov/go_concurrency_tasks/blob/master/1_sync/solution/main.go"
        end

        subgraph "2. Maps Concurrency"
            Maps["Maps Module"]:::module
            click Maps "https://github.com/ansakharov/go_concurrency_tasks/tree/master/2_maps"
            
            ConcWrites["Concurrent Writes"]:::category
            click ConcWrites "https://github.com/ansakharov/go_concurrency_tasks/tree/master/2_maps/1_writes"
            
            ConcReadsWrites["Concurrent Reads/Writes"]:::category
            click ConcReadsWrites "https://github.com/ansakharov/go_concurrency_tasks/tree/master/2_maps/2_reads_writes"
            
            SyncOnce["Sync.Once with Maps"]:::category
            click SyncOnce "https://github.com/ansakharov/go_concurrency_tasks/tree/master/2_maps/3_once_with_map"
        end

        subgraph "3. Channels"
            Chan["Channels Module"]:::module
            click Chan "https://github.com/ansakharov/go_concurrency_tasks/tree/master/3_chan"
            
            ChanIntro["Introduction"]:::category
            click ChanIntro "https://github.com/ansakharov/go_concurrency_tasks/tree/master/3_chan/1_into"
            
            SelectOps["Select Operations"]:::category
            click SelectOps "https://github.com/ansakharov/go_concurrency_tasks/tree/master/3_chan/2_select"
            
            DefCases["Default Cases"]:::category
            click DefCases "https://github.com/ansakharov/go_concurrency_tasks/tree/master/3_chan/3_def"
            
            ChanMerge["Channel Merging"]:::category
            click ChanMerge "https://github.com/ansakharov/go_concurrency_tasks/tree/master/3_chan/4_merge_channels"
            
            BatchProc["Batch Processing"]:::category
            click BatchProc "https://github.com/ansakharov/go_concurrency_tasks/tree/master/3_chan/5_batch_stream"
            
            RateLimit["Rate Limiting"]:::category
            click RateLimit "https://github.com/ansakharov/go_concurrency_tasks/tree/master/3_chan/6_rate_limit"
            
            GoroutineLimit["Goroutine Limiting"]:::category
            click GoroutineLimit "https://github.com/ansakharov/go_concurrency_tasks/tree/master/3_chan/7_g_l"
        end

        Start --> Doc
        Doc --> Sync
        Sync --> Maps
        Maps --> Chan

        Sync --> SyncEx
        SyncEx --> SyncSol

        Maps --> ConcWrites
        ConcWrites --> ConcReadsWrites
        ConcReadsWrites --> SyncOnce

        Chan --> ChanIntro
        ChanIntro --> SelectOps
        SelectOps --> DefCases
        DefCases --> ChanMerge
        ChanMerge --> BatchProc
        BatchProc --> RateLimit
        RateLimit --> GoroutineLimit
    end

    classDef module fill:#3498db,stroke:#2980b9,color:white
    classDef category fill:#2ecc71,stroke:#27ae60,color:white
    classDef implementation fill:#e74c3c,stroke:#c0392b,color:white
    classDef solution fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef docs fill:#f1c40f,stroke:#f39c12,color:black
```
