NB : you can find the working code for this blog here There's a new release of the amazing—if experimental—Spring gRPC project: version 0.4.0. I won't get into the nitty-gritty of all that's new, but I just wanted to highlight how elated I am to use it and walk you through the step-by-step path to gRPC joy. A million little things fall into place to make it the smoothest experience I've ever had using gRPC! I went to the Spring Initializr and selected GRPC, GraalVM, and Web. I'm a Maven enjoyer, but you do you. I chose Java 23, 'natch, since Java 24 is coming in a week or two. I figured this blog would still be interesting for at least a few weeks. Specifically, I'm using GraalVM, which is an OpenJDK distribution that supports some extra party tricks, including compiling JVM code into operating system- and architecture-specific native code. If you're using a UNIX-compatible OS (Cygwin and Windows Subsystem for Linux on Windows count), then you might try SDKMAN to install and manage your JDK varieties. I did this: sdk install java 23.0.2-graalce Now, again, remember: this is Java 23. Java 24 is due in the middle of March 2025! Don't be left behind. You don't want people snickering and pointing at you at parties, do you? Upgrade! Already, Spring has our backs! The Spring Initializr seized upon the insight that I am using a Servlet engine, added Spring gRPC, Spring Boot's web support, and the bridge that allows you to host gRPC in a Servlet container. (By default, Spring gRPC…Read More
References
Back to Main