docs: added plugins documentation (#10989)
(Should be merged after the next release) Closes DX-1294
This commit is contained in:
@@ -17,15 +17,25 @@ In a common Medusa application, requests go through four layers in the stack. In
|
||||
3. Modules: Workflows use domain-specific modules for resource management.
|
||||
3. Data store: Modules query the underlying datastore, which is a PostgreSQL database in common cases.
|
||||
|
||||
<Note>
|
||||
|
||||
These layers of stack can be implemented within [plugins](../../fundamentals/plugins/page.mdx).
|
||||
|
||||
</Note>
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Database Layer
|
||||
|
||||
The Medusa application injects into each module a connection to the configured PostgreSQL database.
|
||||
The Medusa application injects into each module a connection to the configured PostgreSQL database. Modules use that connection to read and write data to the database.
|
||||
|
||||
Modules use that connection to read and write data to the database.
|
||||
<Note>
|
||||
|
||||
Modules can be implemented within [plugins](../../fundamentals/plugins/page.mdx).
|
||||
|
||||
</Note>
|
||||
|
||||

|
||||
|
||||
@@ -33,19 +43,23 @@ Modules use that connection to read and write data to the database.
|
||||
|
||||
## Service Integrations
|
||||
|
||||
Third-party services are integrated through commerce and architectural modules.
|
||||
Third-party services are integrated through commerce and architectural modules. You also create custom third-party integrations through a custom module.
|
||||
|
||||
You also create custom third-party integrations through a custom module.
|
||||
<Note>
|
||||
|
||||
Modules can be implemented within [plugins](../../fundamentals/plugins/page.mdx).
|
||||
|
||||
</Note>
|
||||
|
||||
### Commerce Modules
|
||||
|
||||
Commerce modules integrate third-party services relevant for commerce or user-facing features. For example, you integrate Stripe through a payment module provider.
|
||||
[Commerce modules](!resources!/commerce-modules) integrate third-party services relevant for commerce or user-facing features. For example, you integrate Stripe through a payment module provider.
|
||||
|
||||

|
||||
|
||||
### Architectural Modules
|
||||
|
||||
Architectural modules integrate third-party services and systems for architectural features. For example, you integrate Redis as a pub/sub service to send events, or SendGrid to send notifications.
|
||||
[Architectural modules](!resources!/architectural-modules) integrate third-party services and systems for architectural features. For example, you integrate Redis as a pub/sub service to send events, or SendGrid to send notifications.
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user