HBHenry Browninblog.hbrown.dev·Jul 22 · 6 min readFan-in with Kotlin Coroutines and FlowSometimes you need to start several pieces of work at the same time and handle each result as soon as it is available. The fan-in pattern is a good fit for this: many concurrent producers send their r00
HBHenry Browninblog.hbrown.dev·Jul 9 · 6 min readAccessing Apple's on-device AI from Kotlin using apfelIf you own a modern Mac with an Apple Silicon chip and Apple Intelligence enabled, then you already have access to a local foundation model. There is no separate model to download, no API key to creat00
HBHenry Browninblog.hbrown.dev·May 22 · 9 min readHow many threads can you create with Spring Boot and Java virtual threads?In looking at enabling virtual threads for a Spring Boot application, I began to wonder how many virtual threads I could spawn compared to platform threads. I knew the answer would be "many more", but00
HBHenry Browninblog.hbrown.dev·May 1 · 6 min readConfigure a background coroutine for your Spring Boot applicationSometimes you need to run work in the background of a Spring Boot application. This may be work that should not block the HTTP request that triggered it, or work that is started by a scheduled process00