How minhquang1310/learning-golang-logs works
Main Components
• Learning / Concept Module: Represent the core learning path that covers fundamentals (variables, data types, control flows, arrays/slices, maps, functions, error handling) and advanced topics (concurrency with goroutines/channels, defer, pointers, memory management).
• Sample Application Modules: Since the log includes projects like a Todo list, Social Blog, and Ecommerce ideas, include separate modules for each sample project. These modules provide a practical implementation of concepts such as:
– HTTP Server Components using Gin, Echo, or mux.
– Business Logic (CRUD, authentication via JWT with token refresh, RBAC, etc.).
• Data / Persistence Layer: Illustrate database interactions using GORM with MySQL, PostgreSQL, and mention related practices (database migrations, refresh token table management).
• Concurrency Module: Highlight how the project experiments with Goroutines, Channels, Mutexes, RWMutex, and concurrent processing techniques.
• External Infrastructure & Cloud Integration: Based on the AWS learning sections, add components for AWS services – VPC (with subnets, NAT gateways), EC2, S3, and other elements like security groups. These speak to the concepts of deploying and scaling cloud-native applications.
Relationships & Interactions
• Authentication flow from the client invoking login, which then interacts with the Token Management service that issues and refreshes JWT tokens.
• Out the containerization pipeline, where the Docker Engine builds the Go image from the Dockerfile, which then becomes the running container hosting the API.
• If desired, layer the AWS services by drawing a cloud boundary that contains components like EC2 instances running Docker containers, S3 for object storage, and VPC networking details.
Architectural Patterns & Design Principles
• Separation of Concerns: Different layers (learning modules, API layer, data persistence, token management) are distinct.
• Modularity: Each sample project (Todo list, Social Blog, Ecommerce) is conceptually separated even if they are documented in one learning log.
• Concurrency and Parallelism Concepts: Indicate how Go’s native concurrency features were experimented with to improve performance.
• Containerization & Cloud-readiness: Illustrate the shift from local learning experiments to deployment-ready architecture using Docker and AWS.
• Clear and concise labels for each component (e.g., “Learning Module – Go Fundamentals”, “HTTP API (Gin/Echo)”, “Data Persistence (GORM + PostgreSQL/MySQL)”, “Authentication & JWT Manager”, “Docker Container”, “AWS Infrastructure”).
• Annotations that note the architectural patterns (such as “Microservices/Modular design” if considering the sample projects, or “Client–Server” for the web API flow).