---
title: "Riptide HTTP Client tutorial"
description: "Riptide is Zalando's open source Java HTTP client built around declarative client-side response routing, where responses are dispatched to handlers by status, status series, reason phrase or content type, much like server-side request routing."
url: "https://swe.quest/articles/riptide-http-client-tutorial-f09337183601e51f"
canonical: "https://engineering.zalando.com/posts/2023/06/riptide-http-client-tutorial.html"
source: "Zalando Engineering"
published: "2023-06-28"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["jvm","api-design","open-source"]
---

# Riptide HTTP Client tutorial

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2023-06-28, 5 min read, How-to. Original: [https://engineering.zalando.com/posts/2023/06/riptide-http-client-tutorial.html](https://engineering.zalando.com/posts/2023/06/riptide-http-client-tutorial.html)

## Summary

Riptide is Zalando's open source Java HTTP client built around declarative client-side response routing, where responses are dispatched to handlers by status, status series, reason phrase or content type, much like server-side request routing. The tutorial covers adding the Maven dependency, building an Http object with an executor and request factory, sending GET and POST requests, and using dispatch with Navigators for flat and nested routing, including catch-all bindings and pass() no-op handlers. Requests run on an Executor and return CompletableFuture\<ClientHttpResponse\>, and the riptide-capture module's Capture class lets callers get a deserialized body object such as a Product back from the future.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- Java ([easy posts on Java & JVM](https://swe.quest/tags/jvm.md?difficulty=easy))
- HTTP status codes
- CompletableFuture
- Maven

## Keywords

Riptide, Zalando, riptide-capture, Spring, CompletableFuture, Maven

## Related posts

- [Ready, steady, goa: our API setup](https://swe.quest/articles/ready-steady-goa-our-api-setup-f9a8a900b508af76.md): incident.io · 2025-08-11 · Medium · 10 min read · API design, Go, TypeScript, Developer productivity
  incident.io defines its HTTP API in Goa's design-first DSL, which generates net/http transport handlers, validation code, typed Go service interfaces, OpenAPI 3.0 specs and Go clients.
- [How to Build a Web App with and without Rails Libraries](https://swe.quest/articles/how-to-build-a-web-app-with-and-without-rails-libraries-4251321e95591e52.md): Shopify Engineering · 2021-03-26 · Medium · 28 min read · Ruby, Networking, API design
  Builds a small birthday-tracker web app called Mirth from scratch in plain Ruby, then rebuilds it with Rails components to show what each layer abstracts away.
- [Macramé: Untangling the Knot on the Etsy Android Listing Screen](https://swe.quest/articles/macrame-untangling-the-knot-on-the-etsy-android-listing-screen-4979a6b6f6a452f8.md): Etsy Code as Craft · 2024-03-18 · Medium · 7 min read · Mobile, Java & JVM, Refactoring & migrations, Testing, Performance engineering
  Etsy rewrote its 4000-line Android listing Fragment into Macramé, a Mobius-inspired unidirectional architecture: a single immutable State exposed via StateFlow, flattened into small UI models rendered by a RecyclerView with ListAdapter diffing, and a sealed-class Event dispatcher routing actions to single-purpose Handlers that update State, launch async work, or emit SideEffects to the Fragment.
- [Using the GitHub Copilot SDK for Java](https://swe.quest/articles/using-the-github-copilot-sdk-for-java-66dac2758b7e2365.md): GitHub Engineering · 2026-08-10 · Medium · 9 min read · Java & JVM, AI agents, LLMs, Concurrency
  GitHub Copilot SDK for Java lets server-side Java code create agent sessions, register tools, send prompts and stream events without depending on Langchain4j or Spring AI, and with BYOK it can target OpenAI, Azure, Anthropic or compatible endpoints.
- [All you need to know about timeouts](https://swe.quest/articles/all-you-need-to-know-about-timeouts-eed69868c3110b5a.md): Zalando Engineering · 2023-07-25 · Medium · 8 min read · Resilience, Microservices, Networking, Java & JVM
  Timeouts on remote calls should always be set explicitly, because library defaults (like Java HttpClient's infinite timeout) let stuck downstream services exhaust thread pools and other resources.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
