Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Improve developer experience with Spring Interf...

Improve developer experience with Spring Interface Clients Spring I/O 2024

Spring now allows you to easily create elegant, highly readable, interface-based HTTP and RSocket clients. In this session we will discuss how developers can best use the clients in their applications to make HTTP and RSocket communication seamless.

During the presentation, we will go over various popular use-cases, but we will also discuss more complex scenarios, including how to best handle errors, override preset elements in individual requests, work with URIs, or pass attributes to underlying filter functions. We will show how to set up Spring Interface Clients with different underlying HTTP clients and how to easily integrate them with Spring Cloud LoadBalancer. Last but not least, we will take a peek into auto-configurations for Interface Clients.

Olga Maciaszek-Sharma

May 31, 2024
Tweet

More Decks by Olga Maciaszek-Sharma

Other Decks in Technology

Transcript

  1. About Olga Staff Software Engineer in Spring Cloud team Spring

    Cloud LoadBalancer, Spring Cloud OpenFeign, Spring Cloud Netflix, AOT and native image support in Spring Cloud projects, Spring Interface Clients
  2. RSocket Reactive Streams semantics on protocol level • Message-driven, asynchronous

    • No client/ server distinction once connection is made • 4 modes ◦ Fire and Forget ◦ Request/ Response ◦ Request/ Stream ◦ Channel
  3. RSocket Reactive Streams semantics on protocol level • Binary •

    Flow control ◦ Backpressure ◦ Leasing • Protocol support: ◦ TCP ◦ WebSockets ◦ Aeron ◦ QUIC?
  4. Match HTTP clients with infrastructure • Find/ create WebClient/ RestClient/

    RestTemplate/ RSocketRequester • Find/ create HTTP/ RSocket ServiceProxyFactory • Qualifier/ dedicated annotation/ naming convention • Default and per client implementations
  5. 100 Broadcom Proprietary and Confidential. Copyright © 2024 Broadcom. All

    Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. Check out what’s happening at the VMware Tanzu Booth! And beyond Meet & Greet Josh Long | May 30 16:00-16:30 Customer appreciation party | May 30 21:00- 23:00 | Camping Mar Spring Office Hours Live with DaShaun Carter and Dan Vega | May 31 11:00 - 12:30 Grand Raffle | May 31 16:30