#Java
17 posts tagged "java"
Part 1 — 購物車系統的高並發改造(一):Virtual Threads、HikariCP 與 Redis 快取三管齊下
深入剖析一個真實 Spring Boot 購物車系統如何從「默認設定」升級到能承受 C10K 的生產級高並發架構:JDK 21 Virtual Threads、HikariCP 連線池調校、Redis 分層快取設計,以及升級到 Spring Boot 3.2 過程中的關鍵踩坑。
Part 2 — 購物車系統的高並發改造(二):Redisson 分散式鎖、讀寫分離路由與 Docker HA 水平擴展
高並發購物車系列第二篇:深入剖析 Redisson 分散式鎖如何防止超賣與重複下單、AbstractRoutingDataSource + LazyConnectionDataSourceProxy 的讀寫分離路由設計細節(含 @Transactional 的坑),以及 Nginx + MySQL 主從複製的 Docker HA 生產架構。
Part 2 — Java Concurrency Deep Dive Part 2: Mastering Runnable, Callable Patterns and Internal Mechanisms
Deep dive into Java concurrency fundamentals: Runnable and Callable internals, thread synchronization mechanisms, memory models, and advanced patterns. Master the building blocks of Java concurrent programming.
Part 3 — Java Concurrency Part 3: Design Patterns with Thread Interfaces - Producer-Consumer, Observer, and Enterprise Patterns
Master concurrent design patterns using Java thread interfaces: Producer-Consumer, Observer, Command, Strategy, and Enterprise patterns. Learn practical implementations with Runnable and Callable, including pros/cons and real-world use cases.
AWS DynamoDB Complete Guide: Architecture, Indexing & Performance Optimization
Comprehensive guide to AWS DynamoDB covering data structures, architecture, indexing strategies, secondary indexes, sort keys, and performance optimization techniques for high-speed I/O operations.
JVM 記憶體深度解析:堆疊與堆積記憶體完整指南
深入探討 JVM 記憶體結構,包含堆疊記憶體、堆積記憶體的運作原理、配置策略及效能最佳化技巧,搭配實際程式碼範例與圖解說明。
Spring Boot 程式碼載入深度解析:從編譯到物件實例化完整流程
深入探討 Spring Boot 應用程式的程式碼載入機制,從 Java 原始碼編譯、類別載入、到 Spring Bean 物件實例化的完整流程分析。
AWS VPC Complete Guide: Enterprise Networking Patterns & VPC Peering
Comprehensive guide to AWS VPC types, enterprise network design patterns, VPC peering, and Java implementations for production-ready cloud networking.
AWS Load Balancers: Complete Guide - Application, Network, Gateway, and Classic Load Balancers Comparison with Implementation
Master AWS Load Balancers with comprehensive comparisons of ALB, NLB, GWLB, and CLB. Learn when to use each type, advanced features, health checks, auto-scaling integration, and production-ready configurations with real-world examples.
AWS API Gateway: Complete Guide with Load Balancer Comparison, Microservices Architecture, and Java Implementation
Master AWS API Gateway with comprehensive comparisons to load balancers, microservices integration patterns, and production-ready Java implementations. Learn when to use API Gateway vs Load Balancer, security best practices, and scaling strategies.
Webhooks: Complete Guide with Java Implementation - Event-Driven Architecture, Real-Time Integrations, and Best Practices
Master webhooks with comprehensive comparisons to HTTP calls and polling, real-world Java implementations, and practical examples using Stripe, Shopify, and GitHub APIs. Learn when to use webhooks, security best practices, and production-ready patterns.
Redis Sentinel: Complete High Availability Setup Guide with Java Integration and Monitoring
Master Redis Sentinel for high availability with comprehensive setup guides, mode comparisons, failover mechanisms, and production-ready Java integration. Learn monitoring, troubleshooting, and best practices for enterprise deployments.
Essential Design Patterns in Java: A Comprehensive Guide to Creational, Structural, and Behavioral Patterns
Master essential design patterns in Java with practical implementations. Learn Singleton, Factory, Builder, Observer, Strategy, Decorator, and more patterns with real-world examples, best practices, and performance considerations.
Building a Spotify Playlist Application with Spring Boot and Vue.js
使用 Spring Boot 後端與 Vue.js 前端,整合 Spotify API 打造智能音樂推薦系統,突破 Spotify 原生推薦限制,提供更主動的音樂探索體驗。
Java Concurrency and Threading: Complete Guide to Runnable, Callable, and Modern Thread Patterns
Comprehensive guide to Java concurrency and threading mechanisms. Learn Runnable vs Callable, ExecutorService, CompletableFuture, and advanced threading patterns with practical examples and performance analysis.
SAGA Pattern: Managing Distributed Transactions in Spring Boot Microservices
Complete guide to implementing SAGA pattern for distributed transactions in Java Spring Boot applications. Learn orchestration vs choreography approaches, failure handling, and best practices with real-world examples.
Data Consistency Patterns in Java Enterprise Applications
Comprehensive guide to implementing data consistency patterns in Java applications, including optimistic locking, pessimistic locking, and distributed transactions with real-world case studies and trade-off analysis.