java1234
Author

java1234

Former senior programmer at a Fortune Global 500 company, dedicated to sharing Java expertise. Visit Feng's site: Java Knowledge Sharing, www.java1234.com

65
Articles
0
Likes
1
Views
0
Comments
Recent Articles

Latest from java1234

65 recent articles
java1234
java1234
Apr 24, 2026 · Artificial Intelligence

Choosing Between Spring AI 2.0 and LangChain4j for Java AI Development

This article compares Spring AI 2.0 and LangChain4j, examining their positioning, version alignment, architecture, programming model, RAG support, observability, learning curve, and ecosystem integration to help Java teams decide which library best fits their AI project constraints.

AI librariesJavaLLM integration
0 likes · 13 min read
Choosing Between Spring AI 2.0 and LangChain4j for Java AI Development
java1234
java1234
Apr 22, 2026 · Artificial Intelligence

Getting Started with LangChain4j: Building Java AI Agents with a Mature LLM Framework

LangChain4j fills the long‑standing gap for Java developers by offering a Java‑native, enterprise‑grade LLM framework that abstracts model calls, prompts, memory, tools, RAG, streaming and structured output, enabling quick setup, clean AI Service definitions, and seamless integration into Spring Boot or Quarkus applications.

AI ServicesChatMemoryJava
0 likes · 24 min read
Getting Started with LangChain4j: Building Java AI Agents with a Mature LLM Framework
java1234
java1234
Apr 18, 2026 · Backend Development

Beyond Simple Caching: 8 Essential Redis Use Cases for Java Backend Engineers

This guide walks Java backend developers through Redis’s eight core scenarios—caching, distributed locks, rate limiting, session sharing, leaderboards, counters, message and delay queues, bitmap statistics, and geolocation—providing complete code, diagrams, and production‑grade best practices.

BitmapCacheDistributed Lock
0 likes · 21 min read
Beyond Simple Caching: 8 Essential Redis Use Cases for Java Backend Engineers
java1234
java1234
Apr 16, 2026 · Backend Development

Why Java Virtual Threads? Deep Dive into Loom’s Principles and Production Pitfalls

The article explains why traditional platform threads are costly, defines Java virtual threads as lightweight JVM‑managed threads that unmount on blocking, compares their performance and limits to platform threads, outlines suitable and unsuitable use cases, provides starter code and best‑practice patterns, and offers a detailed production‑ready checklist to avoid common pitfalls such as pinning, ThreadLocal misuse, and blocking I/O.

JavaPerformancePinning
0 likes · 16 min read
Why Java Virtual Threads? Deep Dive into Loom’s Principles and Production Pitfalls
java1234
java1234
Apr 7, 2026 · Backend Development

What’s Under the Hood of Spring AOP? A Deep Dive into Its Core Mechanisms

Spring AOP enables cross‑cutting concerns like logging and transactions without altering business code by leveraging dynamic proxies and method interceptor chains, and this article explains its core concepts, proxy selection (JDK vs CGLIB), call‑chain flow, key source classes, and provides a complete Java example.

Dynamic ProxyJavaaspectj
0 likes · 8 min read
What’s Under the Hood of Spring AOP? A Deep Dive into Its Core Mechanisms
java1234
java1234
Apr 7, 2026 · Databases

Why Choose PostgreSQL Over MySQL? A Technical Comparison of Their Strengths

The article analyzes why many Chinese cloud providers and enterprises prefer PostgreSQL to MySQL, detailing PostgreSQL's richer data types, native sequence support, extensible ecosystem, advanced monitoring, robust replication, open licensing, and MVCC implementation, while acknowledging MySQL's remaining advantages in specific scenarios.

Database comparisonExtensionsLicensing
0 likes · 10 min read
Why Choose PostgreSQL Over MySQL? A Technical Comparison of Their Strengths
java1234
java1234
Apr 5, 2026 · Backend Development

Why Spring and Spring MVC Use Parent‑Child Containers

The article explains how Spring’s parent‑child container pattern separates core beans like DataSource and TransactionManager from business‑level beans, improving modularity, configuration reuse, decoupling, and flexible bean management, and shows concrete XML and Spring Boot examples for defining and loading these containers.

Bean ConfigurationIoCParent-Child Container
0 likes · 7 min read
Why Spring and Spring MVC Use Parent‑Child Containers
java1234
java1234
Apr 5, 2026 · Databases

Beyond Caching: 16 Powerful Redis Use Cases

This article explores sixteen practical Redis applications—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tags, filtering, follow relationships, and ranking—demonstrating how Redis can serve as a versatile data store beyond simple caching.

BitmapsCachingData Structures
0 likes · 9 min read
Beyond Caching: 16 Powerful Redis Use Cases
java1234
java1234
Apr 2, 2026 · Cloud Native

How a Simple Analogy Clarified Docker and Kubernetes Core Concepts

An image is a static snapshot of an OS, runtime and code; a container runs that snapshot, while Dockerfile and docker‑compose define how to build and orchestrate images. Pods group containers for shared resources, and Kubernetes schedules, scales, heals, networks and stores them, enabling true “run anywhere” deployment.

DockerDocker ComposeDockerfile
0 likes · 6 min read
How a Simple Analogy Clarified Docker and Kubernetes Core Concepts
java1234
java1234
Mar 31, 2026 · Backend Development

Why Polling Is Outdated: Lightweight Real‑Time Push with SSE

The article compares polling, WebSocket, and Server‑Sent Events (SSE), explains why polling is inefficient, outlines the advantages and browser compatibility of SSE versus WebSocket, and provides step‑by‑step Node.js and HTML demos for implementing a real‑time push solution.

EventSourceExpressNode.js
0 likes · 12 min read
Why Polling Is Outdated: Lightweight Real‑Time Push with SSE