Skip to content

Commit b2a20d3

Browse files
committed
add managed redis
1 parent 3cc1852 commit b2a20d3

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

docs/concepts/managed-storage.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Managed Storage
3+
description: Defang can help you provision managed storage services.
4+
sidebar_position: 450
5+
---
6+
7+
# Managed Storage
8+
9+
Defang helps you provision the infrastructure you need to run your services. That infrastructure is designed to scale in and out without persistent storage, so you can build highly scalable services. But Defang can also help you provision managed services to store and persist your data, like [caches](#managed-redis), databases[<sup>\*</sup>](#managed-postgres) , and object storage[<sup>\*</sup>](#managed-object-storage).
10+
11+
## Managed Redis
12+
13+
Redis is an in-memory data structure store widely used for caching, real-time analytics, and session management due to its high performance, low latency, and support for various data types. Defang can help you provision a managed Redis instance. To read more about the specifics of how this works for each provider, see the following:
14+
- [Playground](../providers/playground#managed-redis)
15+
- [AWS](../providers/aws#managed-redis)
16+
17+
### How to use Managed Redis
18+
19+
To use managed Redis, in your `compose.yaml` file, use the `x-defang-redis` extension to define your Redis service. Adding the annotation will tell Defang to provision a managed instance, rather than running Redis as a service. Here's an example:
20+
21+
```yaml
22+
redisx:
23+
image: redis:6.2
24+
x-defang-redis: true
25+
restart: unless-stopped
26+
ports:
27+
- mode: host
28+
target: 6379
29+
```
30+
31+
## Managed Postgres
32+
33+
:::info
34+
As of July 22, 2024, managed Postgres is in development.
35+
:::
36+
37+
Postgres, or PostgreSQL, is an advanced open-source relational database system known for its robustness, extensibility, and compliance with SQL standards, making it a popular choice for complex applications requiring reliable data integrity and sophisticated querying capabilities.
38+
39+
## Managed Object Storage
40+
41+
:::info
42+
As of July 22, 2024, managed object storage is planned for future development.
43+
:::

docs/providers/aws.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AWS
33
description: Defang allows you to easily create and manage full, scalable applications with AWS.
4-
sidebar_position: 000
4+
sidebar_position: 010
55
---
66

77
# AWS
@@ -43,3 +43,7 @@ To deploy your services, the Defang CLI packages your code and uploads it to an
4343
### Runtime
4444

4545
The provider runs your workloads using ECS using Fargate. It provisions a VPC with public and private subnets, and deploys your services to the private subnets. It then provisions an Application Load Balancer (ALB) and routes traffic to your services.
46+
47+
### Managed Redis
48+
49+
When using [Managed Redis](../concepts/managed-storage.md#managed-redis), the Defang CLI provisions an ElastiCache Redis cluster in your account.

docs/providers/playground.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Playground
3+
description: The Defang Playground is a free tier that allows you to experiment with Defang.
4+
sidebar_position: 000
5+
---
6+
7+
The Defang Playground is a free tier that allows you to experiment with Defang. The Playground is a shared that cannot be used to run production workloads. The Playground is a great way to get started with Defang and to experiment with the Defang CLI.
8+
9+
This page highlights architectural considerations when deploying to the playground and any differences you might encounter when deploying to the playground versus deploying to your own cloud account.
10+
11+
## Overview
12+
13+
Overall, the Defang Playground is very similar to deploying to your own cloud account. The Playground runs on a Defang-managed AWS account, so you can expect it to work similarly to deploying to [AWS](./aws.md).
14+
15+
## Managed Redis
16+
17+
The playground supports [Managed Redis](../concepts/managed-storage.md#managed-redis). Fundamentally, this works the same as it does in [AWS](./aws.md#managed-redis).
18+

0 commit comments

Comments
 (0)