<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alexis MP on Medium]]></title>
        <description><![CDATA[Stories by Alexis MP on Medium]]></description>
        <link>https://medium.com/@alexismp?source=rss-dbfb8e06b9f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*cNRZe8BljqJ1s40G.jpeg</url>
            <title>Stories by Alexis MP on Medium</title>
            <link>https://medium.com/@alexismp?source=rss-dbfb8e06b9f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 02:44:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alexismp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Reading 175 Conference Talks in One Sitting with Java 25, Cloud Run, and Gemini]]></title>
            <link>https://medium.com/google-cloud/reading-175-conference-talks-in-one-sitting-with-java-25-cloud-run-and-gemini-572b3604e8e2?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/572b3604e8e2</guid>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[google-cloud-run]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 13:48:05 GMT</pubDate>
            <atom:updated>2026-11-27T14:13:10.814Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Building Devoxx Conference Digest, a zero-framework Java 25 pipeline that turns hundreds of conference transcripts into trends, consensus, and side-by-side debates.</em></p><p>If you have ever attended <strong>Devoxx Belgium</strong>, you know the paradox of a great developer conference: there are over <strong>200 sessions</strong> packed into five days, and even if you sprint between theaters at Kinepolis Antwerp, you can only catch a tiny fraction of them. Catching up afterward by watching hundreds of hours of YouTube recordings (or reading full transcripts) simply doesn’t scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TqXw77FUa6DBF_etQLe5kw.png" /></figure><p>What makes this project possible in the first place is how lucky we are as a community: the <strong>Devoxx conference organizers transcribe virtually every session (also powered by Gemini!)</strong> and make the timestamped transcripts, takeaways, and mind maps available through the Devoxx Companion app’s Firestore API.</p><p>Building on top of that foundation, I created <a href="https://devoxx-digest.cloud.run/"><strong>Devoxx Conference Digest</strong></a>: a lightweight <strong>Java 25</strong> intelligence pipeline and interactive web dashboard running on <strong>Google Cloud Run</strong> that ingests agendas, speaker metadata, live room occupancy, mind maps, and full timestamped transcripts, then synthesizes the entire event using <strong>Gemini 3.8 Flash</strong>.</p><h3>Beyond Single-Talk Summaries</h3><p>Summarizing one talk is easy. The real value of a conference is seeing what emerges <em>across</em> 175+ independent speakers in the same week. Devoxx Digest organizes an entire edition into five views:</p><ul><li><strong>Macro Trends &amp; Pulse</strong>: Ranks the dominant engineering themes by talk volume and sentiment (<em>Bullish</em>, <em>Mixed</em>, <em>Skeptical</em>). For Devoxx Belgium 2026, synthesized across <strong>175 transcribed sessions</strong>, the headline shift was unmistakable: the end of unguided “vibe coding” and the rise of <em>harness engineering</em>, alongside MicroVM agent sandboxing, frontier-grade local inference, and JVM hardware alignment (Valhalla, Leyden, FFM, and Panama).</li><li><strong>Consensus Wall</strong>: Surfaces theses where multiple independent speakers converged, backed by clickable, verbatim timestamped quotes (for instance, why markdown rules files alone aren’t enough to constrain coding agents, and why executable build-time guardrails are taking over).</li><li><strong>Debate Arena</strong>: Contrasts genuine architectural tensions side by side (<em>Perspective A</em> vs. <em>Perspective B</em>), such as <em>Autonomous Multi-Agent Loops vs. Deterministic Programmatic Workflows</em> or <em>Microservices Decomposition vs. The Return to Modular Monoliths</em>.</li><li><strong>Ask the Conference &amp; Company Lens</strong>: Grounded Q&amp;A that answers technical questions strictly from extracted claims and verbatim quotes, plus a dynamic keyword lens that expands an ecosystem seed (like “Google Cloud, Gemini”) to filter trends and debates (useful for sponsors!).</li><li><strong>Talk &amp; Speaker Inspector</strong>: Click any quote or session card to inspect key takeaways, mind maps, crowd room occupancy, searchable timestamped transcripts, and direct links to the Devoxx Companion app and YouTube.</li></ul><p><strong>Under the Hood: Zero-Framework Java 25 + Cloud Storage FUSE</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkr2p9-sOWtCD-IAFILidA.png" /></figure><p>The backend is intentionally minimal with no heavy web framework, and running this pipeline on Cloud Run turned out to be a great real-world showcase for <strong>Java 25</strong>:</p><ul><li><strong>No more virtual-thread pinning (JEP 491)</strong>: Early on, concurrent Firestore syncs and Application Default Credentials token refreshes triggered a carrier-pool pinning deadlock on single-vCPU Cloud Run instances. Upgrading to Java 25 allowed virtual threads to unmount cleanly inside synchronized blocks, letting us rip out our ReentrantLock workarounds.</li><li><strong>Compact Object Headers (JEP 519)</strong>: Enabling -XX:+UseCompactObjectHeaders in production trimmed heap usage across thousands of cached transcript chunks and JSON AST nodes.</li><li><strong>Two-stage Gemini 3.8 Flash synthesis</strong>: Stage 1 extracts structured topics, sentiment, and verbatim timestamped claims per talk (cached to disk) while Stage 2 acts as an “Editor-in-Chief,” synthesizing the full corpus into trends, consensus points, and debates.</li><li><strong>Zero-database persistence via Cloud Storage FUSE</strong>: Instead of provisioning a separate database, the Cloud Run service mounts a regional GCS bucket directly at /app/data. A background virtual thread seeds any pre-baked conference data on startup, and an hourly scheduler automatically pulls new transcripts during an active conference window, then quietly stops once the event wraps.</li></ul><h3><strong>What I’d Do Differently Today (Hydrogen &amp; Neon)</strong></h3><p>When I built this pipeline (only a couple of months ago), <strong>Gemini 3.8 Flash</strong> handled both stages. With the new <strong>Gemini 4</strong> lineup, I’d probably split the work across two models:</p><ul><li><strong>Stage 1 (Per-talk extraction)</strong> would rely on Gemini 4 <strong>Hydrogen</strong> as it’ss built for fast, high-volume parallel work. It should be more than twice as fast as 3.8 Flash while cutting significantly fabricated claims. For extracting structured topics, sentiment, and verbatim timestamped quotes across 175+ transcripts, it’s faster, cheaper, and much more reliable on exact quotes.</li><li><strong>Stage 2 (Editor-in-Chief synthesis): </strong>Synthesizing 175 talks into a <em>Consensus Wall</em> and <em>Debate Arena</em> is a deep cross-document reasoning problem. <strong>Gemini 4 Neon</strong> sits in the sweet spot for long-context analysis and nuanced synthesis, and its configurable thinking_level (low to xhigh) lets you dial up reasoning depth only for the single corpus-wide pass while keeping <em>Ask the Conference</em> Q&amp;A snappy on Hydrogen (or Neon at low/medium).</li></ul><p><strong>Bonus:</strong> Both models share a unified 1M-token context window with long-decode support, making it easier to pass larger chunks of the conference corpus in a single synthesis pass without hitting tight output caps.</p><h3>Try It Out</h3><p>Explore the live multi-edition dashboard, including all 175 analyzed talks from Devoxx Belgium 2026: <a href="https://devoxx-digest.cloud.run/">devoxx-digest.cloud.run</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=572b3604e8e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/reading-175-conference-talks-in-one-sitting-with-java-25-cloud-run-and-gemini-572b3604e8e2">Reading 175 Conference Talks in One Sitting with Java 25, Cloud Run, and Gemini</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Pixel Art Theory to a Live Conference LED Matrix]]></title>
            <link>https://medium.com/google-cloud/from-pixel-art-theory-to-a-live-conference-led-matrix-1845f8faf329?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1845f8faf329</guid>
            <category><![CDATA[google-cloud-run]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[pixel-art]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 15:58:34 GMT</pubDate>
            <atom:updated>2026-11-26T15:58:51.421Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How an exploration of 64×64 LED aesthetics turned into an end-to-end Java, Cloud Run, Gemini, and Android pipeline and what 160 developer submissions at Devoxx Belgium taught us.</em></p><p>In my <a href="https://medium.com/google-cloud/decoding-vibrant-pixel-art-with-gemini-4-argon-and-antigravity-cli-da2b99c1a2bb">previous post</a>, I used <strong>Gemini 4 (Argon)</strong> and <strong>Antigravity CLI</strong> to dissect over 200 animations on a <strong>Divoom Pixoo-64</strong> ( a compact 64×64 RGB LED matrix) to figure out why some pixel art pops off the diffuser while other pieces turn into muddy blobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBHiiy8swbXmBVnruf3_8w.png" /></figure><p>That analysis gave us a surprisingly concrete set of physical rules: embrace True-Black (#000000) negative space, avoid muddy mid-tones, keep 1-pixel edges crisp instead of anti-aliased, respect the ESP32’s frame-rate and memory limits, and lean into seamless motion loops.</p><p>Theory is fun, but there is no better stress test than putting physical hardware on a busy conference booth floor and inviting hundreds of developers to throw AI-generated pixel art at it.</p><p>For <a href="https://devoxx.be"><strong>Devoxx Belgium 2026</strong></a>, we turned those findings into a complete, open-source, cloud-to-hardware stack made of three interconnected projects:</p><ol><li><a href="https://github.com/glaforge/jixoo"><strong>Jixoo</strong></a> : a modern Java 21 library, GraalVM native CLI, and AI Agent Skill for talking directly to the Pixoo-64.</li><li><strong>GraviDots</strong> : the custom Cloud Run contest platform and serverless Gemini Vision scoring pipeline we built to run the booth raffle, evaluate every submission, and power the <a href="https://gravidots-714656958210.europe-west1.run.app/leaderboard.html">live event leaderboard</a>.</li><li><strong>gcs2pixoo</strong> : an unattended 24/7 Android controller app that syncs the highest-scoring visuals from Google Cloud Storage straight onto the booth’s physical Pixoo-64 displays.</li></ol><p>Here is how the pieces fit together, the hardware quirks we hit along the way, and what the live Devoxx leaderboard actually revealed.</p><h3>1. Speaking Native Pixoo-64 in Java 21: jixoo</h3><p>Before you can build a booth experience around a $100 Wi-Fi LED matrix, you need a rock-solid way to drive it. Created by Guillaume Laforge, <a href="https://github.com/glaforge/jixoo"><strong>Jixoo (jixoo64)</strong></a> is a Java 21 client library and Picocli-based CLI (pixoo-cli) built specifically for the Divoom Pixoo-64’s local HTTP API.</p><p>A few engineering details to point out include :</p><ul><li><strong>Strict HTTP/1.1 over ESP32</strong>: The Pixoo-64 runs an embedded ESP32 web server on port 80 that does not play nicely with modern HTTP/2 upgrades. Jixoo uses Java 21’s native HttpClient pinned to HTTP/1.1, modeled cleanly with Java 21 records and sealed interfaces.</li><li><strong>Zero-dependency Divoom &amp; GIF89a codecs</strong>: It includes a pure Java 21 decoder for Divoom’s 16×16 tiled .bin assets and an animated GIF89a encoder and no native C or LZO libraries required.</li><li><strong>Instant native CLI with GraalVM 25</strong>: Compiling pixoo-cli with mvn package -Pnative yields a standalone executable with &lt;5ms startup, supporting subnet auto-discovery, brightness, hardware text overlays, Pomodoro timers, cloud gallery playback, and direct GIF streaming.</li><li><strong>Built-in AI Agent Skill</strong>: Jixoo ships an Agent Skill (npx skills add github.com/glaforge/jixoo/skills/pixoo64) so coding agents can discover and push visuals to a Pixoo-64 on the local network out of the box.</li></ul><p>Jixoo also gave us our first hard lesson in multi-display physics. While experimenting with driving two Pixoo-64 panels side by side, we confirmed that the devices have no peer-to-peer sync and their internal clock crystals drift by 100–300ms every few minutes. Even more importantly, we learned how sensitive the ESP32 web server is to TCP connection churn, frame sizes, and concurrent requests.</p><h3>2. Turning LED Physics into a Serverless Judge: gravidots</h3><p>With hardware control solved, the next question was how to turn the Pixoo-64 into an engaging developer contest at the Google Cloud booth. That became <strong>GraviDots</strong>, a Java 21 / Spring Boot 3.4 application deployed on <strong>Google Cloud Run</strong>, backed by <strong>Cloud Firestore</strong>, <strong>Cloud Storage</strong>, <strong>Cloud Run Functions</strong>, and the <strong>Gemini API</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7MZv8NbKh_UFXdR-W0LYTg.jpeg" /></figure><h3>The 1× / 2× / 3× Raffle Mechanic</h3><p>To encourage both quick participation and deep developer hacking, GraviDots uses a three-tier raffle multiplier:</p><ul><li><strong>1× Ticket</strong>: Scan your conference badge QR code (either in the web app via live camera + ZXing.</li><li><strong>2× Tickets</strong>: Upload 1 to 3 custom square 64×64 visuals. Every upload is screened for safety by NsfwModerationService (gemini-3.8-flash) and immediately enters the scoring pipeline.</li><li><strong>3× Tickets</strong>: Attach the public GitHub or GitLab repository containing the code and prompts used to generate those visuals. An asynchronous RepoAnalysisAgentService (gemini-3.8-flash) inspects the repository’s README, build files, and source code to verify use of Pixoo, Nano Banana, ….</li></ul><h3>A Multi-Layered Serverless Judge (With a Dash of Secret Sauce)</h3><p>Every time a visual landed in Cloud Storage, an Eventarc trigger fired a Cloud Run Function to evaluate the submission and write its results to Firestore. Rather than relying on a single heuristic, or asking an LLM to eyeball a raw image on its own, the scoring engine combined two complementary perspectives:</p><ul><li><strong>Physical LED-matrix analysis</strong>: Checking the fundamentals that actually matter on a 64×64 diffused RGB grid : contrast and dark-level discipline, color vibrancy, pixel crispness, animation fluidity, and hardware fit.</li><li><strong>Multimodal Gemini Vision judgment</strong>: Passing the artwork to <strong>Gemini 3.8 Flash</strong> for an artistic and legibility critique, paired with perceptual similarity checks against previous submissions so duplicate or near-identical re-uploads couldn’t flood the leaderboard.</li></ul><p>And yes, we are intentionally keeping the exact weights, thresholds, and score-shaping math under wraps. Put a scored contest in front of hundreds of smart developers and the first instinct is to reverse-engineer the rubric and “prompt-engineer” the leaderboard. The engine bakes in a healthy layer of <strong>anti-gaming secret sauce</strong>: undisclosed heuristics that spot synthetic score-padding tricks, non-linear score shaping so entries don’t all cluster at the top and event-level tuning knobs that can be adjusted from conference to conference.</p><p>Once scored, a second Java 21 Cloud Function automatically synced the top-ranked visuals into a dedicated bucket for playback on the physical booth displays.</p><h3>3. Surviving Conference Wi-Fi 24/7</h3><p>Getting visuals scored in the cloud is only half the story. You still have to display them reliably on physical LED panels at a crowded exhibition booth, without a laptop tethered to the table all week.</p><p>What started as a bash script and an experimental Android module inside a fork of jixoo eventually graduated into its own standalone Jetpack Compose + Material 3 Android app: <strong>gcs2pixoo</strong>.</p><p>Running unattended hardware on conference Wi-Fi taught us a handful of practical engineering lessons that are baked directly into the app:</p><ul><li><strong>Autonomous ESP32 playback (</strong><strong>PicNum = N)</strong>: Instead of streaming frames continuously over noisy booth Wi-Fi, the mobile app burst-uploads a single animation cycle (capped at 40 frames to stay safely inside the ESP32’s 520 KB SRAM) at full wire speed, then lets the Pixoo’s own hardware timer loop it (jitter-free) while the phone idles with preview rendering disabled.</li><li><strong>No unnecessary screen flashes</strong>: Draw/ResetHttpGifId is sent only once at slideshow startup to avoid distracting black-screen resets between slides.</li><li><strong>Strict backpressure &amp; circuit breaker</strong>: A per-device Kotlin Mutex guarantees the next command is never sent until the Pixoo replies {“error_code”: 0}. When driving two displays in lockstep, a per-device circuit breaker isolates an offline secondary Pixoo into a 15-second backoff window so a flaky second panel never stalls the primary screen.</li><li><strong>&lt; 2s subnet rediscovery</strong>: Moving from hotel Wi-Fi to a booth hotspot changes every DHCP lease. A single <strong>Discover &amp; Replace IP</strong> button fires 64 parallel HTTP probes + UDP discovery across the active /24 subnet, overwrites stale IPs, and confirms ONLINE status.</li></ul><p>The result: drop an old Android phone next to two Pixoo-64 screens, point it at the best visuals bucket, and the top community submissions from the live leaderboard appear on the physical LED wall within minutes.</p><h3>4. What the Devoxx Belgium Leaderboard Actually Revealed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVvccK_5e6RsyJjpTYwa-g.png" /></figure><p>So what happened when real developers got their hands on the booth contest? Looking at the final Devoxx Belgium leaderboard snapshot gives us a fascinating look at AI-assisted pixel art in the wild:</p><ul><li><strong>160 deduplicated visuals</strong> scored and ranked on the board</li><li><strong>49 unique named participants</strong> (plus 5 anonymous submissions)</li><li><strong>16 public GitHub repositories</strong> submitted for the 3× tier, accounting for <strong>76 of the 160 visuals</strong></li><li><strong>Format split</strong>: 101 GIFs, 36 JPEGs, 22 PNGs, and 1 SVG</li><li><strong>Native 64×64 discipline</strong>: <strong>71.2%</strong> (114 of 160) hit native 64×64 or clean integer-multiple grid alignment</li></ul><h3>Motion Wins By Over 10 Points</h3><p>One of the clearest patterns in the data was the gap between animated and static submissions:</p><ul><li><strong>Animated visuals (100 entries, 62.5%)</strong>: average score <strong>67.4</strong></li><li><strong>Static visuals (60 entries, 37.5%)</strong>: average score <strong>56.7</strong></li></ul><p>That <strong>+10.7-point</strong> spread mirrors what you see with your own eyes on a physical LED matrix: a looping animation with clean contrast immediately draws people across an exhibition hall in a way a static image rarely does.</p><h3>The Four Classic Pixel-Art Pitfalls Caught in the Wild</h3><p>The automated diagnostics from the scoring pipeline read like a field guide to what goes wrong when developers generate pixel art with general-purpose image models without post-processing:</p><ol><li><strong>Anti-aliased blur (79 visuals, nearly half the board!)</strong>: Standard resizing or diffusion outputs introduce soft, semi-transparent edges that look fine on a Retina display but turn fuzzy behind a physical LED diffuser. Nearest-neighbor downscaling and palette quantization made an immediate difference.</li><li><strong>Zero True-Black negative space (77 visuals)</strong>: Almost half the entries had 0% #000000 pixels. On an RGB LED panel, lighting every background pixel washes out the foreground subject.</li><li><strong>High-res square exports (35 visuals)</strong>: 21 submissions arrived at 1024×1024 and 14 at 1254×1254, signs of raw image-generation outputs uploaded without pixel-grid snapping.</li><li><strong>Frame-buffer overflows (20 visuals)</strong>: Long animations exceeded the Pixoo-64’s Wi-Fi/SRAM frame budget, a constraint that only becomes obvious once you test against real ESP32 hardware.</li></ol><h3>Standout Creations at the Top of the Board</h3><p>The strongest submissions proved that when developers combine generative media with hardware-aware pixel discipline, a 64×64 LED matrix can be surprisingly expressive.</p><p>Across the week, attendees lit up the booth with everything from an animated blue cat bouncing next to pulsing audio visualizers and a pixel-art robot watering a glowing AI sprout, to Docker-inspired whales hauling cargo under crisp SHIP IT banners. Others leaned into local and developer culture with a rotating Brussels Atomium framed by a torii gate, a playful Google “G” interacting with a Java coffee bean against a starry sky, an AI-agent “code kraken,” and pure retro-arcade scenes like a pulsing cyberpunk microchip and a firing mech over a burning cityscape.</p><h3>Wrapping Up</h3><p>Taking a side project from an exploratory AI analysis all the way to a live, multi-day conference installation is always humbling. <strong>Gemini</strong> made it possible to both <em>codify</em> pixel-art aesthetics and <em>judge</em> 160 diverse submissions with nuanced, hardware-aware critiques, all while <strong>Java 21</strong>, <strong>Cloud Run</strong>, <strong>Cloud Run Functions</strong>, and a scrappy <strong>Android</strong> controller handled the messy reality of ESP32 SRAM limits, badge scanners, and exhibition-hall Wi-Fi !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1845f8faf329" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/from-pixel-art-theory-to-a-live-conference-led-matrix-1845f8faf329">From Pixel Art Theory to a Live Conference LED Matrix</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamlining AlloyDB Development with Spring Boot, Quarkus, Micronaut, AlloyDB Express, and AlloyDB…]]></title>
            <link>https://medium.com/google-cloud/streamlining-alloydb-development-with-spring-boot-quarkus-micronaut-alloydb-express-and-alloydb-af298980f1be?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/af298980f1be</guid>
            <category><![CDATA[alloydb]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 17:50:26 GMT</pubDate>
            <atom:updated>2026-11-20T17:50:55.162Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Streamlining AlloyDB Development with Spring Boot, Quarkus, Micronaut, AlloyDB Express, and AlloyDB Omni</strong></h3><p><em>(this is Part 3 of a Java tour of Google Cloud Databases series. See Part 1: </em><a href="https://medium.com/google-cloud/a-modern-java-developers-guide-for-google-cloud-databases-22e6c8b2f8d3"><em>Introduction</em></a><em> and Part 2: </em><a href="https://medium.com/google-cloud/alloydb-integration-for-modern-java-apps-connectivity-and-auth-03a9be957477"><em>AlloyDB Core Connectivity &amp; IAM Auth</em></a><em>)</em></p><p>In Part 2, we wired up passwordless IAM connectivity to AlloyDB using the <strong>AlloyDB Java Connector</strong> across plain JDBC, <strong>Spring Boot</strong>, <strong>Quarkus</strong>, and <strong>Micronaut</strong>.</p><p>Getting SELECT ‘Connection Successful!’ to print on startup is a great milestone, but real-world Java development starts <em>after</em> the connection pool is initialized. Once your framework is connected, two practical questions immediately come up:</p><ol><li><strong>How do we write clean, idiomatic data-access code</strong> against AlloyDB in Spring Boot (or Quarkus and Micronaut)?</li><li><strong>Where should our AlloyDB databases live across our development, CI/CD, and production environments?</strong> And how do <a href="https://cloud.google.com/blog/products/databases/introducing-alloydb-express-for-rapid-testing-and-prototyping"><strong>AlloyDB Express</strong></a> and <a href="https://cloud.google.com/alloydb/omni"><strong>AlloyDB Omni</strong></a> enhance the developer experience and the architect’s palette of choices?</li></ol><p>Let’s tackle both.</p><h3>Idiomatic Data Access in Spring Boot, Quarkus, and Micronaut</h3><p>Since we already configured spring.datasource.* (and its Quarkus and Micronaut equivalents) in <a href="http://part2.md">Part 2</a>, our application code doesn’t need a single line of cloud-specific connection boilerplate. We can focus purely on domain modeling, SQL, and transaction boundaries.</p><h4>Building the Repository &amp; REST Layer in Spring Boot (JdbcClient)</h4><p>For relational workloads on AlloyDB where you want full control over PostgreSQL-specific SQL features (like RETURNING, JSONB operators, Common Table Expressions, or vector distance queries) without the overhead of a stateful ORM session, <strong>Spring Boot fluent </strong><strong>JdbcClient</strong> paired with Java record types is hard to beat.</p><p>Here is a production-style FilmRepository operating on the film table from our DVD Rental database:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/89dbe2184bcc3f4819005b26b3e87938/href">https://medium.com/media/89dbe2184bcc3f4819005b26b3e87938/href</a></iframe><p>Exposing this repository through a Spring Boot REST controller is straightforward:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/278fe960abe2315f7db623e0148194dd/href">https://medium.com/media/278fe960abe2315f7db623e0148194dd/href</a></iframe><h4>How the Same Data Layer Looks in Quarkus and Micronaut</h4><p>Because the AlloyDB Java Connector sits transparently underneath the DataSource we configured in Part 2, Quarkus and Micronaut developers use their native data abstractions in the exact same way:</p><p><strong>Micronaut</strong> generates the JDBC query implementation at <em>compile time</em> via annotation processing, without runtime reflection and thus really fast startup. Make sure to add io.micronaut.data:micronaut-data-jdbc to &lt;dependencies&gt; and register io.micronaut.data:micronaut-data-processor inside maven-compiler-plugin’s &lt;annotationProcessorPaths&gt; in pom.xml (otherwise Micronaut cannot generate the repository bean and throws NoSuchBeanException at runtime):</p><pre>&lt;!-- In pom.xml &lt;dependencies&gt; --&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;io.micronaut.data&lt;/groupId&gt;<br>    &lt;artifactId&gt;micronaut-data-jdbc&lt;/artifactId&gt;<br>&lt;/dependency&gt;<br><br>&lt;!-- In pom.xml &lt;build&gt;&lt;plugins&gt; under maven-compiler-plugin --&gt;<br>&lt;annotationProcessorPaths combine.children=&quot;append&quot;&gt;<br>    &lt;path&gt;<br>        &lt;groupId&gt;io.micronaut.data&lt;/groupId&gt;<br>        &lt;artifactId&gt;micronaut-data-processor&lt;/artifactId&gt;<br>        &lt;version&gt;${micronaut.data.version}&lt;/version&gt;<br>    &lt;/path&gt;<br>&lt;/annotationProcessorPaths&gt;</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/24161a2012708c73018dbd7617faae54/href">https://medium.com/media/24161a2012708c73018dbd7617faae54/href</a></iframe><p><strong>Quarkus</strong> developers can inject AgroalDataSource directly or add io.quarkus:quarkus-hibernate-orm-panache to pom.xml and use <strong>Panache</strong> active records/repositories on top of the AlloyDB connection pool:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/34f114bdd6218a4602024fa7bc4be977/href">https://medium.com/media/34f114bdd6218a4602024fa7bc4be977/href</a></iframe><p><strong><em>Note:</em></strong><em> if your </em><em>dvdrental rating column uses the PostgreSQL custom enum </em><em>mpaa_rating rather than </em><em>VARCHAR, make sure to annotate </em><em>rating with </em><em>@JdbcTypeCode(SqlTypes.NAMED_ENUM) in Hibernate 6. Also, if running Quarkus 3.18 on JDK 25, you’ll need to add </em><em>-Dnet.bytebuddy.experimental=true to </em><em>.mvn/jvm.config).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFVbmGovxaIOo6OyrLQfMQ.png" /></figure><p>Until recently, Java developers who wanted to prototype or run integration tests against AlloyDB-specific features (like <strong>ScaNN vector indexes</strong>, the <strong>Columnar Engine</strong>, or <strong>AlloyDB AI</strong>) without paying for an always-on production cloud cluster turned to local container environments. Google Cloud now provides two distinct solutions tailored for different deployment needs and developer workflows: <a href="https://cloud.google.com/blog/products/databases/introducing-alloydb-express-for-rapid-testing-and-prototyping"><strong>AlloyDB Express</strong></a> and <a href="https://cloud.google.com/alloydb/omni"><strong>AlloyDB Omni</strong></a>.</p><h3>AlloyDB Express: Cloud Inner-Loop &amp; Rapid Prototyping</h3><p><a href="https://docs.cloud.google.com/alloydb/docs/express-overview">AlloyDB Express</a> is a new offering (November 2026) is built for rapid cloud prototyping, on-demand CI/CD environments, and AI coding agents, and removes the typical setup friction of managed database clusters in Google Cloud:</p><ul><li>You (or your AI coding agent via MCP) can spin up an AlloyDB Express PostgreSQL 18 database in <strong>under two seconds</strong> via gcloud, Cloud Console, REST API, or via Terraform. In my case, in europe-west2, my cluster creation completed in <strong>0.27 seconds</strong> and the 1-vCPU primary instance reached READY state in <strong>0.78 seconds</strong>. That’s <strong>1.05 seconds total</strong> database provisioning time, compare that to booting a local container!</li><li>After 15 minutes of inactivity, AlloyDB Express automatically pauses compute (<strong>scaling to zero means $0.00 while paused!</strong>) and wakes up transparently within seconds when your app sends its next query. Combined with <strong>50 free Compute Units per month</strong>, every developer can afford their own isolated cloud database.</li><li>An AlloyDB Express instance runs inside Google Cloud with <strong>true IAM</strong> Database Authentication, Private Service Connect (PSC), and built-in AI / Gemini SQL functions (ai.if, ai.rank, ai.generate).</li><li>You can also <strong>upgrade</strong> your AlloyDB Express cluster to a full AlloyDB cluster by adding High Availability (HA), Read Pools, and continuous backups <strong>without changing your data, IAM users, or Java </strong><strong>alloydbInstanceName connection string</strong> (do you need to bump the infra to 2 vCPUs).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QqjaJ1eW1_Apr9geNY12lQ.png" /></figure><p><strong>Note: d</strong>uring Public Preview, AlloyDB Express is available only in a select set of regions: <strong>us-west1</strong>, <strong>europe-west2</strong>, <strong>asia-east1</strong>, <strong>asia-east2</strong>, <strong>asia-northeast1</strong>, <strong>asia-southeast1</strong>, and <strong>australia-southeast1</strong>.</p><p>Notice that Express instances use --enable-public-dns (which provides a public DNS endpoint like *.a.europe-west2.alloydb.s.cloud.goog.) rather than--assign-inbound-public-ip, and connecting via the AlloyDB Java Connector (alloydbIpType=PUBLIC) works out of the box without needing--authorized-external-networks IP allowlisting:</p><pre># 1. Create the AlloyDB Express cluster (~0.27s)<br>gcloud beta alloydb clusters create my-express-cluster \<br>    --region=europe-west2 \<br>    --password=MySecurePassword123! \<br>    --enable-express \<br>    --project=my-gcp-project<br><br># 2. Create the 1-vCPU zonal primary instance with Public DNS &amp; IAM auth (~0.78s)<br>gcloud beta alloydb instances create my-express-primary \<br>    --cluster=my-express-cluster \<br>    --region=europe-west2 \<br>    --instance-type=PRIMARY \<br>    --cpu-count=1 \<br>    --enable-public-dns \<br>    --database-flags=alloydb.iam_authentication=on \<br>    --project=my-gcp-project</pre><h4>Structuring Spring Profiles for AlloyDB Express vs. Production</h4><p>AlloyDB Express uses the exact same alloydb-jdbc-connector and IAM authentication as a full AlloyDB cluster, so switching between an Express sandbox and production is just a Spring profile toggle away (mvn spring-boot:run -Dspring-boot.run.profiles=express, where the Spring Boot 4.0 context starts in <strong>0.40s</strong>), with one important pool setting (minimum-idle=0) so your local app doesn’t block scale-to-zero!</p><pre># src/main/resources/application-express.properties<br>spring.datasource.url=jdbc:postgresql:///dvdrental?socketFactory=com.google.cloud.alloydb.SocketFactory&amp;alloydbInstanceName=${ALLOYDB_EXPRESS_URI}&amp;alloydbEnableIAMAuth=true&amp;alloydbIpType=PUBLIC<br>spring.datasource.username=${ALLOYDB_IAM_USER}<br><br># Let HikariCP drop to 0 connections when idle so AlloyDB Express can auto-pause after 15m!<br>spring.datasource.hikari.minimum-idle=0<br>spring.datasource.hikari.maximum-pool-size=5<br>spring.datasource.hikari.idle-timeout=300000<br>spring.datasource.hikari.connection-timeout=30000</pre><h3>AlloyDB Omni — Hybrid Production &amp; Integration Testing</h3><p><a href="https://cloud.google.com/alloydb/omni"><strong>AlloyDB Omni</strong></a> is Google Cloud’s downloadable database designed to run <strong>production workloads outside Google Cloud</strong>. If regulations require strict on-premises data residency, or if your Java application runs on a factory floor, retail edge site, Red Hat OpenShift cluster, or another cloud provider (AWS or Azure), AlloyDB Omni offers :</p><ul><li>The exact same AlloyDB query planner, <strong>Columnar Engine</strong> for real-time HTAP analytics, <strong>ScaNN vector index</strong>, and <strong>AlloyDB AI</strong> query capabilities as cloud AlloyDB.</li><li>Deploy HA clusters with automated failover, backups, and read replicas on Kubernetes or OpenShift using the certified <strong>AlloyDB Omni Kubernetes Operator</strong>.</li><li><strong>Standard PostgreSQL JDBC Connectivity (</strong><strong>application-omni.properties)</strong> Because AlloyDB Omni runs on your own network rather than behind the Google Cloud AlloyDB Admin API, your Java application connects using standard org.postgresql:postgresql and HikariCP over TLS (no SocketFactory required):</li></ul><pre># src/main/resources/application-omni.properties (On-Prem / K8s / Multi-Cloud AlloyDB Omni)<br># Set OMNI_SSLMODE=prefer or disable when connecting to a local unencrypted Docker container<br>spring.datasource.url=jdbc:postgresql://${OMNI_HOST:localhost}:${OMNI_PORT:5432}/dvdrental?sslmode=${OMNI_SSLMODE:require}<br>spring.datasource.username=${OMNI_DB_USER:postgres}<br>spring.datasource.password=${OMNI_DB_PASSWORD}</pre><p>This means FilmRepository and FilmController remain 100% identical across application-express.properties, application-prod.properties, and application-omni.properties!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uoFm8ooQUiWDhB40JFlkw.png" /></figure><p>Since AlloyDB Omni is distributed as a standard OCI container image (google/alloydbomni), you can run fast and offline JUnit integration tests that exercise AlloyDB-specific features (e.g. Columnar Engine), something that would fail on a stock postgres:17 image.</p><p>Using Spring Boot&#39;s @ServiceConnection and <strong>Testcontainers </strong>(managed as Testcontainers 2.x in Spring Boot 4.0+), you can spin up an ephemeral google/alloydbomni container during mvn test with zero manual DynamicPropertySource wiring:</p><pre>&lt;!-- Test dependencies in pom.xml --&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>    &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;<br>    &lt;scope&gt;test&lt;/scope&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>    &lt;artifactId&gt;spring-boot-testcontainers&lt;/artifactId&gt;<br>    &lt;scope&gt;test&lt;/scope&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;org.testcontainers&lt;/groupId&gt;<br>    &lt;artifactId&gt;postgresql&lt;/artifactId&gt;<br>    &lt;scope&gt;test&lt;/scope&gt;<br>&lt;/dependency&gt;<br>&lt;dependency&gt;<br>    &lt;groupId&gt;org.testcontainers&lt;/groupId&gt;<br>    &lt;artifactId&gt;junit-jupiter&lt;/artifactId&gt;<br>    &lt;scope&gt;test&lt;/scope&gt;<br>&lt;/dependency&gt;</pre><p>Here’s a complete integration test that boots AlloyDB Omni, initializes the schema, tests FilmRepository RETURNING, and verifies that the AlloyDB Columnar Engine is active inside the container:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab289c29618bb74bd6a861302e9eda75/href">https://medium.com/media/ab289c29618bb74bd6a861302e9eda75/href</a></iframe><p>Make sure to check out the full <a href="https://docs.cloud.google.com/alloydb/omni/containers/current/docs/deploy-vm#access">AlloyDB Omni in Containers </a>documentation.</p><p>As you can see, you can build idiomatic Java data access layers across Spring Boot, Quarkus, and Micronaut, while leveraging <strong>AlloyDB Express</strong> for fast cloud prototyping and <strong>AlloyDB Omni</strong> for hybrid deployments and integration testing.</p><p>In Part 4, we will complete our AlloyDB deep dive by looking at <strong>Performance Tuning and Monitoring for Java Developers</strong>, covering how to size HikariCP pools, avoid common @Transactional traps, trace slow SQL queries from the JVM into AlloyDB Query Insights, and more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af298980f1be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/streamlining-alloydb-development-with-spring-boot-quarkus-micronaut-alloydb-express-and-alloydb-af298980f1be">Streamlining AlloyDB Development with Spring Boot, Quarkus, Micronaut, AlloyDB Express, and AlloyDB…</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AlloyDB Integration for Modern Java Apps — Connectivity and Auth]]></title>
            <link>https://medium.com/google-cloud/alloydb-integration-for-modern-java-apps-connectivity-and-auth-03a9be957477?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/03a9be957477</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[alloydb]]></category>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 06:56:01 GMT</pubDate>
            <atom:updated>2026-11-17T08:58:14.574Z</atom:updated>
            <content:encoded><![CDATA[<p><em>(this is part of a </em><a href="https://medium.com/google-cloud/a-modern-java-developers-guide-for-google-cloud-databases-22e6c8b2f8d3"><em>Java tour of Google Cloud Databases series</em></a><em>)</em></p><p><a href="https://cloud.google.com/products/alloydb">AlloyDB for PostgreSQL</a> is Google Cloud’s database for enterprise-grade workloads with full PostgreSQL compatibility and a cloud-native architecture. Connecting a Java application to AlloyDB is done through the <strong>AlloyDB Java Connector</strong>, a crucial component that goes beyond a standard JDBC driver.</p><h3>The AlloyDB Java Connector’s Magic</h3><p>The alloydb-jdbc-connector is a client library that functions as a smart socket factory for the standard PostgreSQL JDBC driver. It abstracts away the establishment of a secure database connection and takes care of :</p><ul><li><strong>mTLS 1.3 Encryption:</strong> automatic secure TLS 1.3 connection to the AlloyDB instance (no need to manage SSL/TLS certificates here).</li><li><strong>IAM-Based Authorization:</strong> as a better alternative to (static) database passwords, the connector uses IAM for authentication and ADC (<a href="https://docs.cloud.google.com/docs/authentication/provide-credentials-adc">Application Default Credentials</a>) to obtain a short-lived access token. To be more specific, the connector checks the principal role to make sure the principal can connect to the AlloyDB instance and then gives it the ability to use the same principal as a database user with IAM authentication.</li><li><strong>Dynamic IP Resolution:</strong> The connector communicates with the AlloyDB Admin API to fetch the current IP address (a Private IP, a Public IP, or a Private Service Connect) of the database instance, so you do not need to handle it explicitly, no hard-coding or environment variable needed. This also dynamically allowlists the source IP in case it’s used as a public IP. This makes events like failovers or maintenance easier to manage.</li></ul><blockquote><strong>NOTE on using the Java Connector </strong>rather than the<strong>Auth Proxy:</strong> for JVM applications, the Java Connector runs in-process as a JDBC SocketFactory, eliminating the need to deploy and manage a separate sidecar container. The standalone Auth Proxy is best for non-JVM tools, legacy apps where you cannot modify the JDBC classpath, or environments with strict GraalVM native-image constraints.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bpc86KZuPHoqzbK3CEeRQw.png" /></figure><h3>But first, some groundwork</h3><p>I’ll assume that you already have a project with an existing <strong>AlloyDB Cluster </strong>and primary Instance running in a specific region. If you don’t have that, check out the <a href="https://cloud.google.com/alloydb/docs/cluster-create">AlloyDB cluster creation guide</a> or head directly to the console’s <a href="https://console.cloud.google.com/alloydb/get-started">getting started section</a>. You’ll need the admin password, the roles/alloydb.admin role, some tables in the public schema (use <a href="https://neon.com/postgresql/postgresql-getting-started/postgresql-sample-database">DVD Rental</a> if you don’t have anything), and of course be able to reach the AlloyDB instance from your local machine (or from Cloud Shell).</p><p>I also strongly recommend that you install these in your favorite agent tool as you progress through the code and instructions of this series :</p><ul><li>the <a href="https://cloud.google.com/products/data-agent-kit">Data Agent Kit</a></li><li>the <a href="https://cloud.google.com/blog/topics/developers-practitioners/introducing-the-google-cloud-developer-plugin-for-ai-coding-agents">Developer Plugin for AI Coding Agents</a></li></ul><p>If you like learning from codelabs, try: <a href="https://codelabs.developers.google.com/connect-to-alloydb-on-cloudrun">Connect your application to AlloyDB data and deploy on Cloud Run</a>.</p><p>Let’s start with creating a Service Account, the identity your Java application will use:</p><pre>gcloud iam service-accounts create java-alloydb-connector \<br>    --display-name=&quot;Java Application DB Connector&quot;<br># locally you&#39;ll need to impersonate this account or use your own IAM user<br># on Cloud Run/GCE/GKE, attach this SA to the compute service/workload</pre><p>Then grant it the required IAM roles: both roles/alloydb.client (needed to request an ephemeral mTLS certificate and connect to the instance) and roles/serviceusage.serviceUsageConsumer (required for IAM database authentication):</p><pre>gcloud projects add-iam-policy-binding &lt;PROJECT_ID&gt; \<br>    --member=&quot;serviceAccount:java-alloydb-connector@&lt;PROJECT_ID&gt;.iam.gserviceaccount.com&quot; \<br>    --role=&quot;roles/alloydb.client&quot;<br><br>gcloud projects add-iam-policy-binding &lt;PROJECT_ID&gt; \<br>    --member=&quot;serviceAccount:java-alloydb-connector@&lt;PROJECT_ID&gt;.iam.gserviceaccount.com&quot; \<br>    --role=&quot;roles/serviceusage.serviceUsageConsumer&quot;</pre><p>Now enable IAM authentication on the instance to tell your AlloyDB instance to accept IAM tokens, not just passwords (this takes effect immediately, no instance restart required):</p><pre>gcloud alloydb instances update &lt;INSTANCE_ID&gt; \<br>    --cluster=&lt;CLUSTER_ID&gt; \<br>    --region=&lt;REGION&gt; \<br>    --database-flags=alloydb.iam_authentication=on</pre><p>Finally, register the IAM principal inside AlloyDB and grant it PostgreSQL table permissions. Notice how the .gserviceaccount.com suffix must be stripped for Service Accounts!</p><p>You can register the IAM user directly with gcloud (this automatically grants the internal alloydbiamuser role):</p><pre>gcloud alloydb users create &quot;java-alloydb-connector@&lt;PROJECT_ID&gt;.iam&quot; \<br>    --cluster=&lt;CLUSTER_ID&gt; \<br>    --region=&lt;REGION&gt; \<br>    --type=IAM_BASED</pre><p>Then log in to your database as an admin (e.g., postgres) and grant schema and table privileges (IAM users must be created via gcloud, Terraform, or the Console because AlloyDB blocks granting the internal alloydbiamuser role directly in SQL):</p><pre>-- Connect to your target database first<br>\c my_database<br><br>-- Grant permissions (IAM users are created with NO privileges by default)<br>GRANT CONNECT ON DATABASE &quot;my_database&quot; TO &quot;java-alloydb-connector@&lt;PROJECT_ID&gt;.iam&quot;;<br>GRANT USAGE ON SCHEMA public TO &quot;java-alloydb-connector@&lt;PROJECT_ID&gt;.iam&quot;;<br>GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO &quot;java-alloydb-connector@&lt;PROJECT_ID&gt;.iam&quot;;</pre><p>Make sure to use double quotes in SQL as they’re required because of the @ and dots.</p><h3>How-To: Connecting to AlloyDB with a JDBC or Spring Boot app</h3><p>Configuring HikariCP to work with the AlloyDB Java Connector requires specifying key properties that instruct the standard PostgreSQL driver to delegate socket creation to the connector. This requires Java 11 or higher (but I hope you’re using Java 17, 21 LTS, or higher!).</p><h4>“Plain” JDBC</h4><p>First, dependencies (pom.xml):</p><pre>&lt;dependencies&gt;<br>    &lt;dependency&gt;<br>        &lt;groupId&gt;org.postgresql&lt;/groupId&gt;<br>        &lt;artifactId&gt;postgresql&lt;/artifactId&gt;<br>        &lt;version&gt;42.7.14&lt;/version&gt;<br>    &lt;/dependency&gt;<br><br>    &lt;dependency&gt;<br>        &lt;groupId&gt;com.google.cloud.alloydb&lt;/groupId&gt;<br>        &lt;artifactId&gt;alloydb-jdbc-connector&lt;/artifactId&gt;<br>        &lt;version&gt;1.4.0&lt;/version&gt;<br>    &lt;/dependency&gt;<br><br>    &lt;dependency&gt;<br>        &lt;groupId&gt;com.zaxxer&lt;/groupId&gt;<br>        &lt;artifactId&gt;HikariCP&lt;/artifactId&gt;<br>        &lt;version&gt;7.1.0&lt;/version&gt;<br>    &lt;/dependency&gt;<br>&lt;/dependencies&gt;</pre><p>Here’s a complete sample that configures HikariCP with the AlloyDB SocketFactory and queries the film table from the DVD Rental schema to verify both IAM authentication and table privileges:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0195bd45ec4127ccf0a1a907901c88b7/href">https://medium.com/media/0195bd45ec4127ccf0a1a907901c88b7/href</a></iframe><blockquote>Notice that the JDBC URL jdbc:postgresql:///%s contains no host information. This is a key indicator that the SocketFactory is in control, as it is responsible for finding and connecting to the correct instance IP address.</blockquote><p>For connectivity troubleshooting, check out the bottom of this post and make sure to read the <a href="https://cloud.google.com/alloydb/docs/connection-overview">AlloyDB Connection Overview</a>.</p><h4>Using Spring Boot</h4><p>Spring Boot simplifies database connectivity by automatically configuring a HikariCP connection pool based on your properties, allowing you to integrate the AlloyDB Connector with almost no manual coding.</p><p>You only need to add the AlloyDB Connector to your existing Spring Boot project. Spring Boot’s spring-boot-starter-data-jpa or spring-boot-starter-jdbc already includes HikariCP (just ensure org.postgresql:postgresql is on the classpath):</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;com.google.cloud.alloydb&lt;/groupId&gt;<br>    &lt;artifactId&gt;alloydb-jdbc-connector&lt;/artifactId&gt;<br>    &lt;version&gt;1.4.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>Using application.properties is the standard way to define your connection string within your project:</p><pre># No host or port is needed; the SocketFactory handles it.<br>spring.datasource.url=jdbc:postgresql:///my_database?socketFactory=com.google.cloud.alloydb.SocketFactory&amp;alloydbInstanceName=projects/&lt;PROJECT_ID&gt;/locations/&lt;REGION&gt;/clusters/&lt;CLUSTER_ID&gt;/instances/&lt;INSTANCE_ID&gt;&amp;alloydbEnableIAMAuth=true<br>spring.datasource.username=java-alloydb-connector@&lt;PROJECT_ID&gt;.iam<br># No password required when alloydbEnableIAMAuth is true</pre><p><strong>Tips</strong></p><p>If this long JDBC URL isn’t your thing, you can use the com.google.cloud:spring-cloud-gcp-starter-alloydb dependency, which lets you configure spring.cloud.gcp.alloydb.database-name, spring.cloud.gcp.alloydb.instance-connection-uri, and spring.cloud.gcp.alloydb.iam-auth-enabled=true.</p><p>If you want to keep your code clean of specific project IDs or instance names, you can leave your application.properties empty and set these environment variables in your deployment environment:</p><p><strong>SPRING_DATASOURCE_URL</strong>=jdbc:postgresql:///my_database?socketFactory=com.google.cloud.alloydb.SocketFactory&amp;alloydbInstanceName=projects/my-project/locations/us-central1/clusters/my-cluster/instances/my-instance&amp;alloydbEnableIAMAuth=true</p><p><strong>SPRING_DATASOURCE_USERNAME</strong>=java-alloydb-connector@my-project.iam</p><p><em>(If your organization still requires static database passwords instead of IAM authentication, do not hard-code them. Instead use </em><a href="https://cloud.google.com/security/products/secret-manager"><em>Google Cloud Secret Manager</em></a><em> to inject those dynamically using Spring Cloud GCP’s </em><em>spring.config.import=sm:// and </em><em>spring.datasource.password=${sm://alloydb-password}).</em></p><h4>Passwordless Auth in Action</h4><p>When Spring Boot starts, it detects the jdbc:postgresql prefix in the URL and initializes the PostgreSQL driver. Because the URL contains the socketFactory parameter, the driver delegates the actual network connection to the AlloyDB Connector. The connector then uses <strong>Application Default Credentials (ADC)</strong> to authenticate. This means that if your app is running on Cloud Run with the correct Service Account attached, the connection happens automatically and securely without any passwords in your config files.</p><p>This short app will help you test the connectivity to the database:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85a546fd814c5bf39ae9c4980e9edbeb/href">https://medium.com/media/85a546fd814c5bf39ae9c4980e9edbeb/href</a></iframe><p>Here’s how to run it:</p><pre>export SPRING_DATASOURCE_URL=&quot;jdbc:postgresql:///my_database?socketFactory=com.google.cloud.alloydb.SocketFactory&amp;alloydbInstanceName=projects/&lt;PROJECT_ID&gt;/locations/&lt;REGION&gt;/clusters/&lt;CLUSTER_ID&gt;/instances/&lt;INSTANCE_ID&gt;&amp;alloydbEnableIAMAuth=true&quot;<br>export SPRING_DATASOURCE_USERNAME=&quot;java-alloydb-connector@&lt;PROJECT_ID&gt;.iam&quot;<br><br>mvn spring-boot:run</pre><h4>Using Micronaut or Quarkus?</h4><p>Whether you choose <strong>Micronaut</strong> or <strong>Quarkus</strong>, the underlying principles for connecting to AlloyDB remain the same.</p><p>Because the AlloyDB Java Connector operates at the <strong>JDBC driver level</strong>, the framework simply acts as a wrapper for the connection pool. You still include the same alloydb-jdbc-connector dependency, and the “magic” continues to happen through the SocketFactory and alloydbInstanceName properties:</p><p><strong>Quarkus (</strong>application.properties<strong> using Quarkus’s Agroal pool):</strong></p><pre>quarkus.datasource.db-kind=postgresql<br>quarkus.datasource.username=java-alloydb-connector@&lt;PROJECT_ID&gt;.iam<br>quarkus.datasource.jdbc.url=jdbc:postgresql:///my_database<br>quarkus.datasource.jdbc.additional-jdbc-properties.socketFactory=com.google.cloud.alloydb.SocketFactory<br>quarkus.datasource.jdbc.additional-jdbc-properties.alloydbInstanceName=projects/&lt;PROJECT_ID&gt;/locations/&lt;REGION&gt;/clusters/&lt;CLUSTER_ID&gt;/instances/&lt;INSTANCE_ID&gt;<br>quarkus.datasource.jdbc.additional-jdbc-properties.alloydbEnableIAMAuth=true</pre><p><strong>Micronaut (</strong>application.yml<strong> using HikariCP):</strong></p><pre>datasources:<br>  default:<br>    url: jdbc:postgresql:///my_database?socketFactory=com.google.cloud.alloydb.SocketFactory&amp;alloydbInstanceName=projects/&lt;PROJECT_ID&gt;/locations/&lt;REGION&gt;/clusters/&lt;CLUSTER_ID&gt;/instances/&lt;INSTANCE_ID&gt;&amp;alloydbEnableIAMAuth=true<br>    username: java-alloydb-connector@&lt;PROJECT_ID&gt;.iam<br>    driver-class-name: org.postgresql.Driver</pre><p>Just as with Spring, these frameworks delegate the mTLS encryption, dynamic IP resolution, and IAM-based authentication to the connector library. Moving between cloud-native frameworks doesn’t change how you secure your database traffic or manage identities: Application Default Credentials (ADC) is used to achieve a passwordless, secure connection to your AlloyDB instance.</p><h4>A note on the AlloyDB Connector in GraalVM Native Mode</h4><blockquote>When compiling your application into a GraalVM Native Image (whether with Spring Boot, Micronaut, or Quarkus), there is one specific challenge: <strong>Reflection and SSL.</strong></blockquote><blockquote>The PostgreSQL JDBC driver instantiates com.google.cloud.alloydb.SocketFactory dynamically via reflection. To prevent GraalVM’s static analysis from stripping the class during native compilation, register it for reflection:</blockquote><blockquote><strong>Spring Boot 3+: </strong>Add @RegisterReflectionForBinding(com.google.cloud.alloydb.SocketFactory.class) to your main application or @Configuration class.</blockquote><blockquote><strong>Quarkus:</strong> Add @RegisterForReflection(targets = com.google.cloud.alloydb.SocketFactory.class) to a CDI bean or configuration class.</blockquote><h3>Troubleshooting</h3><p>A common point of confusion and failure is the format of the username. The format differs for user accounts, groups, and service accounts:</p><ul><li><strong>IAM User Account (or IAM Group):</strong> Use the full email address (e.g., db-user@example.com or all-devs-group@example.com).</li><li><strong>Service Account:</strong> Use the email address, but <strong>strip the </strong><strong>.gserviceaccount.com suffix</strong> (e.g., for my-sa@my-project.iam.gserviceaccount.com, the database username is my-sa@my-project.iam).</li></ul><p>If you get a FATAL: password authentication failed for user or AlloyDB IAM authentication failed error, check these common pitfalls:</p><ol><li><strong>The Suffix:</strong> Did you accidentally include .gserviceaccount.com in the database username or CREATE USER command? (remove it).</li><li><strong>The </strong><strong>alloydbiamuser Role:</strong> Did you create the user via gcloud alloydb users create — type=IAM_BASED (or Console/Terraform)? Creating a user with raw SQL CREATE USER will not work for IAM authentication because AlloyDB restricts GRANT alloydbiamuser to the control plane.</li><li><strong>The Environment &amp; Local Impersonation:</strong> Is the environment where the Java code is running actually authenticated as the target principal<br>=&gt; <strong>Cloud Run:</strong> Ensure the Service Account is attached to the Cloud Run service definition and has both roles/alloydb.client and roles/serviceusage.serviceUsageConsumer.<br>=&gt; <strong>Locally (connecting as a Service Account):</strong> Impersonate the Service Account so ADC mints tokens for that SA instead of your personal email:</li></ol><pre>gcloud auth application-default login \<br>    --impersonate-service-account=java-alloydb-connector@&lt;PROJECT_ID&gt;.iam.gserviceaccount.com</pre><p>4. <strong>The Delay:</strong> IAM policy changes can take 60–120 seconds to propagate. If you just created the Service Account or role binding, wait a minute and retry.</p><p>In Part 3, we’ll continue our Java tour and explore <a href="https://docs.cloud.google.com/alloydb/docs/express-overview">AlloyDB Express</a> with a Spring Boot app and consider use-cases for <a href="https://cloud.google.com/alloydb/omni">AlloyDB Omni</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03a9be957477" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/alloydb-integration-for-modern-java-apps-connectivity-and-auth-03a9be957477">AlloyDB Integration for Modern Java Apps — Connectivity and Auth</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Modern Java Developer’s Guide for Google Cloud Databases]]></title>
            <link>https://medium.com/google-cloud/a-modern-java-developers-guide-for-google-cloud-databases-22e6c8b2f8d3?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/22e6c8b2f8d3</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[google-cloud]]></category>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Mon, 09 Nov 2026 11:16:05 GMT</pubDate>
            <atom:updated>2026-11-20T18:01:41.501Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s the work-in-progress list of posts in this series:</p><ul><li>A Modern Java Developer’s Guide for Google Cloud Databases <em>(this one)</em></li><li><a href="https://medium.com/google-cloud/alloydb-integration-for-modern-java-apps-connectivity-and-auth-03a9be957477">AlloyDB Integration for Modern Java Apps — Connectivity and Auth</a></li><li><a href="http://🐳">Streamlining AlloyDB Development with Spring Boot, Quarkus, Micronaut, AlloyDB Express, and AlloyDB Omni</a></li><li>AlloyDB Performance Tuning and Monitoring for Java Developers <em>(coming soon)</em></li></ul><p>As a Java developer I’ve learned to rely on JDBC, on the efficiency of connection pools, and on my favorite ORM or frameworks (Spring, Quarkus, or Micronaut). These are stable, predictable technologies that I can count on for building enterprise apps.</p><p>This short intro and upcoming detailed posts are meant to serve as a guide for <strong>Java developers in their Google Cloud Database journey</strong>, including when moving from conventional on-premises databases to a cloud-native approach. We’ll cover configuration, security, performance, monitoring, and overall developer experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GVHaqonPLX8YYHTBuLAbBw.png" /></figure><p>No need to abandon your stack to use Google Cloud databases: all of them plug right into standard JDBC, HikariCP, and your favorite frameworks. Whether you’re relying on the AlloyDB Java Connector for automated mTLS or designing schemas for globally distributed Spanner, this series will help you pick and configure the right tool for your workload.</p><p><strong>AlloyDB</strong> gives you full PostgreSQL wire compatibility backed by a Google-engineered storage layer and a 99.99% SLA (including maintenance) for demanding transactional and AI workloads. Java developers typically use the AlloyDB Java Connector with standard JDBC and HikariCP.</p><p><strong>Cloud SQL</strong> removes operational toil when running MySQL, PostgreSQL, and SQL Server databases with read pools, data caching, and near-zero downtime maintenance. Connecting from Java is done using the Cloud SQL Java Connector or using Auth Proxy alongside standard JDBC and Spring Boot.</p><p><strong>Spanner</strong> is a globally distributed database that pairs horizontal scalability, strong consistency, and a 99.999% SLA with multi-model support: relational, graph, vector, and key-value. You can wire it into Java applications using either the Spanner JDBC Driver, the native Java Client Library, Spring Data Spanner, or PGAdapter with JPA.</p><p><strong>Firestore</strong> is a serverless NoSQL document database offering a Native and a MongoDB-compatible mode. It was designed for schema flexibility, real-time sync, automatic scaling, and up to a 5 nine SLA. Java devs will typically use the Firestore Java Client Library, Spring Cloud GCP, or even the standard MongoDB Java Driver.</p><p>Here’s a <a href="https://gist.github.com/alexismp/2976cf53d946a6bc2175957d4a430de2">tabular presentation</a> summarizing all of this knowledge for Java developers and architects.</p><p>Upcoming Java-focused blogs here will cover :</p><ul><li><strong>AlloyDB for PostgreSQL</strong> (including <a href="https://cloud.google.com/alloydb/omni">AlloyDB Omni</a> for local and edge use-cases, and <a href="https://cloud.google.com/blog/products/databases/introducing-alloydb-express-for-rapid-testing-and-prototyping">AlloyDB Express</a> for rapid testing and prototyping)</li><li><strong>Cloud SQL</strong> (focusing on <strong>MySQL</strong> though the same connector patterns apply to PostgreSQL and SQL Server)</li><li><strong>Spanner</strong> and <strong>Firestore</strong> (focusing on their native Google Cloud APIs).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QsNZdgQuytll33iIh6LRA.png" /></figure><p>We’ll use <strong>Spring Boot</strong> as the primary framework but also show how these building blocks apply to <strong>Quarkus and Micronaut</strong> developers.</p><p><strong>AlloyDB AI</strong> and the <strong>MCP Toolbox for Databases</strong> (featuring the newly released <a href="https://github.com/googleapis/mcp-toolbox-sdk-java"><strong>MCP Toolbox Java SDK v1.0</strong></a>) are also on the menu, all from a Java developer’s perspective. Onwards!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22e6c8b2f8d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/a-modern-java-developers-guide-for-google-cloud-databases-22e6c8b2f8d3">A Modern Java Developer’s Guide for Google Cloud Databases</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unpacking Antigravity 2.0 FinOps]]></title>
            <link>https://medium.com/google-cloud/unpacking-antigravity-2-0-finops-dd72bfcebac2?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd72bfcebac2</guid>
            <category><![CDATA[google-antigravity]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[ai-coding]]></category>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 17:32:44 GMT</pubDate>
            <atom:updated>2026-10-30T17:32:58.214Z</atom:updated>
            <content:encoded><![CDATA[<p>Antigravity (in its 2.0 or CLI version) is an excellent standalone product, but what makes it a enterprise-ready is its set of FinOps features which we’ll discuss here.</p><p>In this <a href="https://medium.com/google-cloud/unlock-antigravity-2-0-logins-plans-cost-and-quota-9165725685be">previous post</a>, we looked at how authenticating with a business account unlocks project-backed quotas with the <strong>Agent Platform plan</strong>, where you enjoy high rate limits and <strong>pay-per-use</strong> billing.</p><p>Antigravity is also available via Gemini Enterprise (seat-based) subscriptions.</p><p>Once you or your team have connected Antigravity 2.0 to an invoiced Google Cloud project, a number of enterprise FinOps controls come in handy to put real guardrails around agent spend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*itRp8oOpFvmm4DQjwVG-7w.png" /></figure><h3>💰 Controlling Spend: Pay-As-You-Go vs. Per-Seat Licensing</h3><p>Autonomous coding agents consume inference in bursts with multi-turn refactoring, subagent delegation, context management, and execution loops. How you manage the risk of runaway costs vs. mid-task interruptions depends on which billing model you use.</p><p>Here’s how <a href="https://cloud.google.com/blog/products/ai-machine-learning/expanding-google-antigravity-for-enterprise-customers">recently-released</a> FinOps features apply across Agent Platform and Gemini Enterprise licensing:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/137968037537b9137518d66402e33738/href">https://medium.com/media/137968037537b9137518d66402e33738/href</a></iframe><p>Because both paths run on Google Cloud billing infrastructure, you can combine subscription governance with Cloud Billing enforcement if you understand a few important operational nuances.</p><h3>🛑 Budgets, Spend Caps, and the “Noisy Neighbor” Problem</h3><p>This <a href="https://medium.com/google-cloud/the-accelerating-bill-kill-switch-google-cloud-cost-control-for-builders-9b1e681000fb">earlier post</a> discussed budget alerts, and since then Google Cloud has introduced native <a href="https://docs.cloud.google.com/billing/docs/how-to/budgets-spend-caps">spend cap budgets</a> that automatically pause API traffic (rather than just sending an email) when your estimated monthly spend hits 100%.</p><p>Why is project-level isolation still so important? While Gemini Enterprise has a <em>“Limit any single-user’s quota”</em> multiplier, <strong>that single-user limit does not apply to AI developer tools like Antigravity</strong>. Because both pooled weekly credits and monthly spend caps are enforced at the project level, a single developer running a massive overnight repository refactoring or autonomous loop can drain the shared pool or hit the monthly spend cap, thus freezing Antigravity operations for the entire project.</p><p>Putting active engineering teams into dedicated GCP projects is the most reliable way to enforce independent financial boundaries.</p><p>When configuring <a href="https://docs.cloud.google.com/billing/docs/how-to/budgets-spend-caps">Cloud Billing spend caps</a>, keep three operational details in mind:</p><ul><li>Spend cap budgets must target a single project and a single service : select <strong>Gemini Enterprise Agent Platform (formerly Vertex AI) (aiplatform.googleapis.com)</strong>.</li><li>Spend caps trigger using <strong><em>gross list-price estimates</em></strong> (excluding discounts or credits) for faster enforcement, but stopping traffic takes a few minutes and in-flight agent requests run to completion. So you should probably set your cap slightly below your absolute ceiling.</li><li>If a project hits its cap mid-month and an admin clicks <strong>Lift spend cap</strong> <em>without</em> increasing the budget target amount, the cap <strong>will not trigger again for the remainder of the month</strong>.</li></ul><h3>🔄 Wasted Quota, Overages, and Third-Party Models</h3><p>If you are on pure Pay-As-You-Go, there is no concept of a seat allowance or “wasted quota” as you pay strictly for the tokens your agents consume.</p><p>On <strong>Gemini Enterprise seat licenses</strong>, each seat includes <strong>$10/month (Standard)</strong> or <strong>$15/month (Plus)</strong> in AI developer tool credits. Under the hood, Gemini Enterprise divides that monthly amount by four and enforces it as a <strong>rolling 7-day shared pool</strong> ($2.50/week/seat on Standard, $3.75/week/seat on Plus), starting from the first prompt sent in the project and location. Unused weekly quota does not roll over, and Standard and Plus pools are tracked separately.</p><p>Because intensive agentic coding can burn through a few dollars of included weekly quota quickly, turning on <strong>Pay-as-you-go usage above quota</strong> (formerly called <em>overages</em> under Gemini Enterprise &gt; Usage &amp; Spending) paired with a <strong>Monthly Spend Cap</strong> is probably the right thing to do: your team consumes every prepaid dollar first, transitions smoothly to metered rates without mid-task interruptions, and stays protected by a hard monthly ceiling.</p><p><strong>What about Claude models?</strong> If you (as an administrator) opt into <strong>Anthropic Claude Sonnet 5.5 or Claude Opus 5.5</strong> in Antigravity, be aware of three FinOps implications:</p><ol><li><strong>100% metered from token one:</strong> Third-party models do not draw from your included $10/$15 Gemini seat credit pool. They bill at pay-as-you-go token rates and require pay-as-you-go usage above quota to remain enabled.</li><li><strong>Hybrid execution:</strong> Even when a developer selects Claude 5.5 for primary reasoning and coding, Antigravity runs lightweight Gemini models in the background for context management and summarization, thus consuming a small amount of first-party quota/tokens alongside Claude.</li><li><strong>Thinking effort is a major cost lever:</strong> Claude 5.5 offers low, medium (the default), high, and max thinking levels in the model picker. Encouraging developers to reserve high and max effort for hard architectural or debugging turns significantly reduces token burn.</li></ol><h3>📌 Summary</h3><p>You can get both agent velocity and enterprise governance when pairing the right controls with your billing structure:</p><ul><li>On <strong>Pay-As-You-Go</strong>, enforce <strong>hard monthly spend caps</strong> on aiplatform.googleapis.com and use <strong>per-team GCP projects</strong> to contain blast radius.</li><li>On <strong>Per-Seat Licenses</strong>, combine <strong>weekly pooled quotas</strong> and <strong>pay-as-you-go usage above quota</strong> with a <strong>monthly spend cap</strong> so teams avoid both mid-task stoppages and uncapped overage or third-party model bills.</li></ul><p>Predicting usage patterns for autonomous coding agents is hard, so use the <a href="https://docs.cloud.google.com/gemini/enterprise/docs/ai-developer-tools-metrics">AI developer tools metrics</a> dashboard (Preview) to monitor project-level adoption, daily token consumption, API quota errors, and tool-call acceptance rates and pair it with per-team projects or Cloud Audit Logs when you need team- or user-level attribution.</p><p>Reference Documentation:</p><ul><li><a href="https://antigravity.google/docs/enterprise/">Antigravity Enterprise Administration Guide</a></li><li><a href="https://cloud.google.com/docs/">Google Cloud AI Governance and Cost Controls</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd72bfcebac2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/unpacking-antigravity-2-0-finops-dd72bfcebac2">Unpacking Antigravity 2.0 FinOps</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why “Plan Mode” is just scoping. Dont forget discovery!]]></title>
            <link>https://medium.com/google-cloud/why-plan-mode-is-just-scoping-dont-forget-discovery-a9633382b0df?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9633382b0df</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 13:25:14 GMT</pubDate>
            <atom:updated>2026-10-27T13:25:33.999Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://antigravity.google/product/antigravity-cli/"><strong>Antigravity CLI (agy)</strong></a><strong> </strong>has two slash commands specifically to stop the agent from guessing before writing code: <strong>/plan</strong> and <strong>/grill-me</strong>. While they sound similar, they solve two very different phases of software design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlhZ0sd-_TmXzD2DS56FSg.png" /></figure><p>Here is how I tend to use each.</p><p>I think of <strong>/plan</strong> as asking a senior engineer to write a technical design doc:</p><blockquote><strong>/plan</strong> Refactor the webhook processor to use a dead-letter queue on retry exhaustion</blockquote><p>When you run <strong>/plan</strong>, the agent researches your codebase, maps out dependencies, and produces a formal <strong>Implementation Plan artifact</strong>. It breaks down:</p><ul><li>Every file it intends to create, modify, or delete</li><li>Proposed code diffs and architectural diagrams</li><li>How it plans to verify and test the changes</li></ul><p><strong>So does </strong><strong>/plan ask any questions?</strong> Yes, it does, but only when it hits a blocker or clear ambiguity. If your request is reasonably clear, <strong>/plan</strong> will infer patterns from your existing codebase, make sensible engineering choices, and highlight any assumptions in an <strong>Open Questions</strong> or <strong>User Review Required</strong> section of the plan. You thenreview the blueprint, request tweaks if needed, and approve it to execute.</p><p>On the other hand <strong>/grill-me</strong> shines when I <em>don’t</em> have all the requirements figured out yet:</p><blockquote><strong>/grill-me</strong> Add per-user rate limiting to our public API</blockquote><p>Instead of rushing to draft a blueprint and filling in the blanks itself, <strong>/grill-me</strong> puts the agent into an interactive, <a href="https://en.wikipedia.org/wiki/Socratic_questioning">Socratic</a> Q&amp;A mode.</p><p>First, it silently reads your codebase so it doesn’t waste your time asking questions the code already answers. Then, it cross-examines your idea using interactive multiple-choice menus right, typically with a recommended default and a custom write-in option:</p><ol><li><em>Should rate limits be enforced per API key, per user ID, or per IP?</em></li><li><em>When Redis is unreachable, should the limiter fail-open or fail-closed?</em></li><li><em>Do we need Retry-After headers on 429 Too Many Requests responses?</em></li></ol><p>Each answer shapes the next question until every edge case, failure mode, or product tradeoff are locked down.</p><p>This is great for fuzzy ideas, greenfield features, or complex domain logic where you want the agent to poke holes in your requirements before a single line of spec or code is written.</p><h3>Quick Decision Guide</h3><p>If you are thinking… “<strong><em>I know what I want, </em></strong><em>show me which files you’ll touch and how you’ll test it before writing code.</em>” then use <strong>/plan</strong>.</p><p>If it’s rather “<strong><em>I have a rough idea</em></strong><em>, but I want to make sure I haven’t missed any edge cases or architectural traps.</em>” then start with <strong>/grill-me.</strong></p><h3>Chain Them Together</h3><p>You don’t have to choose just one! For high-stakes work, the ultimate workflow in agy can involve a two-step combo:</p><ol><li><strong>Start with </strong><strong>/grill-me</strong> to stress-test your idea and flush out all the hidden edge cases through a fast, interactive terminal interview.</li><li><strong>Follow up with </strong><strong>/plan</strong> to turn those battle-tested requirements into a concrete, file-by-file implementation blueprint.</li></ol><p>By separating <strong>discovery (</strong><strong>/grill-me)</strong> from <strong>scoping (</strong><strong>/plan)</strong> and <strong>execution</strong>, you’re likely to spend less time reverting AI decisions and more time shipping code that actually fits your architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9633382b0df" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/why-plan-mode-is-just-scoping-dont-forget-discovery-a9633382b0df">Why “Plan Mode” is just scoping. Dont forget discovery!</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Python to Rust, Go, to… Java? Steering Your AI Coding Agent Through Architecture Trade-Offs]]></title>
            <link>https://medium.com/google-cloud/from-python-to-rust-go-to-java-steering-your-ai-coding-agent-through-architecture-trade-offs-ca4eeb5deafb?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca4eeb5deafb</guid>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 12:40:13 GMT</pubDate>
            <atom:updated>2026-10-26T12:40:31.905Z</atom:updated>
            <content:encoded><![CDATA[<p>When you pair-program with an autonomous AI coding agent, something magical happens: you go from an idea to a deployed, production-grade cloud application in an afternoon. But something else happens, too. If you don’t actively steer your agent’s architectural compass, it will happily ride the defaults of its training data or jump onto the latest Hacker News hype train.</p><p>Here is the story of building <strong>Akkord</strong>, an AI-powered sheet music harmonizer and guitar arranger running on Google Cloud, and what happened when I challenged my coding agent to rethink the stack across <strong>Python</strong>, <strong>Rust</strong>, <strong>Go</strong>, and <strong>Modern Java (JDK 21/25)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LyGrd9D_ZmiyBJEVfV_qEg.png" /></figure><h3>Akkord: Computer Vision Meets Musical Counterpoint</h3><p>Musicians, especially guitarists, frequently run into two problems with PDF sheet music:</p><ol><li><strong>Bare scores with no chords:</strong> You have a classical or folk melody on a 5-line staff, and you want playable guitar chords and a tasteful bass line added directly above the staves.</li><li><strong>Scores with questionable chords:</strong> You download a lead sheet where every measure just pounds the root note in the bass (Am -&gt; Dm -&gt; E -&gt; Am), doubling the melody note in parallel octaves and ignoring harmonic counterpoint.</li></ol><p><strong>Akkord</strong> automates both workflows end-to-end:</p><ol><li><strong>Pixel-Level Staff &amp; TAB Geometry Detection:</strong> It rasterizes each PDF page and scans horizontal ink-density slices (accounting for tilted scans and stripping outer eighth/sixteenth-note beams) to distinguish <strong>5-line musical staves</strong> from <strong>6-line guitar TABs</strong>, computing exact bounding boxes (S1..Sn) in PDF points.</li><li><strong>Visual Rulers for Multimodal AI Grounding:</strong> Instead of asking an LLM to guess (x, y) coordinates blindly, Akkord generates a <strong>Guide Image</strong> for every page with red vertical X-coordinate rulers (40pt..560pt) and color-coded translucent bands over each detected staff system, plus extracted vector text tokens (re-joining spaced chord tokens like G m into Gm).</li><li><strong>Multimodal Harmonic &amp; Counterpoint Analysis:</strong> It sends the clean score, the coordinate guide image, and the extracted tokens to <strong>Gemini (</strong><strong>gemini-4-argon / </strong><strong>gemini-3.8-flash)</strong> with strict musical rules:</li></ol><ul><li><em>Avoid systematic root-position monotony and melody doubling: propose slash chords (</em><em>Am/G, Dm/F, E7/G#) using contrary motion and walking-bass lines.</em></li><li><em>Never confuse a 3-sharp guitar score in A Major with F# Minor just because the guitar reads an octave higher and uses low ledger lines (</em><em>E2, F#2, G#2)!</em></li></ul><ol><li><strong>Collision-Free Vector PDF Overlay:</strong> Using a <strong>2pt ink-density grid</strong> and a <strong>spiral low-ink search</strong>, Akkord places vector chord pills, uniform-sized chord corrections with superscript footnote numbers (G → G7/B ¹), 6-string fretboard diagrams, and an appended harmonic report page, without drawing over a notehead, lyric, or tie.</li><li><strong>Cloud-Native Batch Pipeline:</strong> Users sign in with Google OAuth 2.0, pick a Google Drive folder (or drop PDFs), and process batches asynchronously via <strong>Cloud Run</strong>, <strong>Cloud Tasks</strong>, <strong>Cloud Firestore</strong>, and <strong>Cloud Storage</strong>, complete with a 25-PDF/day quota, automatic next-day deferral, and an 18:00 daily usage &amp; token-cost digest email.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pKib0rboIQWGeKZ2.png" /></figure><h3>How the Agent Harness Led Me to 100% Python</h3><p>When I started building Akkord inside my AI agent harness with no particular language or framework SKILLS installed, I didn’t specify a programming language. I focused entirely on the domain: “<em>Read music sheets from Google Drive, analyze the harmony with Gemini, and write chords onto the PDF”. </em>The agent reached for <strong>Python 3.12</strong>:</p><ul><li><strong>Web &amp; APIs:</strong> FastAPI + Uvicorn</li><li><strong>PDF &amp; Image Processing:</strong> PyMuPDF (fitz) + Pillow + ReportLab</li><li><strong>AI &amp; Cloud:</strong> google-genai SDK + direct REST calls to Firestore, Cloud Storage, Cloud Tasks, and Drive API v3</li></ul><h3>Why the Agent Chose Python (And Why It Works Just Fine!)</h3><p>AI coding agents love Python for rapid iterative prototyping. When I asked the agent to tweak the staff-line clustering algorithm so outer beams wouldn’t look like a 6th staff line, or to adjust the spiral ink-avoidance penalty inside pdf_annotator.py, the edit-test loop just took two seconds.</p><p>And honestly? <strong>The Python version on Cloud Run works great and I was able to deliver the entire app in less than than 24h.</strong> Because the main latency in Akkord is the multimodal Gemini call (typically <strong>4 to 12 seconds</strong> per score), Python’s ~350 ms of local PDF pixel scanning and vector drawing barely matters on a single file.</p><p>Still, as a developer, you look at nested Python for loops iterating over millions of grayscale pixels in pdf_layout.py and pdf_annotator.py, plus a ~320 MB container memory footprint, and you start thinking: <em>Surely, I can do better!</em></p><h3>“Rewrite It for Speed!” — The Trendy 100% Rust Reflex</h3><p>Curious, I gave the agent a classic developer prompt:</p><p><em>“If I were to rewrite everything in another more efficient language with faster execution, what should it be?”</em></p><p>If you ask an LLM in 2026 for “maximum efficiency and faster execution,” its first instinct is almost always <strong>Rust</strong> (Axum + Tokio + image + pdf-writer).</p><p>To be fair, Rust makes the pixel-scanning loops in pdf_layout.py and the spiral ink-collision search in pdf_annotator.py <strong>15x to 25x faster</strong>, compiling them down to SIMD-vectorized machine code with zero garbage collection pauses and a tiny ~25 MB RAM footprint.</p><p><strong>The catch?</strong> Writing OAuth 2.0 session management, multipart Google Drive uploads, dynamically nested Cloud Firestore REST JSON envelopes, and HTML email builders in pure Rust means fighting borrow-checker lifetimes on deeply nested JSON trees, all for code that spends 99.9% of its life waiting on network I/O.</p><h3>Splitting the Brain — The Go + Rust Polyglot Architecture</h3><p>So I refined my prompt:</p><p><em>“Consider writing different parts in different languages if it makes sense.”</em></p><p>Immediately, the agent pivoted from a monolithic rewrite to a <strong>Polyglot Architecture</strong> that splits the system along its true hardware boundary: <br><strong>I/O-bound Cloud Orchestration</strong> vs. <strong>CPU-bound Pixel &amp; Vector Geometry</strong>.</p><h4>Part 1: Go (cmd/akkord, internal/…) for the Cloud Server &amp; Orchestrator</h4><ul><li>Using 100% Go standard library (net/http, compress/zlib, crypto/hmac, archive/zip), Go handles Cloud Run cold starts in <strong>&lt;80 ms</strong>, manages goroutine worker pools and SSE streaming effortlessly, and speaks REST JSON to Gemini API, Firestore, GCS, and Google Drive with clean, readable structs.</li></ul><h4>Part 2: Rust (akkord-pdf-engine) for the Native PDF Vision &amp; Vector Engine</h4><ul><li>Invoked by Go via a zero-overhead JSON stdin/stdout bridge, the native Rust binary uses rayon data parallelism, image, imageproc, ab_glyph, and lopdf to rasterize pages, detect 5-line staves vs. 6-line TABs, compute the 2pt ink grid, and inject raw PDF content streams (BT/ET, Bézier curves c, vector rectangles re) in an estimated <strong>~25–40 ms per page!</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0IoOsWdvG1DMefhaRAJdvA.png" /></figure><h3>Nudging the Agent Toward Modern Java (JDK 21/25 LTS)</h3><p>The Go + Rust polyglot architecture is awesome, if your team is happy maintaining both a Cargo.toml and a go.mod in the same Dockerfile.</p><p>But what if you work in an organization where the platform, security, observability, and engineering teams are standardized on the <strong>JVM</strong>?<br>Many LLMs still carry an outdated mental model of Java from the Java 8 era (remember heavyweight application servers, thread-per-request exhaustion, slow startup?).</p><p>When you nudge the agent to evaluate <strong>Modern Java (Java 21 / Java 25 LTS)</strong> for the exact same workload, the technical picture changes dramatically:</p><ol><li><strong>Project Loom (Virtual Threads — JEP 444):</strong> Just like Go’s goroutines, Java’s Virtual Threads (Executors.newVirtualThreadPerTaskExecutor()) allow Akkord to fan out dozens of concurrent Google Drive downloads, Gemini API requests, and Firestore writes with simple, readable blocking code and near-zero OS thread overhead.</li><li><strong>JIT Vectorization &amp; the Vector API (</strong><strong>jdk.incubator.vector) for PDF Pixel Math:</strong> Python was slow on pdf_layout.py and pdf_annotator.pybecause Python boxes every integer and interprets loops bytecode-by-bytecode. In modern Java, primitive byte[] and int[] arrays on the HotSpot C2 compiler (or GraalVM JIT) are automatically unrolled and compiled into <strong>AVX-512 / ARM Neon SIMD instructions</strong>. Scanning a 1240×1754 page for 5-line staves or running the 2pt spiral ink-collision search in pure Java takes <strong>~25–45 ms</strong>, within striking distance of Rust, <em>without needing a second language or FFI boundary!</em></li><li><strong>Mature, Pure-Java PDF &amp; Graphics Ecosystem:</strong> Instead of shelling out to C binaries or stitching together separate crates for font metrics and PDF dictionaries, Java has PDFBox 3.x and hardware-accelerated Java2D (BufferedImage, Graphics2D, TrueType glyph layout) built right in.</li><li><strong>First-Class Google Cloud &amp; Enterprise Ecosystem:</strong> Google’s official Java SDKs for <strong>Gemini</strong>, <strong>Firestore</strong>, <strong>Cloud Storage</strong>, <strong>Cloud Tasks</strong>, and <strong>Google Drive</strong> are tier-1 citizens with built-in gRPC connection pooling, automatic retries, and OpenTelemetry tracing. Additionally, framework libraries like <strong>LangChain4j</strong> provide clean, idiomatic wrappers around Gemini API calls, streamlining prompt orchestration and structured AI outputs in Java.</li><li><strong>Fixing Cold Starts with GraalVM Native Image:</strong> Compile the Java service with <strong>GraalVM Native Image</strong> (via Quarkus, Micronaut, or Spring Boot 3.4+) and you get a <strong>~50–90 ms Cloud Run cold start</strong> and a <strong>~60 MB RAM footprint</strong>, matching Go while keeping 100% of your codebase in a single, type-safe language.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_QA_gGViII5-ts45OjKPUg.png" /><figcaption>The Complete Architecture Showdown</figcaption></figure><h3>Conclusion: Steer Your Agent, Don’t Let Defaults Steer You</h3><p>Here are three lessons about working with modern AI coding assistants:</p><ol><li><strong>Agents default to frictionless velocity first.</strong> Left unprompted, an agent will pick Python + FastAPI because it minimizes token count and maximizes first-draft success. And for 80% of cloud apps, including our working Python release of Akkord, that’s a fantastic starting point!</li><li><strong>Vague optimization prompts trigger trendy answers.</strong> Ask an agent <em>“what is the fastest language?”</em> in the abstract, and it will hand you a 100% Rust rewrite, even if 90% of your time in the app is waiting on an LLM API and Google Drive.</li><li><strong>Specific architectural nudges unlock the best engineering insights.</strong> When you ask your agent to <em>consider polyglot boundaries</em> (leading to <strong>Go + Rust</strong>) or to <em>evaluate modern capabilities of an established enterprise platform</em> (leading to <strong>Modern Java with Virtual Threads, SIMD vectorization, and GraalVM</strong>), the agent stops repeating clichés and starts doing real systems engineering.</li></ol><p>Even if you standardize your backend services on Modern Java, keeping a standalone developer or admin<strong> CLI in Go remains a highly practical choice</strong>. Go’s instant startup time, cross-compilation to single, self-contained static binaries with zero JVM dependency, and lightweight memory footprint make it exceptionally well-suited for fast command-line tooling.</p><p>Your AI agent knows how to write Python, Rust, Go, and modern Java fluently. The secret is remembering that <strong>you are still the Architect</strong>. Don’t hesitate to challenge your tools, ask <em>“what about language X?”</em>, and steer them toward the stack that fits your team, your runtime, and your company best!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca4eeb5deafb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/from-python-to-rust-go-to-java-steering-your-ai-coding-agent-through-architecture-trade-offs-ca4eeb5deafb">From Python to Rust, Go, to… Java? Steering Your AI Coding Agent Through Architecture Trade-Offs</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Vibrant Pixel Art with Gemini 4 Argon (and Antigravity CLI)]]></title>
            <link>https://medium.com/google-cloud/decoding-vibrant-pixel-art-with-gemini-4-argon-and-antigravity-cli-da2b99c1a2bb?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/da2b99c1a2bb</guid>
            <category><![CDATA[gemini-4-argon]]></category>
            <category><![CDATA[google-gemini]]></category>
            <category><![CDATA[gemini]]></category>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 16:31:52 GMT</pubDate>
            <atom:updated>2026-10-13T16:45:19.057Z</atom:updated>
            <content:encoded><![CDATA[<p>LED pixel displays are a surprisingly affordable way to bring animated retro art into your living space. While devices like the Divoom Pixoo-64 come packed with hundreds of built-in stills and animations, the real fun starts when you display your own custom creations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*IjpfTiz_jaXDN5B7X_lt1g.png" /></figure><p>But what actually makes a visual look great on low-resolution pixel hardware?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O0--jvc8i04g51Bf" /></figure><p>To find out, I pointed <a href="https://antigravity.google/product/antigravity-cli/">Antigravity CLI</a> and <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-argon/">Gemini 4 Argon</a> at the LED device companion app running on my phone to analyze its demo artwork. By evaluating dozens of visuals, I wanted to understand the underlying patterns, color rules, and best practices that separate average pixel art from captivating one.</p><p>The tool analyzed 200+ visuals across 5 distinct visual archetypes: retro sprites, scrolling text/HUD, ambient gradients, dynamic particles, geometric loops. It evaluated each piece against physical contrast limits, color theory, temporal pacing, and motion dynamics, thus giving every visual a comprehensive score and detailed breakdown.</p><p>The result of this deep dive is hosted at <a href="https://pixoo-art-analysis.cloud.run">pixoo-art-analysis.cloud.run</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekp98Z1o_kfC7c_7xXI2gQ.png" /></figure><p>Here are a couple of insights:</p><ul><li>Contrast limits on LED diodes vs. OLED/LCD screens (e.g., handling true black and saturation bleed).</li><li>Color quantization or palette restraint (why 8–16 colors pop better than smooth dithering on 64×64).</li></ul><p>The entire analysis workflow took a few dozen conversation turns, consuming roughly 1M input tokens and 84k output tokens (with 84% cache hits across 7M total processed tokens), all for a couple of dollars.</p><p>To help creators apply these insights directly to their own workflow, I packaged the guidelines into a skill of its own: <a href="https://pixoo-art-analysis.cloud.run/skill.html#SKILL.md">pixoo-art-analysis.cloud.run/skill.html</a> and contributed to enhancing an <a href="https://github.com/glaforge/jixoo/pull/1">existing Java library</a> built for this device.</p><p>Now imagine connecting this knowledge base to Gemini’s image and video models (Nano Banana, Omni), generating pixel art on the fly, and streaming it live to the LED display. Imagine putting that entire creative power directly into the hands of an entire developer conference audience.</p><p>More on that soon! In the meantime, here is an example of Gemini 4 Argon refinement of an existing animation originally created by my colleague Guillaume:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/0*s8FTDwYWqFBFLmJV.gif" /><figcaption>the original image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/1*I49tPLCAjimf1yJP5JgeHA.gif" /><figcaption>after applying the skill</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da2b99c1a2bb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/decoding-vibrant-pixel-art-with-gemini-4-argon-and-antigravity-cli-da2b99c1a2bb">Decoding Vibrant Pixel Art with Gemini 4 Argon (and Antigravity CLI)</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My AI Said “It Depends.” Then I Gave It the Developer Knowledge API]]></title>
            <link>https://medium.com/google-cloud/my-ai-said-it-depends-then-i-gave-it-the-developer-knowledge-api-151fc2a3bc96?source=rss-dbfb8e06b9f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/151fc2a3bc96</guid>
            <dc:creator><![CDATA[Alexis MP]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 17:25:11 GMT</pubDate>
            <atom:updated>2026-09-11T17:25:11.857Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been using <a href="https://antigravity.google/product/antigravity-cli">Antigravity CLI</a> (agy) over Antigravity 2.0 these days (I tend to alternate between the two), with the latest Gemini 3.x Flash series. I’m getting some very fast turnaround and a very solid experience, but a fast and smart model doesn’t beat one that can leverage the right data and documentation and itmay miss some critical platform nuances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gGVFCNDxr3Tn_A7vAeDe7Q.png" /></figure><p>The <a href="https://github.com/google/skills/tree/main/plugins/cloud"><strong>Google Cloud Developer Plugin</strong></a> (compliant with <a href="https://agent-plugins.org/">Agent plugins</a>) uses the Developer Knowledge API to <strong>query live Google Cloud documentation, migration guides, and architecture whitepapers</strong>. Here’s how to set it up and what happened when I grounded my agent with live official docs and why the precision difference matters.</p><pre>$ agy plugin install https://github.com/google/skills/plugins/cloud/google-cloud-developer<br>Cloning plugin from https://github.com/google/skills.git...<br>  [ok]    google-cloud-developer<br>          ✔ skills      : 5 processed<br>          - agents      : skipped (not found)<br>          - commands    : skipped (not found)<br>          ✔ mcpServers  : 1 processed<br>          - hooks       : skipped (not found)</pre><p>This <a href="https://github.com/google/skills/blob/main/README.md#plugins">doc</a> covers how to install the plugin in other agent harness. Also, before making requests, make sure the API is enabled on your active quota project : $ gcloud services enable developerknowledge.googleapis.com</p><p>I then asked agy the same question twice: “<em>What’s the difference between Cloud Run and GKE according to official docs?</em>”. First, the agent answered from general training data (it actually failed to use the Developer Knowledge API the first time because I had not enabled the API) :</p><pre>According to official Google Cloud documentation, both Cloud Run and <br>Google Kubernetes Engine (GKE) run containerized applications, but they<br>target different operational models, levels of control, and architectures:<br>  ──────<br>### Core Differences <br>+-----------------+----------------------------------+------------------------------------+<br>| Feature         | Cloud Run                        | Google Kubernetes Engine (GKE)     |<br>+-----------------+----------------------------------+------------------------------------+<br>| Model           | Serverless Containers (Fully     | Managed Kubernetes (Container      |<br>|                 | managed PaaS/CaaS)               | Orchestration)                     |<br>+-----------------+----------------------------------+------------------------------------+<br>| Infrastructure  | Zero infrastructure management.  | You manage or configure clusters   |<br>| Management      | Google handles provisioning,     | (GKE Autopilot manages node        |<br>|                 | routing, autoscaling, and        | provisioning/security, while GKE   |<br>|                 | patching.                        | Standard gives full node VM        |<br>|                 |                                  | control).                          |<br>+-----------------+----------------------------------+------------------------------------+<br>| Scaling         | Rapid autoscaling, including     | Scales pods via Horizontal Pod     |<br>| Characteristics | scale-to-zero when idle. Scales  | Autoscaler (HPA) and nodes via     |<br>|                 | automatically based on incoming  | Cluster Autoscaler / GKE           |<br>|                 | HTTP request concurrency or CPU  | Autopilot. Scale-to-zero requires  |<br>|                 | utilization.                     | specific setup (e.g. Knative/      |<br>|                 |                                  | KEDA).                             |<br>+-----------------+----------------------------------+------------------------------------+<br>| Pricing Model   | Pay-per-use: Billed only for CPU,| Billed for running pod resources   |<br>|                 | memory, and requests consumed    | (Autopilot) or underlying compute  |<br>|                 | while handling traffic (down to  | instances / cluster management     |<br>|                 | the millisecond) or running jobs.| fees (Standard), regardless of     |<br>|                 |                                  | traffic.                           |<br>+-----------------+----------------------------------+------------------------------------+<br>| Workload        | Stateless web apps, APIs,        | Complex multi-tier applications,   |<br>| Suitability     | microservices, webhook handlers, | stateful workloads, custom         |<br>|                 | and discrete batch jobs (Cloud   | daemonsets, non-HTTP networking,   |<br>|                 | Run Jobs).                       | service meshes (Istio/Anthos), and |<br>|                 |                                  | advanced GPU/batch ML pipelines.   |<br>+-----------------+----------------------------------+------------------------------------+<br>| Control &amp;       | Simpler configuration. Standard  | Full access to the Kubernetes API, |<br>| Customization   | container contract (HTTP/gRPC/   | Custom Resource Definitions        |<br>|                 | WebSockets listening on a port). | (CRDs), complex storage mappings,  |<br>|                 |                                  | DaemonSets, and low-level          |<br>|                 |                                  | networking policies.               |<br>+-----------------+----------------------------------+------------------------------------+<br>| Networking      | Built-in HTTPS URL endpoints,    | Native Kubernetes Ingress /        |<br>| &amp; Ingress       | automatic TLS certificate        | Gateway API, Cloud Load Balancing  |<br>|                 | management, and simple IAM-based | integration, and VPC-native        |<br>|                 | authentication.                  | cluster networking.                |<br>+-----------------+----------------------------------+------------------------------------+<br><br>──────<br>## Summary Rule of Thumb<br>• Choose Cloud Run if you want to deploy containers quickly without managing<br>cluster infrastructure, desire automatic scale-to-zero, and your workload fits<br>stateless web/API/job patterns.<br>• Choose GKE if you need full Kubernetes API capabilities, advanced<br>multi-container pod architectures, stateful applications, custom<br>networking/operators, or fine-grained cluster control.</pre><p>Then, it queried the Developer Knowledge API :</p><pre>Here is the grounded comparison between Cloud Run and Google Kubernetes Engine <br>(GKE) according to official Google developer documentation:<br><br>### Core Architecture &amp; Management<br><br>• Cloud Run is a fully managed, serverless application platform. It abstracts <br>away all infrastructure management, running containers directly on Google Cloud<br>infrastructure rather than on Kubernetes clusters. It is designed for developers<br>to focus on application code with minimal operational overhead.<br>• GKE is a managed implementation of the open-source Kubernetes orchestration<br>platform. It consists of nodes (Compute Engine VMs) organized into clusters. <br>While Google manages the control plane (and worker nodes in Autopilot mode), <br>GKE provides direct access to the Kubernetes control plane and requires <br>cluster/workload orchestration management.<br><br>### Scalability &amp; Performance<br><br>• Cloud Run scales automatically by default (including scale-to-zero) with<br>deployments completing in seconds. It provides built-in configuration<br>versioning, revision management, and traffic splitting.<br>• GKE scalability is bounded by the size of the cluster (unless utilizing <br>Autopilot or Horizontal/Cluster Autoscalers). It is the standard choice for <br>long-running processes (e.g., queue listeners, background daemons) or <br>applications utilizing non-HTTP(S) protocols.<br><br>### Networking &amp; Security<br><br>• Networking: Cloud Run services require a Serverless VPC Access connector<br>(or Direct VPC Egress) to connect to resources inside a VPC. In contrast, <br>GKE workloads reside directly within the VPC without needing a connector.<br>• Security &amp; IAM: Cloud Run enforces IAM authentication at the service endpoint<br>out of the box and provides strong container isolation. GKE service endpoints<br>are not automatically fronted by Cloud IAM, and executing untrusted code on GKE<br>typically requires GKE Sandbox (gVisor).<br><br>### Pricing Model<br><br>• Cloud Run: Request-based / pay-per-use model, charging only for CPU, memory,<br>and requests consumed while actively executing requests or batch jobs.<br>• GKE: Billed for provisioned resources (nodes/pods), regardless of whether<br>they are fully utilized.<br>──────<br>### Comparison Matrix<br><br>Dimension              | Cloud Run                  | GKE<br>-----------------------|----------------------------|-----------------------------------------------<br>Operational Model      | Serverless (Fully managed) | Managed Kubernetes (Cluster-based / Autopilot)<br>Infrastructure         | Completely abstracted (No  | Nodes &amp; Clusters (VM-based or <br>                       | clusters/nodes to manage)  | Autopilot-managed).<br>Ideal Workloads        | Stateless HTTP/gRPC.       | Multi-container pods, stateful workloads, <br>                       | microservices, web apps,   | long-running daemons, custom protocols.<br>                       | discrete jobs.             | <br>Scaling                | Rapid automatic scaling    | Pod-based (HPA) and node-based cluster <br>                       | &amp; scale-to-zero.           | autoscaling.<br>GPU / Accelerators     | GPU support for AI/ML      | Comprehensive support for training and <br>                       | inference.                 | inference (GPUs, TPUs, KubeRay)<br>Deployment Management  | Built-in revisions,        | Kubernetes Deployments, Services, Helm <br>                       | rollouts, and traffic      | charts, CRDs.<br>                       | splitting.                 |<br><br>### Decision Guide<br><br>• Choose Cloud Run if you want to deploy stateless HTTP/gRPC services or<br>batch jobs rapidly, want request-based billing with zero idle cost, and want<br>to avoid managing clusters.<br>• Choose GKE if you require fine-grained control over deployment topology,<br>advanced Kubernetes ecosystem integrations (e.g., custom operators, service<br>meshes), non-HTTP protocols, or large-scale AI/ML model training architectures.</pre><p>Both answers <strong>agreed on the fundamental architectural paradigms</strong> (serverless vs. managed Kubernetes, request-based pay-per-use vs. provisioned resource pricing, and scale-to- zero capabilities), but the Developer Knowledge response provided several <strong>concrete, technical distinctions</strong> that the initial general synthesis omitted or generalized.</p><p>The initial answer provided a rather broad overview of Kubernetes management vs. serverless hosting. The second one was grounded directly in official migration and architecture guides, which helped surface specific platform constraints, security behaviors, and architectural dependencies (such as VPC connectors and IAM invocation checks). Here’s a full analysis of the differences :</p><pre>+----------------+--------------------+------------------+---------------------+<br>| Dimension      | Key Difference     | Initial Answer   | MCP-Retrieved       |<br>+----------------+--------------------+------------------+---------------------+<br>| **Security &amp;   | The MCP answer     | Mentioned        | Specifically cited: |<br>| IAM**          | highlighted        | high-level       | 1\. Cloud Run       |<br>|                | precise security   | container        | enforces Cloud IAM  |<br>|                | boundaries and     | isolation and    | authentication at   |<br>|                | invocation-level   | IAM.             | the endpoint out of |<br>|                | authorization      |                  | the box.            |<br>|                | differences.       |                  | 2\. GKE service     |<br>|                |                    |                  | endpoints are not   |<br>|                |                    |                  | subject to IAM      |<br>|                |                    |                  | checks by default.  |<br>|                |                    |                  | 3\. GKE requires    |<br>|                |                    |                  | GKE Sandbox         |<br>|                |                    |                  | (gVisor) for        |<br>|                |                    |                  | untrusted code.     |<br>+----------------+--------------------+------------------+---------------------+<br>| **Networking** | The MCP answer     | Mentioned        | Explicitly          |<br>|                | provided the exact | general          | highlighted that    |<br>|                | architectural      | VPC-native       | Cloud Run requires  |<br>|                | prerequisite       | networking vs.   | a Serverless VPC    |<br>|                | needed for private | HTTPS endpoints. | Access connector    |<br>|                | networking.        |                  | (or Direct VPC      |<br>|                |                    |                  | Egress) to reach    |<br>|                |                    |                  | internal VPC        |<br>|                |                    |                  | resources, whereas  |<br>|                |                    |                  | GKE pods sit        |<br>|                |                    |                  | natively inside the |<br>|                |                    |                  | VPC.                |<br>+----------------+--------------------+------------------+---------------------+<br>| **AI/ML &amp;      | The MCP answer     | Mentioned        | Explicitly          |<br>| Hardware       | clearly            | generic          | distinguished       |<br>| Accelerators** | differentiated ML  | GPU/batch        | accelerator roles:  |<br>|                | training           | workloads.       | • **Cloud Run**:    |<br>|                | (GKE/TPU/Ray) vs.  |                  | GPUs for inference  |<br>|                | ML serving/        |                  | at scale.           |<br>|                | inference (Cloud   |                  | • **GKE**: Full     |<br>|                | Run).              |                  | support for both    |<br>|                |                    |                  | training and        |<br>|                |                    |                  | inference,          |<br>|                |                    |                  | including TPUs and  |<br>|                |                    |                  | distributed         |<br>|                |                    |                  | frameworks like Ray |<br>|                |                    |                  | (KubeRay) and       |<br>|                |                    |                  | Kueue.              |<br>+----------------+--------------------+------------------+---------------------+<br>| **Deployment   | The MCP response   | Mentioned broad  | Specifically        |<br>| Primitives**   | referenced         | container        | pointed out         |<br>|                | specific platform  | configurations.  | built-in Cloud Run  |<br>|                | capabilities       |                  | features: automatic |<br>|                | documented in the  |                  | configuration       |<br>|                | migration guides.  |                  | versioning,         |<br>|                |                    |                  | immutable           |<br>|                |                    |                  | revisions, and      |<br>|                |                    |                  | native traffic      |<br>|                |                    |                  | splitting vs.       |<br>|                |                    |                  | Kubernetes          |<br>|                |                    |                  | Job/Deployment      |<br>|                |                    |                  | lifecycles.         |<br>+----------------+--------------------+------------------+---------------------+<br>| **Workload     | The MCP response   | Generalized to   | Highlighted         |<br>| Patterns**     | gave actionable,   | &quot;stateless vs.   | specific patterns   |<br>|                | pattern-specific   | stateful&quot;.       | like queue          |<br>|                | examples from      |                  | listeners and non-  |<br>|                | Google&#39;s           |                  | HTTP protocols as   |<br>|                | modernization      |                  | explicit triggers   |<br>|                | docs.              |                  | for choosing GKE    |<br>|                |                    |                  | over Cloud Run.     |<br>+----------------+--------------------+------------------+---------------------+</pre><p>Grounding your AI assistant in official documentation matters because it can turn general advice into actionable engineering decisions. Here are some examples:</p><ul><li>Optimized AI Workloads: Clear guidance on where to place ML training (GKE/TPUs) versus model serving (Cloud Run/GPUs).</li><li>Concrete Dependencies: Knowing early that you need a Serverless VPC Access connector prevents deployment blockers.</li><li>Security Posture: Understanding IAM enforcement differences avoids accidental exposure of GKE services.</li></ul><p>The Developer Knowledge API offers useful grounding for your agent, but the <a href="https://github.com/google/skills/tree/main/plugins/cloud">Google Cloud Developer Plugin</a> also includes broader functionality for authentication, project management, and safe command execution. It’s meant as a comprehensive toolkit for building robust Google Cloud-aware agents.</p><p>You can follow this codelab to try things for yourself: <a href="https://codelabs.developers.google.com/cloud-dev-plugin-agy">https://codelabs.developers.google.com/cloud-dev-plugin-agy</a> or directly install the Google Cloud Developer Plugin : see <a href="https://github.com/google/skills/tree/main/plugins/cloud">https://github.com/google/skills/tree/main/plugins/cloud</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=151fc2a3bc96" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/my-ai-said-it-depends-then-i-gave-it-the-developer-knowledge-api-151fc2a3bc96">My AI Said “It Depends.” Then I Gave It the Developer Knowledge API</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>