<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>XinbooBlog</title><description>专注.NET开发，热爱微软生态</description><link>https://xinboo.aiursoft.com/</link><pubDate>Sat, 22 Aug 2026 08:42:46 GMT</pubDate><copyright>© 2021 - 2026 Xinboo</copyright><generator>MoongladePure v1.0.0 (a8ee77)</generator><item><title>在 Admin.Core 中使用 Redis 实现接口限流</title><link>https://xinboo.aiursoft.com/post/2024/3/28/admin-core-redis-rate-limiting</link><description>Imagine a digital fortress where every request is meticulously counted, not in isolation, but as part of a grand, synchronized symphony across multiple servers. The premise of distributed rate limiting often sounds like a complex engineering hurdle, yet it can be elegantly solved by harnessing the power of Redis to create a unified memory space for traffic control. When an application scales horizontally, adding more instances usually fractures data consistency, but what if every node could peek into the same real-time ledger? This approach transforms the chaos of distributed systems into order, ensuring that no single user can overwhelm the infrastructure regardless of which server they land on. The mechanics are deceptively simple: a key is generated from the client’s identity and endpoint, incremented atomically in Redis, and checked against a threshold before the request ever touches the business logic. If the limit is breached, a crisp 429 status code halts the process, protecting...--AI Generated</description><author>anduin2017@foxmail.com</author><category>Redis</category><category>.NET</category><guid isPermaLink="false">4805e942-9531-499e-8b2e-a4abdd2156fa</guid><pubDate>Thu, 28 Mar 2024 08:16:48 GMT</pubDate></item><item><title>StackExchange.Redis 的断连坑</title><link>https://xinboo.aiursoft.com/post/2021/11/16/stackexchange-redis-disconnect-fix</link><description>Redis, the ubiquitous in-memory data store, promises lightning-fast performance and seamless integration for modern applications. Yet, beneath its efficient surface lies a labyrinth of connectivity pitfalls that can silently cripple your system. Consider the StackExchange.Redis client: a default configuration choice regarding abortConnect can turn a minor network hiccup into a permanent application deadlock, forcing unnecessary restarts and disrupting service availability. This is not merely a technical oversight but a fundamental misunderstanding of how connection states persist under pressure. What happens when the invisible hand of TCP retries dictates your application's fate? On Linux systems, kernel parameters like tcp_retries2 can enforce a agonizing fifteen-minute silence after a Redis node restart, leaving clients stranded in a state of limbo while infrastructure attempts to recover. This delay is not a bug but a feature of the underlying protocol stack, revealing how deeply ou...--AI Generated</description><author>anduin2017@foxmail.com</author><category>Redis</category><category>.NET</category><guid isPermaLink="false">a12a9bc1-9daa-4b95-b5e7-484f5ae65e5c</guid><pubDate>Tue, 16 Nov 2021 09:07:04 GMT</pubDate></item></channel></rss>