Skip to content

Commit

Permalink
change redis to mysql
Browse files Browse the repository at this point in the history
Signed-off-by: yaron2 <[email protected]>
  • Loading branch information
yaron2 committed Sep 26, 2023
1 parent 8e85140 commit f79b298
Showing 1 changed file with 14 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ To enable the outbox feature, add the following required and optional fields on
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: mydb
name: mysql-outbox
spec:
type: state.redis
type: state.mysql
version: v1
metadata:
- name: redisHost
value: localhost:6379
- name: redisPassword
value: ""
- name: connectionString
value: "<CONNECTION STRING>"
- name: outboxPublishPubsub # Required
value: "mypubsub"
- name: outboxPublishTopic # Required
Expand All @@ -60,38 +58,34 @@ spec:

If you want to use the same state store for sending both outbox and non-outbox messages, simply define two state store components that connect to the same state store, where one has the outbox feature and the other does not.

#### Redis state store without outbox
#### MySQL state store without outbox

```yaml
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: mydb
name: mysql
spec:
type: state.redis
type: state.mysql
version: v1
metadata:
- name: redisHost
value: localhost:6379
- name: redisPassword
value: ""
- name: connectionString
value: "<CONNECTION STRING>"
```

#### Redis state store with outbox
#### MySQL state store with outbox

```yaml
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: mydb-outbox
name: mysql-outbox
spec:
type: state.redis
type: state.mysql
version: v1
metadata:
- name: redisHost
value: localhost:6379
- name: redisPassword
value: ""
- name: connectionString
value: "<CONNECTION STRING>"
- name: outboxPublishPubsub # Required
value: "mypubsub"
- name: outboxPublishTopic # Required
Expand Down

0 comments on commit f79b298

Please sign in to comment.