All eyes on AI: 2026 predictions – The shifts that will shape your stack.

Read now
For developersJava and Redis
Find tutorials, examples and technical articles that will help you to develop with Redis and Java.

#Getting Started

Java community has built many client libraries. For your first steps with Java and Redis, this article will show how to use Jedis, the supported Redis client for Java.
Redis is an open source, in-memory, key-value data store most commonly used as a primary database, cache, message broker, and queue. Redis delivers sub-millisecond response times, enabling fast and powerful real-time applications in industries such as gaming, fintech, ad-tech, social media, healthcare, and IoT.

#Run a Redis server

Follow the instructions in the Redis quick start to get setup with Redis. The rest of this tutorial expects you to have Redis setup and ready to use. You will need the connection string.

#Using Jedis

#Step 1. Add dependencies Jedis dependency to your Maven (or Gradle) project file

#Step 2. Import the required classes

#Step 3. Create a Connection Pool

Once you have added the Jedis library to your project and imported the necessary classes you can create a connection pool.
You can find more information about Jedis connection pool in the Jedis Wiki. The connection pool is based on the Apache Common Pool 2.0 library.

#Step 4. Write your application code

Once you have access to the connection pool you can now get a Jedis instance and start to interact with your Redis instance.
Find more information about Java & Redis connections in the "Redis Connect".

#Movie Database app in Java

Movie Database application illustration for Java using Redis search capabilities
Movie Database app in Java based on Search capabilities

#Leaderboard app in Java

Leaderboard application illustration for Java and Spring with Redis
How to implement leaderboard app using Redis & Java(Spring)

#Ecosystem

As developer you can use the Java client library directly in your application, or you can frameworks like: SpringQuarkusVert.x, and Micronaut.

#More developer resources

Brewdis - Product Catalog (Spring) See how to use Redis and Spring to build a product catalog with streams, hashes and Search
Redis Stream in Action (Spring) See how to use Spring to create multiple producer and consumers with Redis Streams
Rate Limiting with Vert.x See how to use Redis Sorted Set with Vert.x to build a rate limiting service.

#Redis University

#Redis for Java devs

Redis for Java devs teaches you how to build robust Redis client applications in Java using the Jedis client library. The course focuses on writing idiomatic Java applications with the Jedis API, describing language-specific patterns for managing Redis database connections, handling errors, and using standard classes from the JDK. The course material uses the Jedis API directly with no additional frameworks. As such, the course is appropriate for all Java devs, and it clearly illustrates the principles involved in writing apps with Redis.