3.3.11. Infrastructure Modules

In this chapter, you’ll learn about Infrastructure Modules.

What is an Infrastructure Module?#

An Infrastructure Module implements features and mechanisms related to the Medusa application’s architecture and infrastructure.

Since modules are interchangeable, you have more control over Medusa’s architecture. For example, you can choose to use Memcached for event handling instead of Redis.


Infrastructure Module Types#

There are different Infrastructure Module types including:

Diagram illustrating how the modules connect to third-party services

  • Cache Module: Defines the caching mechanism or logic to cache computational results.
  • Event Module: Integrates a pub/sub service to handle subscribing to and emitting events.
  • Workflow Engine Module: Integrates a service to store and track workflow executions and steps.
  • File Module: Integrates a storage service to handle uploading and managing files.
  • Notification Module: Integrates a third-party service or defines custom logic to send notifications to users and customers.
  • Locking Module: Integrates a service that manages access to shared resources by multiple processes or threads.

Infrastructure Modules List#

Refer to the Infrastructure Modules reference for a list of Medusa’s Infrastructure Modules, available modules to install, and how to create an Infrastructure Module.

Was this chapter helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break