r/java • • Oct 08 '20

[PSA]/r/java is not for programming help, learning questions, or installing Java questions

324 Upvotes

/r/java is not for programming help or learning Java

  • Programming related questions do not belong here. They belong in /r/javahelp.
  • Learning related questions belong in /r/learnjava

Such posts will be removed.

To the community willing to help:

Instead of immediately jumping in and helping, please direct the poster to the appropriate subreddit and report the post.


r/java • • 3h ago

JDK 28 Rampdown Begins! Features frozen!

Thumbnail openjdk.org
65 Upvotes

r/java • • 7h ago

Helidon on a 512 MiB VM with PostgreSQL: comparison with Spring Boot, Quarkus, Micronaut and Jex

Post image
17 Upvotes

I've added Helidon to my Java framework benchmarking project to see how it performs in a resource-constrained environment.

Frameworks tested:

  • Spring Boot 4.1.1 + Spring JDBC 7.0.9
  • Quarkus 3.40.1 + Jdbi 3.55.0 (via CoilBase 0.1.0-preview5)
  • Micronaut 5.2.11 + Data JDBC 5.2.0
  • Avaje Jex 3.6 + Jdbi 3.55.0 (via CoilBase 0.1.0-preview5)
  • Helidon 27.0.2 + Data JDBC 27.0.2

CoilBase is a small framework I'm developing. It's a thin abstraction over Jdbi with optional Jex integration that I use to simplify porting applications between Java frameworks without rewriting the persistence layer. For Helidon, I used its own Data JDBC implementation instead, as it provides comparable data access capabilities to Spring JDBC.

Benchmark setup:

  • 1 vCPU, 512 MiB RAM, no swap
  • Debian 13, OpenJDK 27 (HotSpot)
  • PostgreSQL 18.7 on the same VM
  • Sustained 100 RPS
  • Same application functionality, JVM settings and four-connection database pool

Some interesting observations from two benchmark rounds:

  • Helidon had the lowest p99 latency in both rounds (8.35-8.48 ms).
  • Peak application RSS was around 168 MiB, second-lowest behind Jex.
  • Application readiness took 5.04-5.29 seconds.
  • All five frameworks completed both runs without errors, timeouts or dropped requests.

Helidon doesn't seem to get as much attention as Quarkus or Micronaut in discussions about lightweight Java frameworks, but these results are quite interesting.

This is a fixed-load comparison, not a maximum throughput benchmark.

Detailed experiment and charts: https://pvrlabs.xyz/java-performance/experiments/helidon-27-512mib.html

Source code and benchmark methodology: https://github.com/PVRLabs/framework-benchmarks/tree/experiment-helidon/framework-benchmarks/evidence/helidon-comparison

I'm also exploring native rewrite targets to see how much further we can reduce resource usage compared to Java on HotSpot. Currently experimenting with Go, using the same application and benchmark methodology. Planning to publish the results next week.


r/java • • 10h ago

Post-Quantum Cryptography in Long-Term Support JDK Releases

Thumbnail blogs.oracle.com
29 Upvotes

r/java • • 23h ago

OmniPersistence 2.0 released!

Thumbnail github.com
20 Upvotes

r/java • • 1d ago

Datadog State of Java Report

Thumbnail infoq.com
37 Upvotes

r/java • • 10h ago

Introducing Spring AI Agent 🌱

Thumbnail reddit.com
0 Upvotes

r/java • • 2d ago

Stream-Source: Virtual-Thread Friendly Data Streaming

49 Upvotes

The Spring team is pleased to a announce stream-source, a small library that provides streaming APIs in a Virtual-Thread friendly way. It provides facilities to publish and consume streams in an imperative way, builtin adapters to/from Reactive Streams, and has only 2 dependencies: JSpecify and SLF4J, so it is usable by the wider JVM ecosystem.

https://spring.io/blog/2026/12/01/stream-source-announcement


r/java • • 3d ago

JetBrains IDEs now use GPU rendering by default on Wayland

Thumbnail blog.jetbrains.com
201 Upvotes

