Posts Tagged ‘JoshLong’
[KotlinConf2026] KotlinConf’26 Opening Keynote: Language Evolution, Tooling, AI Agents, and Multiplatform Momentum
Lecturer
The opening keynote of KotlinConf’26 was a collaborative presentation delivered by a roster of experts from JetBrains, Google, Anthropic, and the broader Kotlin ecosystem. Primary contributors included Michail Zarečenskij, Lead Language Designer at JetBrains, who has nearly a decade of experience shaping the Kotlin compiler, IDE integration, and language specification; Vsevolod Tolstopyatov, Kotlin Core Ecosystem Lead at JetBrains, focused on libraries, APIs, concurrency, and tooling; Svetlana Isakova, Developer Advocate at JetBrains and co-author of Kotlin in Action and Atomic Kotlin; Jeffrey van Gogh, Director of Engineering for Android Developer Experience at Google and Kotlin Foundation board member; Márton Braun, Kotlin Developer Advocate at JetBrains specializing in multiplatform; Chantal Loncle, Software Developer on the Exposed team at JetBrains; Vadim Briliantov, Technical Lead and creator of the Koog framework at JetBrains; Christian Ryan, Manager of Applied AI Engineering at Anthropic in Europe; and Josh Long, Spring Developer Advocate. Supporting contributions came from Sebastian Aigner and others on the JetBrains team.
Abstract
This article examines the KotlinConf’26 opening keynote, which marked the fifteenth anniversary of the Kotlin language. The presentation surveyed the language’s foundational principles of ergonomics and safety, announced the stabilization of key features in Kotlin 2.4, introduced a unified Kotlin Toolchain, advanced the Kotlin Language Server to alpha, and detailed the mature release of Koog 1.0 as a production-ready AI agent framework. It further covered backend integrations with Ktor, Exposed, and Spring, Google’s expanding adoption of Kotlin beyond Android, and the accelerating growth of Kotlin Multiplatform and Compose Multiplatform. The keynote positioned Kotlin as a trusted foundation for modern development in an era of rising AI abstraction, emphasizing consistent tooling, enterprise readiness, and seamless multiplatform reach.
Language Foundations and the Stabilization of Kotlin 2.4
Kotlin’s design philosophy rests on two interlocking principles: ergonomics that make code pleasant to read and write, and safety mechanisms that give developers confidence in what they ship. Michail Zarečenskij opened the technical portion of the keynote by situating these principles in the contemporary context of AI-assisted development. As agents raise the level of abstraction, trust in the underlying language becomes more critical than ever. When code compiles, the compiler has already verified a substantial amount of correctness; carefully chosen defaults further reduce the cognitive load of reading, reviewing, and maintaining code—whether that code was written by a human colleague, an AI agent, or one’s own past self.
Kotlin 2.4 stabilizes two long-incubating features that exemplify this direction. Context parameters allow functions and properties to declare dependencies that are resolved from the surrounding scope rather than passed explicitly as ordinary arguments. In a typical application, an interface such as Session might expose payment settings. Checking whether a particular provider is enabled traditionally requires threading the session object through multiple layers. With context parameters, the core logic can be extracted into an extension property whose receiver is the payment provider while the session is supplied as a context parameter. The call site collapses to a simple, readable check focused on business intent rather than infrastructure wiring. The feature enables more consistent and idiomatic APIs across libraries.
Explicit backing fields address a common pattern in which a public read-only property is backed by a private mutable one. Previously this required two separate declarations representing the same state, introducing boilerplate and complicating refactoring. In Kotlin 2.4 a single property can declare an explicit backing field that is mutable internally while the property itself exposes a more restricted type. Mutable state remains safely encapsulated, the number of entities decreases, and refactoring becomes less error-prone.
Beyond these stabilizations, the language team continues to explore multi-field value classes as a safer alternative to data classes for pure data modeling. Value classes auto-generate equals, hashCode, and toString; they default to name-based destructuring rather than positional; and they lack identity, making instances interchangeable when their properties match. Looking ahead, they are expected to benefit from JVM value-type optimizations such as scalarization and heap flattening. Updates and mutable value semantics remain under active investigation, with community feedback invited at the language evolution booth.
These language-level investments ensure that students and professional developers alike receive clear, correct code by default. Ergonomics and safety form the foundation upon which the rest of the ecosystem is built.
Ecosystem Tooling: The Kotlin Toolchain, Language Server, and Standardization of Formatting
Vsevolod Tolstopyatov framed the next layer of the stack: tooling that must remain consistent even as the surrounding landscape of IDEs, build systems, and agents changes rapidly. The experimental Build Tools API announced the previous year has matured into a unifying boundary between the Kotlin compiler and any build system. It now powers every major build tool, delivering identical performance characteristics, incremental compilation, and compiler caches. Maven gains concise defaults, Buck enjoys large-scale incremental compilation, Mill adopts Kotlin with ease, and Gradle can decouple language version updates from the Gradle plugin itself. Collaboration with the open-source community is extending first-class support into official Bazel rules, enabling Kotlin in repositories that contain tens of thousands of modules.
For projects that do not require the full complexity of a separate build tool, JetBrains introduced the Kotlin Toolchain—a single cohesive entry point. Starting immediately, developers can use it for JVM and multiplatform projects to create, build, run, and test applications. Capabilities originally developed in the Amper project are being folded directly into the toolchain. Future plans include language-server integration, AI skills, native dependency management, and deep IDE support, delivering the full power of Kotlin out of the box. The toolchain is already in alpha and evolving rapidly.
Documentation consistency has become equally important once agents enter the development loop. The new Kotlin documentation model provides a machine-readable, specified, and backwards-compatible format published alongside every library. IDEs, klibs.io, and coding agents can consume it uniformly, eliminating the fragmentation of GitHub pages, official language sites, and third-party library documentation.
The Kotlin Language Server has graduated from experimental status to alpha. Backed by the full IntelliJ engine, it offers code completion, diagnostics, Maven support, formatting, and basic Android import. When a new feature appears in IntelliJ, it appears in the language server as well. An official Visual Studio Code extension is now available on the Marketplace, and agents can leverage the server for symbols, documentation, and structural understanding.
Finally, JetBrains and Meta, under the Kotlin Foundation, have begun standardizing ktfmt as the core Kotlin formatter. The project is moving into the Kotlin GitHub organization; coding conventions will be revisited; the formatter will be integrated into the toolchain and enabled by default for new projects. Code style thereby ceases to be a review-time negotiation and becomes a tooling default.
AI-Driven Development and the Stable Release of Koog 1.0
Svetlana Isakova and subsequent speakers placed AI tooling at the center of the modern Kotlin experience. JetBrains is co-leading the open Agent Client Protocol (ACP), an open standard that lets any IDE communicate with any coding agent. Developers can choose agents freely, use JetBrains AI subscriptions or their own keys, and avoid lock-in to a single model provider or payment system.
IntelliJ’s two-decade investment in code intelligence is being packaged as agent-ready skills: navigation, find-usages, refactorings ranging from simple renames to complex structural transformations. These skills make agents faster and more token-efficient. Junie, JetBrains’ own coding agent, is deeply integrated with JetBrains IDEs and can connect to the IDE even when invoked from the command line. It supports multiple model providers, allowing expensive models for planning and cheaper models for generation—benchmarks show performance on par with top competitors at up to four times lower cost. Android-specific support is available in early access, enabling agents to interact with emulators, take screenshots, and verify UI behavior including rotation.
JetBrains AI provides an agentic development environment in which multiple agents can work in parallel on different tasks—inside separate Git worktrees or Docker containers—so that concurrent modifications do not conflict. Progress is visible, attention can be directed where needed, and changes can be merged back cleanly. Cloud agents and browser-based guidance are forthcoming, as is the ability to schedule repetitive tasks on gateways. The environment itself is free; only the tokens consume budget.
Christian Ryan of Anthropic underscored the depth of collaboration. Anthropic’s official Java SDK was written in Kotlin for its ergonomics and null safety while still exposing a clean Java API. JetBrains contributed the official Kotlin MCP SDK. Claude is native in IntelliJ and Android Studio, appears as a first-party model in Junie and JetBrains AI, and benefits from the Kotlin Language Server on the CLI. JetBrains created Kotlin Sweet Bench—a suite of 110 real-world engineering tasks drawn from actual repositories—and ran it under identical conditions. Claude with Opus at extra-high settings led the results, confirming strong Kotlin proficiency.
Vadim Briliantov then announced Koog 1.0, the first mature, stable release of the Kotlin AI agent framework. One year after its experimental debut, Koog is ready for production. Agents can be embedded in mobile or backend applications with a few lines of idiomatic Kotlin. For real-world use, Koog supplies type-safe DSLs for modeling precise graph workflows with human-defined guardrails. Mercedes-Benz selected Koog for a vehicle-maintenance support agent precisely because of its modularity, traceability, and controllable logic.
Persistence allows an agent to checkpoint at any workflow node and recover from the exact same step after a crash. Spring Boot and Spring AI integration is complete: Spring AI handles LLM and RAG concerns while Koog supplies the agentic and persistence layers; instructions are injected as beans. Multiplatform targets include JVM, JS, Android, iOS, and WebAssembly. On Android, local Gemma models enable offline agents. Backend integrations cover Ktor, Amazon Agent Core, and major observability tools that expose messages, graph nodes, and per-step cost. Koog therefore unifies backend, mobile, and AI workloads under a single language.
Backend Maturity, Security Support, and Enterprise Adoption
Chantal Loncle and Josh Long illustrated the backend story. Ktor gains a Koog plugin that auto-detects LLM providers from configuration and exposes agents directly from routes with full type safety. OpenAPI generation keeps documentation synchronized with code; experimental first-party gRPC support via kotlinx-rpc generates matching protobuf source sets for every multiplatform target. Exposed reached its first stable 1.0 release earlier in the year, complete with a migration-script plugin, vector types for similarity search, and agent-assisted upgrade skills.
Starting with Kotlin 2.4 the standard library carries an 18-month security support policy: security patches from later releases are back-ported within the window, giving teams predictable upgrade planning. Empirical results show 15–20 percent faster development cycles from first change to review. Integration work continues with JUnit documentation, Maven onboarding, Micrometer coroutine support, and the Lombok compiler plugin (now alpha). Spring partnership remains first-party on both sides.
Josh Long demonstrated a production-ready agentic service built with Spring Boot, Spring AI, MCP client and security support, virtual threads, and OAuth. The resulting system is secure, null-safe, scalable, and observable. Benchmarks of MCP implementations place the JVM ahead of Node and Python by substantial margins in both throughput and latency, underscoring the runtime advantages of the platform.
Kotlin Multiplatform Expansion and Platform-Specific Advances
Márton Braun closed the technical narrative with Kotlin Multiplatform. In the preceding year the number of top apps using KMP more than doubled; McDonald’s, Booking, Duolingo, Sony Sound Connect, Alipay, Kuaishou, and Tencent Video all ship shared logic or UI to hundreds of millions of users. The KMP IDE plugin is now available on every operating system for both IntelliJ IDEA and Android Studio, supplying run configurations, Compose tooling, Swift integration, and AGP 9 support. The new project wizard adopts a clearer module structure that simplifies navigation and further modularization.
Swift export moves to alpha in Kotlin 2.4, adding support for suspending functions (awaited as Swift async) and Flows (converted to async sequences). SPM import lets Kotlin code consume Objective-C compatible packages directly. Kotlin/Native build times on the Google Docs codebase improved 25 percent with less than half the previous RAM usage—another fruit of JetBrains–Google collaboration.
Compose Multiplatform is fully stable on mobile and desktop; web has advanced to beta. Navigation 3 is stable for multiplatform use. On iOS, interop APIs allow native Liquid Glass components to overlay Compose content; parallel rendering is enabled by default and yields up to 20 percent better performance in complex layouts. Desktop Compose Hot Reload is stable and default. Web gains accessibility support and HTML interop. Kotlin/JS interop with TypeScript now includes seamless export of suspending functions as promises, giving developers two compilers that catch mistakes across language boundaries.
More than 3,600 community libraries are listed on klibs.io, reflecting the vitality of the multiplatform ecosystem.
Conclusion
The KotlinConf’26 keynote portrayed a language and ecosystem that have matured across every layer—from syntax and type system through build tooling, AI agent frameworks, backend libraries, and multiplatform UI—while remaining true to the original commitments of ergonomics and safety. Kotlin 2.4, the unified toolchain, the alpha language server, Koog 1.0, the 18-month security policy, and the doubling of multiplatform adoption together demonstrate that Kotlin is ready for the next decade of software construction, whether that construction is performed by human developers, collaborating agents, or the hybrid teams that will increasingly define the industry.
Links:
[SpringIO2026] Bootiful gRPC
Lecturer
Dr. Dave Syer is a founder of Spring Boot, Spring Cloud and Spring Batch, and the lead of the Spring gRPC project. He has long contributed to Spring Security OAuth, Spring Integration and many other portfolio projects. Josh Long is the Spring Developer Advocate at Broadcom (VMware Tanzu), a prolific speaker, author and live-coder known for demonstrating the full breadth of the Spring ecosystem. Together they present the new first-class Spring integration for gRPC.
Abstract
gRPC offers schema-driven, polyglot, high-performance remote procedure calls. After community implementations slowed, Google encouraged the Spring team to create an official project. Spring gRPC, now at version 1.x and moving its Boot auto-configuration into Spring Boot itself, supplies starters, code-generation plugins, Netty and servlet transports, observability, health checks and seamless OAuth 2 resource-server and client support. This article walks through the live demonstration given by Dave Syer and Josh Long, highlighting the developer experience from protocol-buffer definition to a secured, observable service and client pair.
Why gRPC and the Spring Integration
Remote procedure call has a chequered history, yet gRPC addresses many historical weaknesses. An Interface Definition Language (Protocol Buffers) forces an explicit contract; the same .proto file generates idiomatic stubs in dozens of languages, satisfying polyglot organisations; the binary encoding and a purpose-built Netty server deliver competitive throughput. Existing community Spring integrations had lost momentum, prompting Google to ask the Spring team to take ownership. The resulting Spring gRPC project began as an experimental zero-point release train aligned with Spring Boot 3 and reached 1.0 with Spring Boot 4, gaining the usual long-term support commitments. Auto-configuration is scheduled to move into Spring Boot proper in the 4.1 timeframe, further reducing boilerplate.
From Protocol Buffer to Running Service
A new project is created on start.spring.io by selecting the gRPC server starter (and optionally security and observability). The generated build already contains the Protocol Buffer Maven or Gradle plugin and the necessary dependency management. A simple greetings.proto declares a service with a unary RPC:
syntax = "proto3";
option java_package = "com.example.grpc";
service Greetings {
rpc Hello (HelloRequest) returns (HelloResponse);
}
message HelloRequest { string name = 1; }
message HelloResponse { string message = 1; }
After code generation the developer extends the generated base class, annotates it as a Spring @Service (or lets component scanning discover it) and implements the method. The Netty-based gRPC server starts automatically on port 9090; if a servlet container is also present the same service can be exposed through the Google-supplied servlet bridge, sharing the HTTP port with ordinary Spring MVC endpoints.
A client project follows the same path. The generated stub is injected as a Spring bean; an HTTP controller can call it exactly as it would call any other collaborator. Because the contract is shared, the two sides remain type-safe even when they live in separate processes.
Observability, Health and Security
Selecting the OpenTelemetry starter on the Initializr causes metrics and traces to be exported automatically; Grafana dashboards immediately show gRPC-specific meters. The standard gRPC health-checking protocol is wired to Spring Boot Actuator’s health indicators, so a Kubernetes gRPC probe reports the same status that an HTTP actuator endpoint would.
Security integration re-uses Spring Security’s OAuth 2 resource-server and client support. On the server side a JWT or opaque-token resource-server configuration protects every RPC. On the client side an interceptor extracts the current OAuth2AuthenticationToken, obtains an access token via the OAuth2AuthorizedClientManager, and attaches it to the outgoing gRPC metadata. The demonstration completes the round-trip: an unauthenticated browser request is redirected to the authorization server, the resulting token is presented to the gRPC service, and the service replies with a greeting that includes the authenticated principal’s name.
The same patterns work with reactive gRPC stubs and with Kotlin, giving teams a uniform programming model across transport and language choices.
Conclusion and Roadmap
Spring gRPC removes the historical friction of adopting gRPC inside a Spring application: starters, automatic code generation, sensible server and client defaults, first-class observability and security. Future work includes deeper controller-style programming models for developers who prefer POJO annotations over generated stubs, and the final migration of auto-configuration into Spring Boot itself. The project already demonstrates that a binary, schema-first RPC technology can feel as natural in the Spring ecosystem as REST or messaging.
Links:
[SpringIO2025] From Beans to Boot, Aspects to AI by Rod Johnson / Juergen Hoeller / Josh Long
Lecturer
Rod Johnson is the founder of the Spring Framework, revolutionizing enterprise Java development since its inception in 2002. As a former CEO of SpringSource (acquired by VMware), he has shaped modern software ecosystems, emphasizing simplicity and open-source innovation. Johnson, based in Australia, continues influencing technology through consulting and speaking engagements. Juergen Hoeller is the co-founder and lead of the Spring Framework, managing its core since the 0.9 release in 2003. As Principal Engineer at Broadcom, he drives advancements in dependency injection and modular design. Josh Long is the Spring Developer Advocate at Broadcom, an open-source contributor, author, and podcaster known for “Spring Tips” videos and books like “Reactive Spring.”
Abstract
This article synthesizes insights from a panel discussion on Spring’s evolution, from its origins combating enterprise Java complexity to its current role in AI integration. It analyzes key milestones, community dynamics, and future directions, highlighting innovations like dependency injection, Spring Boot, and Spring AI. The discourse emphasizes openness to external ideas, the balance of perfectionism and pragmatism, and Spring’s symbiosis with Java’s 30-year legacy.
Origins and Transformative Impact on Enterprise Java
Spring emerged in 2002 from Rod Johnson’s book, addressing the cumbersome nature of Enterprise Java Beans (EJB) and related ceremonies. By 2003, with Juergen Hoeller’s involvement, it simplified development through dependency injection and modular components, making Java “fun” again. Panelists noted Spring’s role in Java’s survival: without its community-driven simplicity, alternatives like Ruby on Rails or .NET might have dominated server-side development.
Polling revealed a mix of veteran (20+ years) and newer users, underscoring Spring’s enduring appeal. The framework’s ethos—adopting ideas from beyond Java while crediting sources—fostered innovation, such as convention-over-configuration inspired by Rails.
Key Milestones: From Framework to Ecosystem
Spring Boot (2014) marked a pivotal shift, automating configurations that Spring Rue (an earlier attempt) couldn’t fully achieve. Hoeller described Rue as a worthwhile “failed investment” that informed Boot’s success. The portfolio approach allowed experimental subprojects, accepting some failures (e.g., OSGi integrations) for overall progress.
Aspects like AOP enabled clean modularity, while AI integrations via Spring AI (GA in 2025) extend this to generative models. Long highlighted Spring’s cutting-edge stance, from web apps to AI, always solving developer pain points.
Community Dynamics and Development Philosophy
The panel emphasized inclusivity: a healthy ecosystem blends long-term users with newcomers. Perfectionism versus pragmatism was discussed—Hoeller as the meticulous lead, Johnson favoring bold experiments. Handling “mistakes” involves recognizing non-viable paths (e.g., Scala community disinterest in Spring Color) and pivoting.
Openness to languages like Kotlin (significant adoption) reflects adaptability. Java’s 30th anniversary symbiosis was noted: Spring revitalized Java amid competition.
Future Visions: AI, Real-Time, and Beyond
Spring AI pushes boundaries, enabling seamless model integration. For real-time systems (e.g., gaming), panelists suggested Java’s garbage collection advancements (e.g., low-latency strategies) address latency, though other languages may excel in niches.
In conclusion, Spring’s journey—from beans to AI—exemplifies resilient innovation, balancing heritage with forward-thinking.
Links:
[DevoxxGR2026] Bootiful Spring Boot 4: Exploring the Latest Advancements with Java 25
Lecturer
Josh Long is a Spring Developer Advocate at VMware, widely recognized as one of the most prominent voices in the Spring ecosystem. Known affectionately as “Mr. Spring,” he is the author of numerous books and a prolific speaker who travels the globe sharing insights on modern Java development. Long co-hosts the “Coffee with a Java Champion” YouTube channel and continues to champion practical, production-ready Spring applications.
Abstract
In this engaging session at Devoxx Greece 2026, Josh Long showcases the transformative capabilities of Spring Boot 4 alongside Java 25. Through live coding of a dog adoption service, he demonstrates powerful new features including virtual threads, API versioning, modular architecture with Spring Modulith, resilient patterns, and seamless integration with AI capabilities. The presentation highlights how the Spring ecosystem empowers developers to build scalable, observable, secure, and intelligent applications with remarkable efficiency.
Java 25 and the Evolution of Spring Boot 4
Spring Boot 4 represents a significant generational leap, aligned with Spring Framework 7. Long emphasizes the decomposition of auto-configuration, resulting in leaner classpaths and faster startup times. Java 25 introduces compelling enhancements, most notably the ability to run simple applications with a single void main() method, effectively delivering the first truly elegant Java scripting experience.
These advancements set the stage for building modern, efficient services that leverage the full power of the JVM while maintaining developer productivity.
Building a Modular Dog Adoption Service
Long begins with a practical example: a service to help adopt dogs. Using Spring Initializr, he configures a project with PostgreSQL, Spring Data JDBC, web support, security, observability through OpenTelemetry and Actuator, and development tools.
The application employs a clean, feature-oriented package structure rather than traditional layered architecture. Records simplify domain modeling, while Spring Data repositories provide type-safe data access with compile-time query generation via AOT processing—beneficial for both JVM and native image deployments.
API Versioning and Resilience Features
To handle evolving requirements, Long demonstrates Spring’s new API versioning capabilities. Multiple endpoint versions coexist, with sensible defaults and header-based selection, ensuring backward compatibility.
Resilience4j integration showcases retryable methods and circuit breakers. Long simulates downstream failures to illustrate automatic recovery, highlighting how declarative resilience patterns simplify robust service design.
Modular Architecture with Spring Modulith
A standout demonstration involves refactoring into feature modules—dogs, cats, and veterinary services—using Spring Modulith. This enforces architectural boundaries at compile time while supporting event-driven communication between modules through ApplicationModuleListener and the outbox pattern for reliable, eventually consistent inter-module interactions.
The framework automatically generates documentation, C4 architecture diagrams, and verifies module dependencies, bridging the gap between intended design and runtime reality.
Security and Production Readiness
Security configuration leverages Spring Security 7’s additive customizers, preserving sensible defaults while enabling features like one-time token login and password migration. Passkeys (WebAuthn) integration provides passwordless authentication using biometrics, representing a significant usability and security improvement.
Observability is built-in through Actuator and OpenTelemetry, with production considerations like resource limits addressed from the start.
Integrating AI Capabilities
Long concludes by incorporating Spring AI 2.0, demonstrating how to augment the application with intelligent assistants. Using skills and tool calling, the service can answer domain-specific questions about dogs and cats, showcasing the natural convergence of Spring Boot with modern AI workflows.
The Bright Future of Java and Spring Development
Throughout the session, Long reinforces that the combination of Java’s efficiency, Spring’s comprehensive ecosystem, and new generative AI tools positions developers exceptionally well. Despite industry hype cycles, the fundamentals of solid engineering—modularity, resilience, observability, and security—remain paramount.
Spring Boot 4 and Java 25 deliver the tools necessary to build systems that are faster, more scalable, more maintainable, and more intelligent than ever before.
Links:
[KotlinConf2017] Bootiful Kotlin
Lecturer
Josh Long is the Spring Developer Advocate at Pivotal, a leading figure in the Java ecosystem, and a Java Champion. Author of five books, including Cloud Native Java, and three best-selling video trainings, Josh is a prolific open-source contributor to projects like Spring Boot, Spring Integration, and Spring Cloud. A passionate advocate for Kotlin, he collaborates with the Spring and Kotlin teams to enhance their integration, promoting productive, modern development practices for JVM-based applications.
Abstract
Spring Boot’s convention-over-configuration approach revolutionizes JVM application development, and its integration with Kotlin enhances developer productivity. This article analyzes Josh Long’s presentation at KotlinConf 2017, which explores the synergy between Spring Boot and Kotlin for building robust, production-ready applications. It examines the context of Spring’s evolution, the methodology of leveraging Kotlin’s features with Spring Boot, key integrations like DSLs and reactive programming, and the implications for rapid, safe development. Josh’s insights highlight how Kotlin elevates Spring Boot’s elegance, streamlining modern application development.
Context of Spring Boot and Kotlin Integration
At KotlinConf 2017, Josh Long presented the integration of Spring Boot and Kotlin as a transformative approach to JVM development. Spring Boot, developed by Pivotal, simplifies Spring’s flexibility with sensible defaults, addressing functional and non-functional requirements for production-ready applications. Kotlin’s rise as a concise, type-safe language, endorsed by Google for Android in 2017, aligned perfectly with Spring Boot’s goals of reducing boilerplate and enhancing developer experience. Josh, a Spring advocate and Kotlin enthusiast, showcased how their collaboration creates a seamless, elegant development process.
The context of Josh’s talk reflects the growing demand for efficient, scalable frameworks in enterprise and cloud-native applications. Spring Boot’s ability to handle microservices, REST APIs, and reactive systems made it a popular choice, but its Java-centric syntax could be verbose. Kotlin’s concise syntax and modern features, such as null safety and extension functions, complement Spring Boot, reducing complexity and enhancing readability. Josh’s presentation aimed to demonstrate this synergy, appealing to developers seeking to accelerate development while maintaining robustness.
Methodology of Spring Boot with Kotlin
Josh’s methodology focused on integrating Kotlin’s features with Spring Boot to streamline application development. He demonstrated using Kotlin’s concise syntax to define Spring components, such as REST controllers and beans, reducing boilerplate compared to Java. For example, Kotlin’s data classes simplify entity definitions, automatically providing getters, setters, and toString methods, which align with Spring Boot’s convention-driven approach. Josh showcased live examples of building REST APIs, where Kotlin’s null safety ensures robust handling of optional parameters.
A key innovation was the use of Kotlin’s DSLs for Spring Boot configurations, such as routing for REST endpoints. These DSLs provide a declarative syntax, allowing developers to define routes and handlers in a single, readable block, with IDE auto-completion enhancing productivity. Josh also highlighted Kotlin’s support for reactive programming with Spring WebFlux, enabling non-blocking, scalable applications. This methodology leverages Kotlin’s interoperability with Java, ensuring seamless integration with Spring’s ecosystem while enhancing developer experience.
Key Integrations and Features
Josh emphasized several key integrations that make Spring Boot and Kotlin a powerful combination. Kotlin’s DSLs for Spring Integration and Spring Cloud Gateway simplify the configuration of message-driven and API gateway systems, respectively. These DSLs consolidate routing logic into concise, expressive code, reducing errors and improving maintainability. For example, Josh demonstrated a gateway configuration where routes and handlers were defined in a single Kotlin DSL, leveraging the compiler’s auto-completion to ensure correctness.
Reactive programming was another focal point, with Kotlin’s coroutines integrating seamlessly with Spring WebFlux to handle asynchronous, high-throughput workloads. Josh showcased how coroutines simplify reactive code, making it more readable than Java’s callback-based alternatives. Additionally, Kotlin’s extension functions enhance Spring’s APIs, allowing developers to add custom behavior without modifying core classes. These integrations highlight Kotlin’s ability to elevate Spring Boot’s functionality, making it ideal for modern, cloud-native applications.
Implications for Application Development
The integration of Spring Boot and Kotlin, as presented by Josh, has profound implications for JVM development. By combining Spring Boot’s rapid development capabilities with Kotlin’s concise, safe syntax, developers can build production-ready applications faster and with fewer errors. The use of DSLs and reactive programming supports scalable, cloud-native architectures, critical for microservices and high-traffic systems. This synergy is particularly valuable for enterprises adopting Spring for backend services, where Kotlin’s features reduce development time and maintenance costs.
For the broader ecosystem, Josh’s presentation underscores the collaborative efforts between the Spring and Kotlin teams, ensuring a first-class experience for developers. The emphasis on community engagement, through Q&A and references to related talks, fosters a collaborative environment for refining these integrations. As Kotlin gains traction in server-side development, its partnership with Spring Boot positions it as a leading choice for building robust, modern applications, challenging Java’s dominance while leveraging its ecosystem.
Conclusion
Josh Long’s presentation at KotlinConf 2017 highlighted the transformative synergy between Spring Boot and Kotlin, combining rapid development with elegant, type-safe code. The methodology’s focus on DSLs, reactive programming, and seamless integration showcases Kotlin’s ability to enhance Spring Boot’s productivity and scalability. By addressing modern development needs, from REST APIs to cloud-native systems, this integration empowers developers to build robust applications efficiently. As Spring and Kotlin continue to evolve, their partnership promises to shape the future of JVM development, fostering innovation and developer satisfaction.
Links
[DevoxxBE2012] Spring 3.2 and 3.2 Themes and Trends
In a dynamic presentation, Josh Long, a prominent Spring developer advocate and author, delved into the evolving landscape of the Spring Framework. As someone deeply embedded in the Spring ecosystem, Josh highlighted how Spring continues to address modern development challenges while maintaining its core principles. He began by recapping the framework’s foundational aspects, emphasizing its role in promoting clean, extensible code without unnecessary reinvention.
Josh explained that Spring operates as a lightweight dependency injection container, layered with vertical technologies for diverse needs like mobile development, big data handling, and web applications. This decoupling from underlying infrastructure enables seamless transitions between environments, from traditional servers to cloud platforms. He noted the increasing complexity in data stores, caching solutions, and client interfaces, underscoring Spring’s relevance in today’s fragmented tech world. By focusing on dependency injection, aspect-oriented programming, and portable service abstractions, Spring empowers developers to build robust, maintainable systems.
Transitioning to recent advancements, Josh reviewed Spring 3.1, released in December 2011, which introduced features like environment profiles and Java-based configuration. These enhancements facilitate tailored bean activations across development stages, simplifying configurations that diverge between local setups and production clouds. He illustrated this with examples of data sources, showing how profiles partition configurations effectively.
Moreover, Josh discussed the caching abstraction in Spring 3.1, which provides a unified SPI for various caches like EHCache and Redis. This abstraction, combined with annotations for cache management, streamlines performance optimizations without locking developers into specific implementations.
Core Refinements in Spring 3.2
Shifting focus to Spring 3.2, slated for release by year’s end, Josh outlined its core refinements. Building on Java 7, it incorporates asynchronous support from Servlet 3.0, enabling efficient handling of long-running tasks in web applications. He demonstrated this with controller methods returning Callable or DeferredResult, allowing requests and responses to process in separate threads, enhancing scalability.
Josh also introduced the Spring MVC Test Framework, a tool for unit testing controllers with mocked servlet APIs. This framework, revamped for 3.2, integrates seamlessly with existing test contexts, promoting better code quality through isolated testing.
Additionally, upgrades to the Spring Expression Language (SpEL) and backported features from 3.1.x bolster the framework’s expressiveness and compatibility. Josh emphasized that these changes maintain Spring’s low-risk upgrade path, ensuring stability for enterprise adopters.
Looking Ahead to Spring 3.3
Josh then previewed Spring 3.3, expected in late 2013, which promises substantial innovations. Central to this release is support for Java SE 8 features, including lambdas, which align naturally with Spring’s single abstract method interfaces. He showcased how lambdas simplify callbacks in components like JdbcTemplate, reducing boilerplate code.
Furthermore, Josh touched on enhanced Groovy support and the integration of the Grails Bean Builder, expanding Spring’s appeal for dynamic languages. The release will also track Java EE 7 APIs, such as JCache 1.0 and JMS 2.0, with annotation-centric endpoints for message-driven architectures.
WebSocket support, crucial for real-time web applications, will be fully integrated into Spring MVC, complementing existing messaging capabilities in Spring Integration.
Strategic Motivations and Community Impact
Throughout his talk, Josh articulated the motivations behind Spring’s shorter release cycles, aiming to deliver timely features without overwhelming users. He stressed the framework’s alignment with emerging standards, positioning it as a bridge between Java SE 7/8 and EE 7.
Josh also shared insights into community contributions, mentioning the GitHub-based model and Gradle builds that foster collaboration. He encouraged feedback, highlighting his role in curating community resources like the weekly roundup on springsource.org.
In closing, Josh fielded questions on topics like bean metadata navigation and conditional caching, reinforcing Spring’s commitment to developer productivity. His enthusiasm underscored Spring’s enduring value in navigating the complexities of modern software engineering.