<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Flow-Control on Kevin wang's blog</title><link>https://kevinwang930.github.io/tags/flow-control/</link><description>Recent content in Flow-Control on Kevin wang's blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 24 Aug 2026 22:00:00 +0200</lastBuildDate><atom:link href="https://kevinwang930.github.io/tags/flow-control/index.xml" rel="self" type="application/rss+xml"/><item><title>Sentinel: flow control internals</title><link>https://kevinwang930.github.io/post/java/spring-cloud/sentinel/</link><pubDate>Mon, 24 Aug 2026 22:00:00 +0200</pubDate><guid>https://kevinwang930.github.io/post/java/spring-cloud/sentinel/</guid><description>&lt;p&gt;&lt;strong&gt;Sentinel&lt;/strong&gt; is Alibaba&amp;rsquo;s library for flow control, concurrency limiting, circuit breaking, and system protection. An application protects a named &lt;strong&gt;resource&lt;/strong&gt; by entering it through &lt;code&gt;SphU.entry&lt;/code&gt;. A processor slot chain records statistics for that resource and applies the rules loaded at runtime.&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="1-overview"&gt;1. Overview&lt;/h2&gt;&#10;&lt;p&gt;A resource is a string chosen by the caller: an HTTP path, a service method, or any other name. &lt;code&gt;SphU.entry(resourceName)&lt;/code&gt; opens the resource and &lt;code&gt;entry.exit()&lt;/code&gt; closes it. Between those two calls, Sentinel runs a &lt;code&gt;ProcessorSlotChain&lt;/code&gt; built once per resource.&lt;/p&gt;</description></item></channel></rss>