|
1
|
import { Table } from "docs-ui" |
|
2
|
|
|
3
|
export const metadata = { |
|
4
|
title: `In-Memory Workflow Engine Module`, |
|
5
|
} |
|
6
|
|
|
7
|
# {metadata.title} |
|
8
|
|
|
9
|
The In-Memory Workflow Engine Module uses a plain JavaScript Map object to store the workflow executions. |
|
10
|
|
|
11
|
This module is helpful for development or when you’re testing out Medusa, but it’s not recommended to be used in production. |
|
12
|
|
|
13
|
For production, it’s recommended to use modules like [Redis Workflow Engine Module](../redis/page.mdx). |
|
14
|
|
|
15
|
--- |
|
16
|
|
|
17
|
## Register the In-Memory Workflow Engine Module |
|
18
|
|
|
19
|
<Note> |
|
20
|
|
|
21
|
The In-Memory Workflow Engine Module is registered by default in your application. |
|
22
|
|
|
23
|
</Note> |
|
24
|
|
|
25
|
Add the module into the `modules` property of the exported object in `medusa-config.ts`: |
|
26
|
|
|
27
|
```ts title="medusa-config.ts" |
|
28
|
import { Modules } from "@medusajs/framework/utils" |
|
29
|
|
|
30
|
// ... |
|
31
|
|
|
32
|
module.exports = defineConfig({ |
|
33
|
// ... |
|
34
|
modules: [ |
|
35
|
{ |
|
36
|
resolve: "@medusajs/medusa/workflow-engine-inmemory", |
|
37
|
}, |
|
38
|
], |
|
39
|
}) |
|
40
|
``` |