-
Hello, I have:
FROM node:18-alpine
WORKDIR /app/medusa
COPY package.json .
RUN npm install -g @medusajs/medusa-cli@latest
RUN npm install --omit=dev
COPY . .
CMD medusa start What can I do to reduce the start up time? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Medusa is built with the assumption that the server is always on - we are exploring some options for making Medusa more suitable in serverless environments, which includes reducing the cold start time, but there is no timeline on when work like that would be ready. Sorry I can't be of better help right now :( |
Beta Was this translation helpful? Give feedback.
-
With the next release, the cold start time should be improved. Let us know when you gett the release how much time it takes. When i lunch the server it takes around 3-4 sec |
Beta Was this translation helpful? Give feedback.
-
@adrien2p Thank you for the fix Adrien, on my side generally there are ~ 1s faster startup. But it's still over 13s on the cloud. Not sure why but it's only 4~5s for dev mode on my local machine I expect it to be at most double that in real world. I think there are some fundamental problem with my setup. |
Beta Was this translation helpful? Give feedback.
Medusa is built with the assumption that the server is always on - we are exploring some options for making Medusa more suitable in serverless environments, which includes reducing the cold start time, but there is no timeline on when work like that would be ready. Sorry I can't be of better help right now :(