<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Jdbc on tsvinc</title>
    <link>https://tsvinc.dev/tags/jdbc/</link>
    <description>Recent content in Jdbc on tsvinc</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 07 Jul 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://tsvinc.dev/tags/jdbc/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>2492, 2495, 2508</title>
      <link>https://tsvinc.dev/posts/benchmark-measuring-orm/</link>
      <pubDate>Tue, 07 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://tsvinc.dev/posts/benchmark-measuring-orm/</guid>
      <description>&lt;p&gt;&lt;em&gt;Part 19 of &lt;a href=&#34;https://tsvinc.dev/series/micronaut-256mb/&#34;&gt;the Micronaut native image series&lt;/a&gt;. Follows &lt;a href=&#34;https://tsvinc.dev/posts/eight-connections-zero-available/&#34;&gt;Part 18&lt;/a&gt;, which chased a connection pool cancellation leak. Assumes familiarity with JDBC, R2DBC, and JPA/Hibernate.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-table-that-ended-the-argument&#34;&gt;The Table That Ended the Argument&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Workload&lt;/th&gt;&#xA;          &lt;th&gt;Framework&lt;/th&gt;&#xA;          &lt;th&gt;rps&lt;/th&gt;&#xA;          &lt;th&gt;p95&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;jdbc-synth&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Quarkus&lt;/td&gt;&#xA;          &lt;td&gt;2508.4&lt;/td&gt;&#xA;          &lt;td&gt;1.2 ms&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;jdbc-synth&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Micronaut&lt;/td&gt;&#xA;          &lt;td&gt;2495.0&lt;/td&gt;&#xA;          &lt;td&gt;1.8 ms&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;jdbc-synth&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Spring Boot&lt;/td&gt;&#xA;          &lt;td&gt;2491.8&lt;/td&gt;&#xA;          &lt;td&gt;1.6 ms&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;r2dbc-synth&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Quarkus&lt;/td&gt;&#xA;          &lt;td&gt;2501.2&lt;/td&gt;&#xA;          &lt;td&gt;1.4 ms&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;r2dbc-synth&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Micronaut&lt;/td&gt;&#xA;          &lt;td&gt;2480.2&lt;/td&gt;&#xA;          &lt;td&gt;2.2 ms&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;code&gt;r2dbc-synth&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Spring Boot&lt;/td&gt;&#xA;          &lt;td&gt;2478.7&lt;/td&gt;&#xA;          &lt;td&gt;2.3 ms&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Native images at 256 MB. Same k6 load. Same Postgres. Zero errors across the board.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Throughput Was Always 115</title>
      <link>https://tsvinc.dev/posts/28-apis-same-throughput/</link>
      <pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://tsvinc.dev/posts/28-apis-same-throughput/</guid>
      <description>&lt;p&gt;&lt;em&gt;Part 17 of &lt;a href=&#34;https://tsvinc.dev/series/micronaut-256mb/&#34;&gt;the Micronaut native image series&lt;/a&gt;. Follows &lt;a href=&#34;https://tsvinc.dev/posts/designed-reactive-benchmark/&#34;&gt;Part 16&lt;/a&gt;, which compared reactive vs imperative on a lighter workload. Assumes familiarity with Project Reactor and virtual threads.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;115&#34;&gt;115&lt;/h2&gt;&#xA;&lt;p&gt;That&amp;rsquo;s the number. Requests per second. For all twelve scenarios.&lt;/p&gt;&#xA;&lt;p&gt;Reactive R2DBC on native: 115. Imperative JDBC on JVM: 115. Virtual threads with loom-carrier: 114.5. Reactive on JVM with 512 MB memory limit: 115.2. Imperative on JVM unlimited: 115.1.&lt;/p&gt;&#xA;&lt;p&gt;Twelve benchmark runs. Two codebases. Three runtime configurations. Six memory/container permutations each. 0% failure rate across the board. And the same number, over and over, like a metronome that doesn&amp;rsquo;t care what&amp;rsquo;s playing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Designed a Reactive Benchmark. Imperative Won.</title>
      <link>https://tsvinc.dev/posts/designed-reactive-benchmark/</link>
      <pubDate>Tue, 30 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://tsvinc.dev/posts/designed-reactive-benchmark/</guid>
      <description>&lt;p&gt;&lt;em&gt;Part 16 of &lt;a href=&#34;https://tsvinc.dev/series/micronaut-256mb/&#34;&gt;the Micronaut native image series&lt;/a&gt;. Follows &lt;a href=&#34;https://tsvinc.dev/posts/seven-scenarios-one-table/&#34;&gt;Part 15&lt;/a&gt;, which benchmarked the reactive service alone. Assumes familiarity with Project Reactor and virtual threads.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-hypothesis&#34;&gt;The Hypothesis&lt;/h2&gt;&#xA;&lt;p&gt;The workload was designed to make reactive shine. Six endpoints exercising parallel fan-out, scatter-gather, bounded concurrency, and backpressure. A Go mock server injecting realistic latency jitter — ISS at 10-50ms with 3% failures, NEO at 30-150ms, connection resets via &lt;code&gt;Hijack()&lt;/code&gt; + &lt;code&gt;conn.Close()&lt;/code&gt;. k6 ramping to 200 VUs then sustaining 500 req/s constant arrival. If reactive Micronaut had a home-court advantage anywhere, it was here.&lt;/p&gt;</description>
    </item>
    <item>
      <title>We Removed Reactor. Nothing Got Slower.</title>
      <link>https://tsvinc.dev/posts/reactor-removal-benchmark/</link>
      <pubDate>Sat, 20 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://tsvinc.dev/posts/reactor-removal-benchmark/</guid>
      <description>&lt;p&gt;We took the entire reactive stack out. R2DBC, Mono, Flux, Reactor Core, loom-carrier, &lt;code&gt;flatMap&lt;/code&gt; with its carefully-tuned concurrency arguments. Replaced it with JDBC, HikariCP, and blocking method calls. Same endpoints. Same Netty HTTP server. Same PostgreSQL. Same k6 load profile: 10 to 200 VUs, 500 req/s constant arrival rate, seven scenarios each.&lt;/p&gt;&#xA;&lt;p&gt;Throughput didn&amp;rsquo;t move. Latency dropped. Memory dropped. GC pauses dropped 63% at 256 MB.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-scoreboard&#34;&gt;The Scoreboard&lt;/h2&gt;&#xA;&lt;p&gt;This is &lt;a href=&#34;https://tsvinc.dev/series/micronaut-256mb/&#34;&gt;part of the series&lt;/a&gt; benchmarking a Micronaut 5.0.0 app under memory constraints. The reactive version is the one from &lt;a href=&#34;https://tsvinc.dev/posts/flatmap-backpressure/&#34;&gt;Part 10&lt;/a&gt; and &lt;a href=&#34;https://tsvinc.dev/posts/loom-carrier-reactive/&#34;&gt;Part 11&lt;/a&gt; — fully tuned, &lt;code&gt;flatMap&lt;/code&gt; concurrency bounded, R2DBC pool sized to match, loom-carrier enabled for virtual threads. The imperative version: JDBC/HikariCP, &lt;code&gt;THREAD_PER_TASK&lt;/code&gt; executor for virtual threads, same pool size.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
