# mec-cs/aws-bite-byte-backend architecture

> Architecture diagram of the GitHub repository mec-cs/aws-bite-byte-backend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mec-cs/aws-bite-byte-backend
- Repository: https://github.com/mec-cs/aws-bite-byte-backend

## Overview

##### Project type and purpose
- The README simply says “aws-bite-byte,” an AWS-focused group project. Combined with the domain names (foodrecipes, searchrecipe, createrecipe, comment, favorite, etc.), this is clearly a cloud-native, microservices-based food-recipe platform.

##### File structure
- Each module is a self-contained Spring Boot service, with its own controller, service, repository, entity layers and application.yml/properties.
- Some services use Feign clients (CreateRecipe, ProfileApi, ProfileRecipe), others use Redis caches (RecipeGetter, LikeDislike, ClickHistory).
- AmazonS3 and ProfilePictureDownloader handle file upload/download via AWS S3.
- There’s an API Gateway service and a NamingServer (Eureka) for service discovery.

##### README for additional insights
- The README is minimal, but “AWS University Engagement Program” implies AWS services (S3, possibly Secrets Manager) and a microservices architecture deployed on AWS.

##### Detail without over-splitting
– Capture all core services and their data stores.
– Show inter-service communication lines at the service level.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Authentication / Authorization Layer
    subgraph "Authentication / Authorization"
        direction TB
        APIGW["API Gateway"]:::gateway
        CRED["Credentials Service"]:::service
    end

    %% Recipe Domain
    subgraph "Recipe Domain"
        direction TB
        SEARCH["SearchRecipe Service"]:::service
        CREATE["CreateRecipe Service"]:::service
        GETTER["RecipeGetter Service"]:::service
        S3SERV["AmazonS3 Service"]:::storage
    end

    %% Profile Domain
    subgraph "Profile Domain"
        direction TB
        PROFLY["ProfileApi Service"]:::service
        PROFG["ProfileGetter Service"]:::service
        PPDOWN["ProfilePictureDownloader Service"]:::service
        SPRFL["SearchProfile Service"]:::service
    end

    %% Social Features Domain
    subgraph "Social Features"
        direction TB
        COMMENT["Comment Service"]:::service
        FAVOR["Favorite Service"]:::service
        LDIS["LikeDislike Service"]:::service
        FEED["FeedFollowingGetter Service"]:::service
        PPRO["ProfileRecipe Service"]:::service
    end

    %% Interaction Domain
    subgraph "Interaction"
        direction TB
        CLICK["ClickHistory Service"]:::service
    end

    %% Infrastructure
    subgraph "Infrastructure"
        direction TB
        EUREKA["Service Registry (Eureka)"]:::registry
        EMAIL["EmailSender Service"]:::infra
        DB_CRED["Credentials DB"]:::db
        DB_SEARCH["SearchRecipe DB"]:::db
        DB_CREATE["CreateRecipe DB"]:::db
        DB_GET["RecipeGetter DB"]:::db
        DB_PROFILE["ProfileApi DB"]:::db
        DB_PROFG["ProfileGetter DB"]:::db
        DB_COMMENT["Comment DB"]:::db
        DB_FAVOR["Favorite DB"]:::db
        DB_LDIS["LikeDislike DB"]:::db
        DB_FEED["FeedFollowingGetter DB"]:::db
        DB_PPRO["ProfileRecipe DB"]:::db
        CACHE_RECIPE["Redis Cluster (RecipeGetter)"]:::cache
        CACHE_LD["Redis Cluster (LikeDislike)"]:::cache
        CACHE_CLICK["Redis Cluster (ClickHistory)"]:::cache
        S3BUCKET["AWS S3 Bucket"]:::storage
        SECRETS["AWS Secrets Manager"]:::infra
    end

    %% Service Registrations
    APIGW -->|registers| EUREKA
    CRED -->|registers| EUREKA
    SEARCH -->|registers| EUREKA
    CREATE -->|registers| EUREKA
    GETTER -->|registers| EUREKA
    S3SERV -->|registers| EUREKA
    PROFLY -->|registers| EUREKA
    PROFG -->|registers| EUREKA
    PPDOWN -->|registers| EUREKA
    SPRFL -->|registers| EUREKA
    COMMENT -->|registers| EUREKA
    FAVOR -->|registers| EUREKA
    LDIS -->|registers| EUREKA
    FEED -->|registers| EUREKA
    PPRO -->|registers| EUREKA
    CLICK -->|registers| EUREKA
    EMAIL -->|registers| EUREKA

    %% External Client Flow
    Client["External Client"]:::external
    Client -->|HTTP| APIGW
    APIGW -->|FEIGN/HTTP| CRED
    APIGW -->|FEIGN/HTTP| SEARCH
    APIGW -->|FEIGN/HTTP| CREATE
    APIGW -->|FEIGN/HTTP| GETTER
    APIGW -->|FEIGN/HTTP| PROFLY
    APIGW -->|FEIGN/HTTP| COMMENT
    APIGW -->|FEIGN/HTTP| FAVOR
    APIGW -->|FEIGN/HTTP| LDIS
    APIGW -->|FEIGN/HTTP| FEED
    APIGW -->|FEIGN/HTTP| PPRO
    APIGW -->|FEIGN/HTTP| CLICK

    %% Inter-service Communication
    CREATE -->|HTTP| S3SERV
    CREATE -->|JPA| DB_CREATE
    SEARCH -->|JPA| DB_SEARCH
    GETTER -->|JPA| DB_GET
    GETTER -->|Redis| CACHE_RECIPE
    PROFLY -->|JPA| DB_PROFILE
    PROFLY -->|HTTP| PROFG
    PROFLY -->|HTTP| PPRO
    PROFG -->|JPA| DB_PROFG
    PPDOWN -->|S3 API| S3BUCKET
    SPRFL -->|JPA| DB_PROFG
    COMMENT -->|JPA| DB_COMMENT
    COMMENT -->|HTTP| PROFLY
    FAVOR -->|JPA| DB_FAVOR
    LDIS -->|JPA| DB_LDIS
    LDIS -->|Redis| CACHE_LD
    FEED -->|JPA| DB_FEED
    PPRO -->|JPA| DB_PPRO
    CLICK -->|JPA| DB_CLICK[ClickHistory DB]:::db
    CLICK -->|Redis| CACHE_CLICK
    EMAIL -->|SMTP| ExternalSMTP["SMTP Server"]:::external

    %% Storage interactions
    S3SERV -->|S3 API| S3BUCKET
    PPDOWN -->|S3 API| S3BUCKET

    %% Secrets Manager
    APIGW -->|AWS SDK| SECRETS

    %% Click Events
    click APIGW "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/apigateway/"
    click EUREKA "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/namingserver/"
    click CRED "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/credentials/"
    click SEARCH "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/SearchRecipe/"
    click CREATE "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/createrecipe/"
    click GETTER "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/recipegetter/"
    click PROFLY "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/profile/"
    click PROFG "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/profilegetter/"
    click PPDOWN "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/profilepicturedownloader/"
    click SPRFL "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/searchprofile/"
    click COMMENT "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/comment/"
    click FAVOR "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/favorite/"
    click LDIS "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/likedislike/"
    click FEED "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/feedfollowinggetter/"
    click PPRO "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/profilerecipe/"
    click CLICK "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/click/"
    click EMAIL "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/emailsender/"
    click S3SERV "https://github.com/mec-cs/aws-bite-byte-backend/tree/main/amazons3/"

    %% Styles
    classDef service fill:#D6EAF8,stroke:#3498DB
    classDef gateway fill:#E8DAEF,stroke:#9B59B6
    classDef registry fill:#FADBD8,stroke:#E74C3C,stroke-dasharray: 5 5
    classDef db fill:#FCF3CF,stroke:#F1C40F
    classDef cache fill:#FCF3CF,stroke:#F39C12,stroke-dasharray: 2 2
    classDef storage fill:#E8F8F5,stroke:#1ABC9C
    classDef infra fill:#F4F6F7,stroke:#95A5A6
    classDef external fill:#F2F3F4,stroke:#7F8C8D,stroke-dasharray: 3 3
```
