Architect's Tech Stack
Author

Architect's Tech Stack

Java backend, microservices, distributed systems, containerized programming, and more.

622
Articles
0
Likes
2.5k
Views
0
Comments
Recent Articles

Latest from Architect's Tech Stack

100 recent articles max
Architect's Tech Stack
Architect's Tech Stack
Sep 25, 2025 · Backend Development

Auto‑Inject UserId and OrderId into Logs with Spring AOP and MDC

This article explains how to eliminate manual logging of user and order identifiers in Java e‑commerce services by using Log4j2 placeholders, ThreadLocal, MDC, a custom @UserLog annotation, and Spring AOP to automatically enrich log messages with these contextual fields.

AnnotationJava loggingLog4j2
0 likes · 9 min read
Auto‑Inject UserId and OrderId into Logs with Spring AOP and MDC
Architect's Tech Stack
Architect's Tech Stack
Sep 23, 2025 · Backend Development

Master SpringDoc: Minimal OpenAPI 3 Setup for Spring Boot

This tutorial walks through integrating SpringDoc into a Spring Boot project, covering why it replaces SpringFox, how to configure it with minimal settings, add API annotations, set up grouped documentation, and handle static resources and Spring Security for full Swagger UI access.

API documentationJavaOpenAPI
0 likes · 15 min read
Master SpringDoc: Minimal OpenAPI 3 Setup for Spring Boot
Architect's Tech Stack
Architect's Tech Stack
Sep 22, 2025 · Backend Development

How to Safely Split Distributed Transactions in Java: A Practical Guide

This article explains how to handle distributed consistency when a business operation writes to MySQL and calls external systems, using a financial reimbursement example to illustrate risks, analyzes the root cause, and presents a step‑by‑step solution that splits the large transaction into small, retryable units with code snippets and Spring optimization.

MySQLbpmdistributed transaction
0 likes · 8 min read
How to Safely Split Distributed Transactions in Java: A Practical Guide
Architect's Tech Stack
Architect's Tech Stack
Sep 22, 2025 · Databases

How to Safely Add a Column to a Billion-Row Order Table Without Downtime

When a core order table with tens of millions of rows needs a new business field, directly running ALTER TABLE can lock the table and disrupt services, so this article explores master‑slave switching, online DDL tools, extension tables, JSON fields, and clever reuse of existing redundant columns to achieve the change safely and efficiently.

JSON fieldLarge TablesMySQL
0 likes · 9 min read
How to Safely Add a Column to a Billion-Row Order Table Without Downtime
Architect's Tech Stack
Architect's Tech Stack
Sep 20, 2025 · Backend Development

How to Dynamically Refresh Spring Boot Configurations with @RefreshScope

This article explains why dynamic configuration refresh is needed in Spring Boot, describes the core principles of @RefreshScope, provides step‑by‑step implementation code, and shares best practices and troubleshooting tips for zero‑downtime configuration updates in production environments.

@RefreshScopeSpring BootSpring Cloud
0 likes · 10 min read
How to Dynamically Refresh Spring Boot Configurations with @RefreshScope
Architect's Tech Stack
Architect's Tech Stack
Sep 18, 2025 · Backend Development

Master Java Spring Utilities: Assertions, Collections, IO & Reflection

This article compiles essential Spring and Java utility methods—including assertion checks, object and collection handling, file I/O, resource management, and reflection/AOP tools—providing concise code examples and usage guidelines to help developers avoid redundant code and write cleaner, more reliable applications.

CollectionsIOJava
0 likes · 13 min read
Master Java Spring Utilities: Assertions, Collections, IO & Reflection