Skip to content

Commit 5127232

Browse files
committed
wip
1 parent 4bd1d02 commit 5127232

File tree

2 files changed

+44
-13
lines changed
  • blog
    • 2024-08-28-redis-cluster-tls-laravel
    • 2024/2024-08-28-redis-cluster-tls-laravel

2 files changed

+44
-13
lines changed

blog/2024-08-28-redis-cluster-tls-laravel/index.mdx

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
slug: 2024/redis-cluster-with-tls-in-laravel
3+
title: Redis Cluster with TLS in Laravel
4+
authors: [justinw, connort]
5+
tags: [laravel, redis, redis-cluster, tls]
6+
---
7+
8+
## Introduction
9+
10+
As a project we built evolved with websockets becoming a far more important feature we wanted to move off of a regular implementation of Redis onto a Redis Cluster to scale for larger usage while giving us the safety of failover and redundancy.
11+
12+
In order to test this we took our `docker-compose.yml` file and set up a few nodes to replicate a cluster that we might have configured in AWS.
13+
14+
```
15+
valkey-cluster-1:
16+
image: bitnami/valkey-cluster:7.2
17+
environment:
18+
- ALLOW_EMPTY_PASSWORD=yes
19+
- VALKEY_CLUSTER_REPLICAS=0
20+
- VALKEY_NODES=valkey-cluster-1 valkey-cluster-2 valkey-cluster-3
21+
valkey-cluster-2:
22+
image: bitnami/valkey-cluster:7.2
23+
environment:
24+
- ALLOW_EMPTY_PASSWORD=yes
25+
- VALKEY_CLUSTER_REPLICAS=0
26+
- VALKEY_NODES=valkey-cluster-1 valkey-cluster-2 valkey-cluster-3
27+
valkey-cluster-3:
28+
image: bitnami/valkey-cluster:7.2
29+
environment:
30+
- ALLOW_EMPTY_PASSWORD=yes
31+
- VALKEY_CLUSTER_REPLICAS=0
32+
- VALKEY_NODES=valkey-cluster-1 valkey-cluster-2 valkey-cluster-3
33+
- VALKEY_CLUSTER_CREATOR=yes
34+
```
35+
36+
:::note
37+
38+
While Valkey is not Redis we wanted to take this chance to explore compatibility with the alternative Redis fork.
39+
40+
:::
41+
42+
43+
{/* truncate */}
44+

0 commit comments

Comments
 (0)