r/java • • 3d ago

Quarkus 4.0, our new major release, is here!

Thumbnail quarkus.io
56 Upvotes

r/java • • 3d ago

Free browser-based Java 8/11/17/21/25 playground, based on CheerpJ

Thumbnail browsercode.io
25 Upvotes

Hi all, CTO of Leaning Technologies here.

JavaFiddle, our CheerpJ-based playground, has been a popular way to write and share Java snippets right in the browser. It has been used by thousands of people every month, especially students, for the past several years, even if it was quite limited and only supported Java 8.

To better serve the Java-learning community we have now retired JavaFiddle in favor of BrowserCode, our new in-browser IDE based on client-side execution. Try it here: https://browsercode.io/java

You can pick Java 8, 11, 17, 21 and 25 (in preview), so records, text blocks, `var` and switch expressions all work. There's a proper editor with a file tree and search, and 12 examples, including Swing apps running right in the tab. Everything compiles and runs in your browser, and nothing is stored on our servers. It's free to use with no account needed as always, and any existing JavaFiddle links still opens as expected.

BrowserCode itself is open source (https://github.com/leaningtech/browsercode), and beyond Java it also runs Node.js, npm and more, all client-side.

Happy to answer questions, and I'd love to hear what breaks!Hi all, CTO of Leaning Technologies here.

JavaFiddle, our CheerpJ-based playground, has been a popular way to write and share Java snippets right in the browser. It has been used by thousands of people every month, especially students, for the past several years, even if it was quite limited and only supported Java 8.

To better serve the Java-learning community we have now retired JavaFiddle in favor of BrowserCode, our new in-browser IDE based on client-side execution. Try it here: https://browsercode.io/java

You can pick Java 8, 11, 17, 21 and 25 (in preview), so records, text blocks, `var` and switch expressions all work. There's a proper editor with a file tree and search, and 12 examples, including Swing apps running right in the tab. Everything compiles and runs in your browser, and nothing is stored on our servers. It's free to use with no account needed as always, and any existing JavaFiddle links still open as expected.

BrowserCode itself is open source (https://github.com/leaningtech/browsercode), and beyond Java it also runs Node.js, npm and more, all client-side.

Happy to answer questions, and I'd love to hear what breaks!


r/java • • 3d ago

Scaling a PostgreSQL-backed transactional outbox to 66k records/sec with strict per-key ordering

Post image
46 Upvotes

I maintain Namastack Outbox, an open-source transactional outbox library for Spring Boot. It stores pending work in the same database transaction as the business write, then runs the handlers asynchronously.

With lightweight handlers, persistence became a cost worth isolating. In direct mode, every successful record in this test caused a JDBC delete and a transaction commit. In the 15-minute v2.0.0 runs, the median sampled database-wide commit rate went from about 48,900/s with direct completion to 34,000/s with batching, even as the batched run committed more orders and deleted more records. Those counters include reads and monitoring.

The batch has to preserve a dependency. If A1 and A2 share a key, the A2 handler can start only after A1’s completion has committed. A handler returning successfully is one step. Its completion is a separate database write.

The optional JDBC batcher has one completion writer per runtime. The A1 and B1 handlers can run independently because their keys differ. If their deletes arrive in the same batch, the writer executes both in one PostgreSQL transaction. The key tasks wait on their own CompletableFuture. The writer resolves each future after the commit returns. A’s task can then start A2. If the batch transaction fails, the writer retries the completion writes in individual transactions. A write that still fails completes its future exceptionally and ends that key’s current processing pass.

The test collected up to 1,024 actions with a 1 ms collection window after the first submission. A lightly loaded writer can spend that window collecting a single completion. A hot key contributes at most one in-flight completion, so batching relies on concurrency across keys.

ConfigurationProcessed records/sPending records at the end
v1.11.1, direct completion7,28339,482,608
v2.0.0, direct completion26,58416,127,892
v2.0.0, completion batching66,7556,833

A record counted as processed when its completion delete committed. Within v2.0.0, batching brought throughput to 2.51× the direct rate. The backlog tells the other half of the story. The batched run nearly kept pace with 66,763 new outbox records/s, while both direct runs accumulated millions of rows. The release comparison also includes bulk reads, deferred deserialization, and revised polling queries and indexes.

Each order and its two outbox records were saved in one synchronous transaction. The batched run committed 33,381 orders/s. Producers and consumers ran concurrently on an Apple M5 Max with PostgreSQL 18.7, four consumers, two lightweight handlers, and no external broker. Every configuration used strict per-key ordering and ran once for 15 minutes.

For the minimal Spring Boot wiring, see the Java and Kotlin quickstart.


r/java • • 5d ago

Datafaker 3.0 Released

Thumbnail datafaker.net
67 Upvotes

Hi all,

Thanks to the combined effort of 29 contributors, we've managed to create a new version of Datafaker, version 3.0. It's mostly compatible with Datafaker 2.x, but due to enabling JSpecify in this release, we've decided to call this a (potentially) breaking release. Java 17 is still the baseline, so no changes there, but we've managed to add some features, make it even faster, improved GraalVM support, and a whole lot of other improvements, plus we changed our website, https://www.datafaker.net/, to look slightly more modern.

Big shoutout to everyone who contributed on this! Cheers!


r/java • • 6d ago

jMolecules 2026.0 released

18 Upvotes

https://github.com/xmolecules/jmolecules-bom/releases/tag/2026.0.0


r/java • • 4d ago

GitHub - jbax/parent: A shared gradle build setup for java projects of any size, whether you're working on a single library, 100+ separate git repositories, or a few multi-module projects sitting side by side.

Thumbnail github.com
0 Upvotes

r/java • • 5d ago

New Foojay podcast about how AI changes how Java developers work

Thumbnail youtube.com
0 Upvotes

I published a new Foojay podcast. At the JFall conference in the Netherlands, I spoke with four developers about how AI changes their way of working. In this episode I play those interviews and discuss them with Anton Arhipov of JetBrains. We cover why code quality and guardrails still matter when an agent writes the code, how fast an AI proof of concept can go to production, where the next senior developers come from, what AI costs society and your wallet, whether local models are the answer, and how to use AI sessions in a way that keeps you learning.

Guests:

* Anton Arhipov - Developer Advocate at JetBrains
* Adam Bien - Independent consultant
* Maaike van Putten - Tech educator and co-founder of Java District
* Sayf Jawad - Founding member of Stichting Duurzaam AI
* Stéphane Philippart - Developer Advocate at OVHcloud  


r/java • • 7d ago

Quarkus 4.0 released!

Thumbnail quarkus.io
167 Upvotes

r/java • • 7d ago

Java4Shell Vulnerability: Update Your JetBrains IDEs, ReSharper, .NET Tools, Toolbox App, and Gateway Now

Thumbnail blog.jetbrains.com
68 Upvotes

r/java • • 6d ago

I built an open-source LLM gateway in Java 25 / Spring Boot 4: failover, caching, quotas and cost tracking behind one OpenAI-compatible endpoint

0 Upvotes
Most LLM gateways are Python or TypeScript, so I built one on the JVM: 
**Aether Gateway**
 (MIT). Point any OpenAI SDK at it and it handles provider failover (OpenAI, Anthropic, Gemini, Groq, OpenAI-compatible), caching, per-key quotas and per-request cost tracking.

Some JVM details that might interest this sub:

- 
Hexagonal modules,
 with the dependency rules enforced by ArchUnit. The core is JDK-only, and Spring stays in the adapters.
- 
WebFlux only for streaming,
 where cancellation has to reach the upstream call (client disconnects, you stop paying). Virtual threads everywhere else.
- 
Resilience4j
 circuit breakers and bulkheads per provider, plus failover for streams before their first chunk.
- 
Three test layers:
 contract tests shared between the Redis/Postgres adapters and their in-memory counterparts, Testcontainers integration tests, and a Cucumber acceptance suite that runs against both deployment modes.
- 
"Lite mode"
 swaps every store for an in-memory adapter by Spring profile, so the whole gateway runs as one container.

Try it:

docker run -p 8080:8080 -e AETHER_LITE_BOOTSTRAP_API_KEY=aeth_try_me ashishvaghelaa/aether-gateway-proxy:lite

Benchmarks are committed and reproducible, including the misses:
- Cache-hit p95 is 8.9 ms, and failover p99 is 67.92 ms.
- At 2,000 concurrent streams on 2 vCPU, 37% failed. That's not good enough yet.

I'd love feedback on the architecture and the code, and on what would make you actually use it.

GitHub: https://github.com/Ashish-CodeJourney/aether-gateway
Docs and 70-second demo: https://ashish-codejourney.github.io/aether-gateway/

r/java • • 8d ago

What happened to Societe Generale repositories?

33 Upvotes

Societe Generale published several projects on their Github profile, like the arch-unit-maven-plugin. All their repositories disappeared; luckily the source code is still available on Maven Central.

While the ArchUnit ecosystem is not the same as in 2019, and the plugin is not really needed anymore, I'm curious to understand what happened.


r/java • • 8d ago

How to use PostgreSQL pgvector with JPA, Hibernate, and Spring AI

Thumbnail vladmihalcea.com
20 Upvotes

r/java • • 9d ago

Benchmarking Java frameworks on a 512 MiB server: Spring Boot, Quarkus, Micronaut and Jex

Post image
65 Upvotes

I've been experimenting with Java applications on memory-constrained servers and have now formalized these comparisons into a reproducible benchmark.

One particularly interesting finding: despite substantial differences in memory consumption and startup time, all four stacks delivered remarkably similar p99 latency under sustained load.

The first published results compare four stacks implementing the same investment portfolio service:

  • Spring Boot + JDBC
  • Quarkus + Jdbi
  • Micronaut Data JDBC
  • Jex + Jdbi

Each application runs alongside PostgreSQL 18.7 on a 512 MiB Debian 13 VM with 1 vCPU, no swap and HotSpot 27 (-Xms16m -Xmx80m -XX:+UseG1GC).

Key results:

  • All eight runs sustained 40 requests/sec without errors or timeouts.
  • Sustained p99 latency ranged from 11.02 to 11.51 ms.
  • Sampled peak application RSS ranged from 148 to 233 MiB.
  • Application readiness ranged from 4.64 to 10.82 seconds.

The benchmark uses shared correctness checks, a versioned protocol, recorded measurements and automated report generation.

Spring Boot + JDBC is the reference implementation, and the other implementations reproduce its application behavior. The benchmark compares complete SQL-first application stacks rather than isolated framework overhead. The goal is to understand practical trade-offs under realistic resource constraints.

I'm also the author of CoilBase, which the Jex and Quarkus implementations use as a thin integration layer around Jdbi. Given its simple implementation, I expect its overhead to be negligible. It hasn't been measured separately, but I'd be happy to run an isolated comparison if there's interest.

Article: https://pvrlabs.xyz/java-performance/experiments/benchmarking-java-frameworks-512mib.html

Benchmark source: https://github.com/PVRLabs/framework-benchmarks

I'm currently considering two directions for the next comparison:

  • Add Helidon to broaden the Java framework comparison.
  • Add a Go implementation as a first cross-language comparison, opening the door to community contributions in other languages, such as Rust.

Which direction would you find more interesting? Other suggestions are welcome too.


r/java • • 10d ago

JLib Inspector v1.0.1 is out

Thumbnail i.redd.it
23 Upvotes

JLib Inspector v1.0.1 is out!

A Java agent that shows which JARs apps actually load at runtime, helpful when investigating dependency and vulnerability exposure.

This release improves dependencies, security, Maven 4 support, and CI.

https://github.com/brunoborges/jlib-inspector/releases/tag/v1.0.1


r/java • • 12d ago

Evolving the Java Language: An Inside Perspective

Thumbnail youtube.com
122 Upvotes