IT Niuke
Author

IT Niuke

Focused on IT technology sharing, original and innovative content. IT Niuke, we grow together.

37
Articles
0
Likes
21
Views
0
Comments
Recent Articles

Latest from IT Niuke

37 recent articles
IT Niuke
IT Niuke
Apr 13, 2024 · Backend Development

Designing a Rule Engine for Multi‑Condition Decision Scenarios

The article explains why long chains of if‑else are hard to maintain, proposes a rule‑engine architecture with abstract BaseRule, concrete rule classes, and a RuleService that supports AND/OR short‑circuit execution, and evaluates its advantages and drawbacks with Java code examples.

AND/ORJavaRule Engine
0 likes · 9 min read
Designing a Rule Engine for Multi‑Condition Decision Scenarios
IT Niuke
IT Niuke
Apr 13, 2024 · Databases

JOIN vs IN in MySQL: Performance Comparison and Best Practices

This article compares MySQL's JOIN and IN constructs, showing that IN can be slightly faster for simple filters while JOIN offers greater flexibility for complex, multi‑table queries, and it outlines when to use each approach along with additional optimization tips such as indexing and engine selection.

INJOINMySQL
0 likes · 7 min read
JOIN vs IN in MySQL: Performance Comparison and Best Practices
IT Niuke
IT Niuke
Mar 10, 2024 · Cloud Native

How to Use Spring Cloud Sleuth for Distributed Log Tracing

This tutorial walks through setting up Spring Cloud Sleuth with Spring Boot 2.6.8 and Spring Cloud 2021.0.3 to capture and visualize distributed trace data via Zipkin, covering project creation, Maven dependencies, YAML configuration, OpenFeign integration, exception handling, RabbitMQ transport, and logback pattern adjustments.

Distributed TracingLogbackSpring Boot
0 likes · 22 min read
How to Use Spring Cloud Sleuth for Distributed Log Tracing
IT Niuke
IT Niuke
Feb 3, 2024 · Backend Development

A Powerful Distributed Lock Framework: Introducing Lock4j

This guide introduces Lock4j, a versatile distributed‑lock component for Java that works with Spring AOP and supports RedisTemplate, Redisson, and Zookeeper, and walks through its features, configuration, annotation attributes, basic usage, and advanced customization options.

Distributed LockJavaLock4j
0 likes · 7 min read
A Powerful Distributed Lock Framework: Introducing Lock4j
IT Niuke
IT Niuke
Feb 3, 2024 · R&D Management

Why Every Engineer Must Master Documentation to Unlock Explosive Collaboration

The article argues that systematic documentation is a strategic asset for startups, detailing how it eliminates guesswork, accelerates onboarding, reduces unnecessary meetings, and fosters a culture of shared knowledge, while also acknowledging its limits and the resistance it may face.

collaborationdocumentationengineering process
0 likes · 17 min read
Why Every Engineer Must Master Documentation to Unlock Explosive Collaboration
IT Niuke
IT Niuke
Jan 21, 2024 · Cloud Native

Implementing Gray Release with Spring Cloud Gateway

The article explains how to safely upgrade services by using gray (canary) release strategies with Spring Cloud Gateway, compares rolling and blue‑green deployments, and demonstrates weight‑based routing, hint‑based routing, and custom ServiceInstanceListSupplier implementations to control traffic between old and new service versions.

Canary Deploymentgray-releaseloadbalancer
0 likes · 17 min read
Implementing Gray Release with Spring Cloud Gateway
IT Niuke
IT Niuke
Jan 21, 2024 · Databases

Implementing Pagination and Multi‑Condition Fuzzy Search in Redis

The article explains how to use Redis Sorted Sets for efficient pagination, employ Hashes with HSCAN for multi‑condition fuzzy matching, combine both techniques into a unified solution, and apply expiration‑based optimizations to keep the cache lightweight and responsive.

Cache OptimizationFuzzy SearchHash
0 likes · 10 min read
Implementing Pagination and Multi‑Condition Fuzzy Search in Redis
IT Niuke
IT Niuke
Jan 8, 2024 · Backend Development

Implementing Idempotent APIs in SpringBoot

This article explains the concept of idempotency, why it matters for HTTP APIs, the impact on system design, RESTful method characteristics, and compares four practical implementation strategies—including database primary keys, optimistic locking, Redis token, and downstream sequence numbers—followed by a complete SpringBoot example with code and tests.

JavaRedisbackend
0 likes · 26 min read
Implementing Idempotent APIs in SpringBoot
IT Niuke
IT Niuke
Jan 8, 2024 · Backend Development

How to Gracefully Switch Data Sources Dynamically in a SpringBoot Project

This article walks through implementing dynamic data‑source switching in SpringBoot by combining ThreadLocal with AbstractRoutingDataSource, covering manual code, configuration, annotation‑driven AOP, and runtime addition of new data sources, complete with test cases and sample code.

AOPAnnotationMyBatis-Plus
0 likes · 17 min read
How to Gracefully Switch Data Sources Dynamically in a SpringBoot Project