Zum Hauptinhalt springen
🪟 Windows TippsHow to install and set up DBeaver on Windows 11(18.09.2026 um 02:31 Uhr)
🪟 Windows TippsHow to install and set up DBeaver on Windows 11(18.09.2026 um 02:31 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Bulkhead vs Rate limiting.

Rate Limiter (Time-based): A client can make 100 requests in a minute. Assume you have a fleet of automated clients or “boats” doing ping tests. If we don’t set a limit, they can spam the system with infinite requests and absolutely kill the servers. Rate limiting throttles them based on a clock.

Bulkhead (Concurrency-based): Bulkhead counts the number of active, in-flight calls made to a downstream service. It cares about how many calls are currently processing and waiting for a response. Assume a developer accidentally creates an infinite loop that calls a downstream service across multiple threads simultaneously. Without a bulkhead, your resources get completely exhausted, and your service is gone.

Basic Settings for Bulkhead:

Resilience4j:

     Bulkhead:

    fastMethodBulkhead:

   type: SEMAPHORE or Thread

   maxConcurrentCalls: 10   // number of calls can make

    maxWaitDuration: 500ms   // max time it can wait before failing.

   queueCapacity: 10        // number of threads can wait in the queue.

        keepAliveDuration 10s.       //They can wait in the waiting queue.

fastMethodBulkhead:
type: THREADPOOL
max-concurrent-calls: 20
max-wait-duration: 200ms
queueCapacity: 10
keepAliveDuration 10s

@Bulkhead(name = “fastMethodBulkhead”, type = Bulkhead.Type.SEMAPHORE)

public String getQuickReview(String hotelId) {

return quickClient.getReviews(hotelId);

}

// Long-running method - fewer concurrent threads

@Bulkhead(name = “longMethodBulkhead”, type = Bulkhead.Type.THREADPOOL)

public String getFullReview(String hotelId) {

return slowClient.getDetailedReviews(hotelId);

}

We can override the bulkhead at method level using the service name, all methods need not to follow the same timings.

When bulkhead rejects the request, it is fail-fast and throws a BulkheadFullException.

Semaphore Vs ThreadPool

  • Semaphore is counter based, based on the count it will allow concurrent threads. use the caller/main thread to update the counter. faster compare to thread pool.
  • Thread Pool use a separate thread to tract the count and executed asynchronously
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Bulkhead vs Rate limiting.

Thematisch verwandte Begriffe: Bulkhead, Rate, limiting · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61591 | djust provides Phoenix LiveView-style reactive server-side rendering for…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
News ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

↗ Original-Quelle