Java Architecture Stack
Author

Java Architecture Stack

Dedicated to original, practical tech insights—from skill advancement to architecture, front‑end to back‑end, the full‑stack path, with Wei Ge guiding you.

31
Articles
0
Likes
4
Views
0
Comments
Recent Articles

Latest from Java Architecture Stack

31 recent articles
Java Architecture Stack
Java Architecture Stack
Nov 22, 2024 · Fundamentals

Why ArkTS Rejects Structural Typing and What It Means for Developers

This article explains the concept of structural typing in TypeScript, contrasts it with ArkTS's nominal typing approach, provides code examples illustrating compatibility rules, and analyzes why Huawei chose to disable structural typing in ArkTS, highlighting the trade‑offs involved.

ArkTSHarmonyOSNominal Typing
0 likes · 10 min read
Why ArkTS Rejects Structural Typing and What It Means for Developers
Java Architecture Stack
Java Architecture Stack
Nov 18, 2024 · Fundamentals

Inside Go’s Runtime: How mcache and mheap Manage Memory

This article provides a detailed technical analysis of Go's runtime memory management, covering the initialization of the mheap structure, small‑object allocation via mcache, large‑object handling, the three‑color mark‑and‑sweep garbage collector, memory release mechanisms, and the optimization techniques that coordinate mcache and mheap for efficient concurrent execution.

ConcurrencyGarbage CollectionGo
0 likes · 12 min read
Inside Go’s Runtime: How mcache and mheap Manage Memory
Java Architecture Stack
Java Architecture Stack
Nov 14, 2024 · Backend Development

How Read‑Write Lock Separation Supercharges E‑Commerce Inventory

This article explains the read‑write lock separation design pattern, its principles, suitable scenarios such as high‑concurrency inventory queries, and provides a complete Java implementation with ReentrantReadWriteLock, including code samples, testing, performance benefits, and a discussion of its advantages and limitations.

InventoryManagementJavaPerformance
0 likes · 9 min read
How Read‑Write Lock Separation Supercharges E‑Commerce Inventory
Java Architecture Stack
Java Architecture Stack
Nov 6, 2024 · Information Security

Mastering Apache Shiro: Core Concepts, Real‑World Usage, and JWT Microservice Integration

This article explains Apache Shiro’s fundamental components—Subject, SecurityManager, Realm, Session, authentication, authorization, and cryptography—then walks through a complete configuration example, a custom Realm, JWT integration, and a Spring Boot microservice scenario to illustrate secure, stateless authentication and fine‑grained permission control.

Apache ShiroAuthenticationAuthorization
0 likes · 13 min read
Mastering Apache Shiro: Core Concepts, Real‑World Usage, and JWT Microservice Integration
Java Architecture Stack
Java Architecture Stack
Oct 30, 2024 · Operations

Why ZGC Is Revolutionizing Java Memory Management for Low‑Latency Apps

This article explains ZGC’s ultra‑low pause times, massive heap support, colored pointers, concurrent compaction, and generational optimizations, then shows how these features benefit real‑time analytics, high‑performance servers, and online transaction systems, and provides step‑by‑step instructions for enabling and tuning ZGC in Java.

Garbage CollectorJavaPerformance Tuning
0 likes · 9 min read
Why ZGC Is Revolutionizing Java Memory Management for Low‑Latency Apps
Java Architecture Stack
Java Architecture Stack
Oct 22, 2024 · Backend Development

How to Prevent Browser Caching of JavaScript in Java Backend Apps

This article explains why stale JavaScript can break functionality, outlines the risks of caching such as outdated bugs, security flaws, and debugging difficulties, and provides practical Java‑side solutions—including versioned URLs, cache‑control headers, static‑resource policies, and ETag/Last‑Modified handling—to ensure browsers always load the latest scripts.

JavaJavaScriptSpring Boot
0 likes · 7 min read
How to Prevent Browser Caching of JavaScript in Java Backend Apps
Java Architecture Stack
Java Architecture Stack
Oct 18, 2024 · Big Data

How to Fix Spark OOM Errors: Practical Memory & Performance Tuning

This guide analyzes common Spark Out‑Of‑Memory scenarios—such as massive data volumes, data skew, and improper resource allocation—and provides step‑by‑step configurations, memory‑management tweaks, partitioning strategies, and shuffle optimizations to prevent OOM failures in production.

Memory TuningOOMPerformance optimization
0 likes · 8 min read
How to Fix Spark OOM Errors: Practical Memory & Performance Tuning