RSSAmplifier

Blog

Travis Haagen's Blog

Travis Haagen's blog for Software Engineers

travishaagen.github.ioRSS feed ↗2 posts

Latest posts

Backpressure in Client-Server Applications

Backpressure, in client-server applications, is accomplished when a client adjusts its transmission of messages in response to a server that has slowed its processing of messages. Stuck in Traffic Ideally, when a networked client connects to a server, messages are sent at maximum speed and responses are likewise returned quickly. To handle more client traffic we scale horizontally by adding…

Static Exceptions for Flow Control

Static Exceptions, when used for flow control, can dramatically reduce garbage generation and latency in Java and Kotlin applications. TL;DR To create high performance exceptions for flow control in the JVM, simply extend the following StaticException class. Then store the Exception instance in a static final field and throw it as needed. They're fast, because the call stack doesn't need to be…