Close Menu
Şevket Ayaksız
    What's Hot

    Why the Windows 11 File Copy Timer Still Gets It Wrong

    December 2, 2026

    Oracle Health Chairman David Feinberg Steps Down, Will Stay On as Adviser

    December 2, 2026

    Spring Team Unveils Stream-Source, a Virtual-Thread Friendly Streaming Library for Java

    December 2, 2026
    • software
    • Gadgets
    Şevket AyaksızŞevket Ayaksız
    • Home
    • Technology

      Apple: iPhone 17 and Older Models Hit With Unexpected $100 Price Increase

      September 10, 2026

      Apple Watch Intelligence Could Be a Major Accessibility Breakthrough

      September 10, 2026

      Apple May Skip the Base iPhone 18 This Year

      September 10, 2026

      FCC changes robot vacuum rules, potentially affecting future models

      August 8, 2026

      Samsung’s new 2TB 990 SSD drops to its lowest price yet

      August 6, 2026
    • Adobe

      Anil Chakravarthy Takes Over as Adobe CEO, Narayen Becomes Executive Chair

      December 2, 2026

      Adobe Sets December 9 Date for Q4 and Fiscal 2026 Results

      December 1, 2026

      Adobe Forecasts Record $15.1 Billion Cyber Monday as AI Shopping Traffic Climbs

      November 30, 2026

      Adobe: US Black Friday Online Spending Hit a Record $13.1 Billion

      November 29, 2026

      Adobe Adds a Dedicated Long Exposure Mode to Its Project Indigo Camera App

      November 28, 2026
    • Microsoft

      Microsoft Says November Outlook Outage Will Dent Microsoft 365 Cloud Growth

      December 2, 2026

      Microsoft 365 Copilot No Longer Requires a Base License for New Buyers

      December 1, 2026

      Microsoft Drops the WSUS Server Role From Windows Server 2028

      November 30, 2026

      Nadella Says Microsoft’s MAI Models Can Trail Rivals if They Cost Less

      November 29, 2026

      Satya Nadella Says Microsoft Slowed New-Grad Hiring While It Rebuilds Around AI

      November 28, 2026
    • java

      Spring Team Unveils Stream-Source, a Virtual-Thread Friendly Streaming Library for Java

      December 2, 2026

      Spring AI Replaces ChatMemory With New Session API

      December 1, 2026

      JDK 28 Heads Into Rampdown Phase One With Value Objects and Structured Concurrency

      November 30, 2026

      Quarkus 4.0 Arrives With Java 21 Baseline, Vert.x 5 and Jackson 3

      November 29, 2026

      Spring Cloud 2026.0.0 Paddington Lands on Spring Boot 4.2 With a Batch of Security Fixes

      November 28, 2026
    • Oracle

      Oracle Health Chairman David Feinberg Steps Down, Will Stay On as Adviser

      December 2, 2026

      Oracle Job Ads Shift Toward Cloud Infrastructure After 21,000 Net Cuts

      December 1, 2026

      Oracle Closes Its Fiscal Second Quarter Under a Cloud of Debt Worries

      November 30, 2026

      VA Admits Oracle EHR Fell Short on Accessibility as Ellison Is Subpoenaed

      November 29, 2026

      Oracle Co-CEO Mike Sicilia Urges Tech Firms to Hire Locally to Win Support for Data Centres

      November 28, 2026
    Şevket Ayaksız
    Anasayfa » Spring Team Unveils Stream-Source, a Virtual-Thread Friendly Streaming Library for Java
    java

    Spring Team Unveils Stream-Source, a Virtual-Thread Friendly Streaming Library for Java

    By sevketayaksizDecember 2, 2026Updated:December 2, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Spring Team Unveils Stream-Source, a Virtual-Thread Friendly Streaming Library for Java
    Share
    Facebook Twitter LinkedIn Pinterest Email

    The Spring team has introduced stream-source, a new experimental Java library designed to make streaming data work naturally with virtual threads. Announced on the Spring blog on 1 December 2026 by Spring Framework engineer Rossen Stoyanchev, the project aims to fill a gap that has opened up as more Java developers adopt Project Loom instead of reactive programming.

    Why a new library

    Virtual threads, introduced through JEP 444, let developers write simple blocking code that still scales. According to the announcement, however, there is still no simple, standard model for consuming streaming sources on that stack. Examples include server-sent events, token-by-token output from large language models and responses from Model Context Protocol servers. The post argues that push-style callback handlers are easy to get wrong: if a handler blocks, it stalls the producer, and workarounds that hand work to dedicated threads add complexity.

    A pull-based model

    Stream-source takes the opposite approach. Instead of reacting to callbacks, consumers pull items in a loop, typically inside a try-with-resources block so that resources are released automatically when the loop ends. The central abstraction is called Source, and producers usually extend a base class to implement it. Sources can be wrapped with decorators to add behaviour.

    For cases where producer and consumer run on different threads, the library offers an Exchange type with a sink side and a source side, connected by a blocking queue. That queue provides natural backpressure when the two sides work at different speeds. A SourceTask helper can run a producer in the background while the consumer reads, and adapters connect stream-source to existing Reactive Streams code, including the JDK HTTP client.

    Small and independent

    Although it was built by the Spring team, the library does not depend on Spring. Its only dependencies are JSpecify and SLF4J, and the blog describes it as a low-level building block comparable in scope to Micrometer or Reactor. It requires Java 17 as a baseline and uses virtual threads by default on Java 21 and later. The current release is version 0.8.0, and the code lives in the spring-projects-experimental organisation on GitHub.

    Roadmap

    According to the announcement, a milestone phase will start in early 2027, with a 1.0 general availability release planned for May 2027. Spring AI 3.0 and the MCP Java SDK both intend to build their streaming APIs on stream-source, with their own GA releases also aimed at May 2027. Spring Framework 7.2, planned for November 2027, is expected to add support, and experimental server-sent events support for RestClient is already available in a separate extensions repository. A follow-up Spring AI post was scheduled for 3 December.

    A stopgap for the JDK

    The post is candid that stream-source exists partly because Java lacks a standard channel abstraction. If the JDK eventually adopts a channels proposal, the library will adapt to it. Until then, the Spring team is inviting developers to try the project and give feedback through its issue trackers.

    Sources:

    • Spring Blog
    • Spring Blog index
    Views: 3
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    sevketayaksiz
    • Website

    Related Posts

    Spring AI Replaces ChatMemory With New Session API

    December 1, 2026

    JDK 28 Heads Into Rampdown Phase One With Value Objects and Structured Concurrency

    November 30, 2026

    Quarkus 4.0 Arrives With Java 21 Baseline, Vert.x 5 and Jackson 3

    November 29, 2026
    Add A Comment

    Comments are closed.

    Şevket Ayaksız
    Instagram
    • Home
    • Adobe
    • microsoft
    • java
    • Oracle
    • Contact
    © 2026 Theme Designed by Şevket Ayaksız.

    Type above and press Enter to search. Press Esc to cancel.