Jeromy  Lowe

Jeromy Lowe

1594024434

How to Build Fault Tolerant Redis Network With Spring Boot and Docker

Editor’s note: this article has been edited to use a more thoughtful primary/secondary relationship between machines rather than the former, culturally insensitive terminology. In following along, depending on the terminology you use locally, you may need to update what we reference as primary/secondary here to match your systems. Thanks!


In distributed systems, achieving fault tolerance is one of the key criteria for success.

Let’s look at achieving fault tolerance and replication in a Redis network with Redis cluster and sentinels.

In this tutorial I’ll cover:

  • Introduction to Redis
  • Creating a spring boot application with Redis cache using Docker
  • Different ways to build a fault-tolerant Redis network
  • Sharding with a redis cluster
  • Replication with redis cluster
  • Redis primary-secondary network with sentinel (no sharding)

Introduction to Redis

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

Redis has built-in replication, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

In order to achieve its outstanding performance, Redis works in-memory.

#docker #spring-boot #redis #java

What is GEEK

Buddha Community

How to Build Fault Tolerant Redis Network With Spring Boot and Docker
Jeromy  Lowe

Jeromy Lowe

1594024434

How to Build Fault Tolerant Redis Network With Spring Boot and Docker

Editor’s note: this article has been edited to use a more thoughtful primary/secondary relationship between machines rather than the former, culturally insensitive terminology. In following along, depending on the terminology you use locally, you may need to update what we reference as primary/secondary here to match your systems. Thanks!


In distributed systems, achieving fault tolerance is one of the key criteria for success.

Let’s look at achieving fault tolerance and replication in a Redis network with Redis cluster and sentinels.

In this tutorial I’ll cover:

  • Introduction to Redis
  • Creating a spring boot application with Redis cache using Docker
  • Different ways to build a fault-tolerant Redis network
  • Sharding with a redis cluster
  • Replication with redis cluster
  • Redis primary-secondary network with sentinel (no sharding)

Introduction to Redis

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.

Redis has built-in replication, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

In order to achieve its outstanding performance, Redis works in-memory.

#docker #spring-boot #redis #java

Were  Joyce

Were Joyce

1620751200

How to Configure the Interceptor With Spring Boot Application

In the video in this article, we take a closer look at how to configure the interceptor with the Spring Boot application! Let’s take a look!

#spring boot #spring boot tutorial #interceptor #interceptors #spring boot interceptor #spring boot tutorial for beginners

Were  Joyce

Were Joyce

1620720872

Spring vs Spring BooDifference Between Spring and Spring Boot

As an extension of the Spring Framework, Spring Boot is widely used to make development on Spring faster, more efficient and convenient. In this article, we will look at some of the parameters were using Spring Boot can drastically reduce the time and effort required in application development.

What is Spring?

Spring Boot

Difference between Spring and Spring Boot

Advantages of Spring Boot over Spring

Conclusion

#full stack development #spring #spring and spring boot #spring boot