💾 Archived View for dioskouroi.xyz › thread › 29392312 captured on 2021-11-30 at 20:18:30. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
________________________________________________________________________________
Looks sweet. How hard would it be to run in a multi-tenant scenario? Does/could the plugin system offer such flexibility?
We currently don't support it out-of-the-box, but a community member is building a custom multi-tenant solution on top of Medusa essentially using the engine as building blocks.
Our architecture allows you to create custom entities, services and endpoints in your own Node.js project. Additionally, we use Avilix for dependency injection which allows you to use all services across all parts of the system; core, plugins, your custom project. In combination, you are provided with the primitives that can handle commerce business logic in almost any type of project.
Do you allow serverless deployments? Or does it have to be running on a docker / machine?
Haven't investigated deploying Medusa to a serverless environment yet. We use background workers to process jobs from a Bull queue and those do not necessarily finish within the lifetime of a request. To allow for a serverless setup, we would need to handle these jobs differently, so that they can be carried out even though the servers scale to zero.