Pan Zhi's Tech Notes
Author

Pan Zhi's Tech Notes

Sharing frontline internet R&D technology, dedicated to premium original content.

35
Articles
0
Likes
49
Views
0
Comments
Recent Articles

Latest from Pan Zhi's Tech Notes

35 recent articles
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 14, 2025 · Cloud Native

Integrating Hystrix Dashboard with Spring Cloud for Visual Service Circuit Breaker Monitoring – A Hands‑On Guide

This article walks through the background of Hystrix, shows how to add Hystrix Dashboard and Turbine dependencies to a Spring Cloud consumer project, configure the necessary annotations and properties, test the services, and use the dashboard and Turbine streams to visualize circuit‑breaker metrics for both single instances and clusters.

HystrixHystrix DashboardTurbine
0 likes · 12 min read
Integrating Hystrix Dashboard with Spring Cloud for Visual Service Circuit Breaker Monitoring – A Hands‑On Guide
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 12, 2025 · Cloud Native

Microservices Practice: Hystrix Circuit Breaking and Fallback – Step-by-Step Guide

This article explains the role of Hystrix as a circuit‑breaker in Spring Cloud microservices, describes why service failures can cascade, and provides a detailed, hands‑on implementation—including Maven dependencies, annotations, fallback methods, configuration of circuit thresholds, and integration with Ribbon and Feign – complete with code snippets and test steps.

FeignHystrixRibbon
0 likes · 11 min read
Microservices Practice: Hystrix Circuit Breaking and Fallback – Step-by-Step Guide
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 10, 2025 · Backend Development

How to Gracefully Shut Down a Spring Boot Application

This article explains why force‑killing a Spring Boot process is unsafe and walks through four practical ways—using Actuator, ApplicationContext.close(), PID‑based kill commands, and SpringApplication.exit()—to achieve a graceful shutdown while preserving in‑flight tasks and releasing resources.

ApplicationContextGraceful ShutdownJava
0 likes · 9 min read
How to Gracefully Shut Down a Spring Boot Application
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 7, 2025 · Backend Development

Spring Cloud Feign Deep Dive: Architecture, Usage, and Practical Demo

This article walks through the background of Spring Cloud's Feign client, explains its core concepts, shows step‑by‑step project setup with Eureka services, demonstrates remote calls and file upload extensions using Feign‑Form, and concludes with a functional microservice example.

FeignJavaeureka
0 likes · 10 min read
Spring Cloud Feign Deep Dive: Architecture, Usage, and Practical Demo
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 5, 2025 · Backend Development

Spring Cloud Ribbon: Hands‑On Guide to Client‑Side Load Balancing

This article walks through the background of Spring Cloud Ribbon, explains its client‑side load‑balancing role, provides step‑by‑step code to create multiple provider services and a consumer that uses Ribbon, and shows how to configure different balancing algorithms and retry mechanisms.

RibbonSpring Booteureka
0 likes · 12 min read
Spring Cloud Ribbon: Hands‑On Guide to Client‑Side Load Balancing
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 28, 2025 · Cloud Native

Spring Cloud Quick‑Start Guide: Getting Started with Microservices

This article introduces Spring Cloud's background, core components (including first‑ and second‑generation modules derived from Netflix OSS), versioning scheme, compatibility with Spring Boot, and practical advice for selecting matching releases to avoid runtime issues in microservice projects.

Netflix OSSSpring Bootcloud-native
0 likes · 12 min read
Spring Cloud Quick‑Start Guide: Getting Started with Microservices
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 25, 2025 · Backend Development

Build a Code Generator from Scratch: Boost Development Efficiency 10×

This article walks through creating a fully automated Spring Boot and MyBatis code generator using Freemarker templates, detailing each step from extracting table metadata to generating DAO, service, controller, and entity classes, and shows how a single-table CRUD can be produced in seconds.

Backend DevelopmentFreemarkerJava
0 likes · 25 min read
Build a Code Generator from Scratch: Boost Development Efficiency 10×
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 20, 2025 · Databases

Mastering Database Concurrency: Dirty Read, Non‑Repeatable Read, and Phantom Read

The article explains ACID properties, details how inadequate isolation levels cause dirty reads, non‑repeatable reads, and phantom reads, illustrates each with transaction scenarios and diagrams, and shows how MySQL’s lock types and isolation settings prevent these anomalies, noting the trade‑off between isolation and concurrency.

LockingMySQLTransaction Isolation
0 likes · 9 min read
Mastering Database Concurrency: Dirty Read, Non‑Repeatable Read, and Phantom Read
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 14, 2025 · Backend Development

How to Generate PDF Files in Java: A Complete Step‑by‑Step Tutorial

This guide walks through the need for PDF generation in business scenarios, introduces the iText library (both iText5 and iText7), shows how to add Maven dependencies, provides a minimal “Hello World” PDF example, then details converting HTML (with CSS, images, and Freemarker variables) into PDF, and discusses when custom adaptation is required.

FreemarkerHTML to PDFJava
0 likes · 13 min read
How to Generate PDF Files in Java: A Complete Step‑by‑Step Tutorial