Architect's Guide
Author

Architect's Guide

Dedicated to sharing programmer-architect skills—Java backend, system, microservice, and distributed architectures—to help you become a senior architect.

741
Articles
0
Likes
5.2k
Views
0
Comments
Recent Articles

Latest from Architect's Guide

100 recent articles max
Architect's Guide
Architect's Guide
Sep 22, 2026 · Fundamentals

Try-Catch Inside vs Outside For Loops: Behavior, Performance & When to Use Each

This article explains the critical behavioral difference when placing try-catch inside versus outside a for loop: outside placement terminates the loop on exception, while inside allows continuation. It also analyzes performance implications, showing negligible overhead when no exceptions occur but increased memory consumption if many iterations throw exceptions, and details the JVM exception table mechanics that underlie this behavior.

Exception HandlingJavaMemory Management
0 likes · 6 min read
Try-Catch Inside vs Outside For Loops: Behavior, Performance & When to Use Each
Architect's Guide
Architect's Guide
Sep 19, 2026 · Backend Development

Preventing External API Exposure: 3 Microservice Patterns Compared

The article compares three approaches to restrict APIs to internal-only access in microservices: service isolation, gateway whitelist with Redis, and a gateway-plus-AOP solution that adds a header at the gateway and validates it via annotation-driven aspect, favoring the latter for performance and developer efficiency.

AOPAPI gatewayAnnotation
0 likes · 6 min read
Preventing External API Exposure: 3 Microservice Patterns Compared
Architect's Guide
Architect's Guide
Sep 17, 2026 · Fundamentals

How GeoHash Enables Efficient Nearby Passenger Search in Ride-Hailing Apps

This article explains the GeoHash algorithm, detailing how it converts latitude/longitude into binary strings via recursive bisection, interleaves bits, applies base32 encoding, and uses prefix matching to efficiently find nearby passengers in ride-hailing apps, while noting edge-case limitations.

AlgorithmGeoHashbase32 encoding
0 likes · 8 min read
How GeoHash Enables Efficient Nearby Passenger Search in Ride-Hailing Apps
Architect's Guide
Architect's Guide
Sep 16, 2026 · Backend Development

Implementing Cross-System Single Sign-On with CAS: A Practical Guide

This article explains how to implement Single Sign-On (SSO) using CAS to unify authentication across multiple company systems, covering session mechanics, cluster session sharing with Redis, and providing complete Spring Boot code examples for both the CAS server and client applications.

CASRedisSpring Boot
0 likes · 16 min read
Implementing Cross-System Single Sign-On with CAS: A Practical Guide