Pan Zhi's Tech Notes
Author

Pan Zhi's Tech Notes

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

39
Articles
0
Likes
91
Views
0
Comments
Recent Articles

Latest from Pan Zhi's Tech Notes

39 recent articles
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Apr 11, 2025 · Cloud Native

How to Use Spring Cloud Bus with RabbitMQ for Automatic Config Refresh

This article explains how to integrate Spring Cloud Bus with RabbitMQ (or Kafka) to automatically propagate configuration changes across multiple microservice instances, replacing manual /refresh calls with a message‑bus driven refresh workflow, and provides step‑by‑step implementation details.

Config RefreshSpring CloudSpring Cloud Bus
0 likes · 10 min read
How to Use Spring Cloud Bus with RabbitMQ for Automatic Config Refresh
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Apr 10, 2025 · Backend Development

Hands‑On Guide: Build Your Own Code Generator (Can You Keep Up?)

This article walks through why repetitive CRUD code wastes development time, reviews existing generators like MyBatis‑Generator and MyBatis‑Plus, and then demonstrates step‑by‑step how to create a custom Java code generator using Freemarker, Maven, and SpringBoot, complete with template and demo code.

JavaMyBatisSpringBoot
0 likes · 11 min read
Hands‑On Guide: Build Your Own Code Generator (Can You Keep Up?)
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 19, 2025 · Backend Development

How Spring Cloud Config Works: Build and Use a Service Configuration Center

This article explains why a centralized configuration center is needed for many microservices, introduces Spring Cloud Config, and provides a step‑by‑step tutorial that creates a Git‑backed config server, a client application, and demonstrates dynamic refresh using Spring Boot Actuator.

ActuatorConfiguration CenterSpring Cloud Config
0 likes · 12 min read
How Spring Cloud Config Works: Build and Use a Service Configuration Center
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 DashboardSpring Cloud
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.

ActuatorApplicationContextJava
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.

EurekaFeignJava
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.

EurekaLoad BalancingRibbon
0 likes · 12 min read
Spring Cloud Ribbon: Hands‑On Guide to Client‑Side Load Balancing