A practical formula for calculating Kafka TCP connection counts in Spring Boot, covering producers, consumers, AdminClient, and how to choose the right Confluent Cloud plan.
Posts for: #Spring Boot
Java 25 on Kubernetes:默认配置正在拖垮你的性能
探讨 Java 25 在 Kubernetes 上的默认配置问题。通过实验数据说明内存比例设置与 CPU 资源分配对应用稳定性的影响,并分享关于 RAMPercentage 等参数的配置经验。
Spring Boot 3 开启 HTTP/2:h2 和 h2c 到底该选哪个?
想给 Spring Boot API 加速?来聊聊 HTTP/2 的两种模式:带加密的 h2 和“裸奔”的 h2c,看看在微服务里怎么配置和避坑。
用 Java 25 + Spring AI 构建新加坡小学数学 AI 辅导 App — Phase 1 实战记录
Phase 1 实战:使用 Java 25 Structured Concurrency + Spring AI 2.0 + Ollama 搭建多 Agent 数学解题管线,踩坑 Spring Boot 4.0 + Gradle 9 兼容性。
一次 make coverage 卡死排查:Reactive Redis 与 Lettuce SharedLock 的连锁问题
本文复盘一次集成测试在 make coverage 阶段卡死的问题:先是连接池超时,再是 Lettuce SharedLock 自旋。重点分享排查路径、错误假设、最终根因与可复用修复策略。
How a Performance Optimization Caused Cascading Redis Timeouts in Spring WebFlux
A seemingly harmless removal of publishOn(Schedulers.boundedElastic()) led to cascading Redis timeouts in production. This post explains how Spring’s @Cacheable blocks the Netty event loop when used with RedisCacheManager, and why BlockHound failed to catch it.
Spring AI(4)- 调整返回的Response - 今日运势
Spring AI提供了一些功能来影响LLM返回的响应。本文将介绍如何通过设置生成选项、结构化输出转换器和流式响应来优化AI生成内容的质量和用户体验。
Spring AI(3)- Prompt Template - 今日运势
在使用AI生成内容时,Prompt模板的设计至关重要。Spring AI提供了Prompt Template的功能,帮助我们更好地组织和管理Prompt模板,从而提升生成内容的质量和一致性。搞个AI算命先生,来看看今天的运势如何吧!
Spring AI(2)- Model Evaluation
我们使用AI生成的内容需要经过评估,以确保其质量和准确性。Spring AI提供了统一的接口,可以使用一个模型对另一个模型的回复进行评估。但当前的v1.1.0版本中存在一些问题,并不是太好用。
Spring AI(1)- Chat Client With OpenAI and Gemini
本文介绍如何搭建一个基于Spring AI的项目,包括环境配置和基本使用示例。