motia icon indicating copy to clipboard operation
motia copied to clipboard

Very slow startup time in Motia projects (Enterprise especially affected)

Open chamishkadinuwan opened this issue 3 months ago • 3 comments

Environment

Motia Version: Motia 0.12.0-beta.157, Node Version: v22.21.0, OS: Mac

Steps to Reproduce

  1. Create or use an existing Motia project
  2. Add several endpoints/modules
  3. Restart the dev server using motia dev
  4. Observe that startup duration increases as more endpoints are added

Expected Behavior

The project should initialize faster, or the startup process should scale more efficiently as the number of endpoints grows

Actual Behavior

Startup takes a long time, and the delay increases noticeably with more endpoints.

https://github.com/user-attachments/assets/4a2ae063-1d34-4b7f-a664-8e452a5a5d59

Relevant Logs/Console Output


Screenshots

No response

Motia Version

Motia 0.12.0-beta.157

Additional Context

I noticed a performance issue related to project startup time in Motia. When restarting the Motia project, it takes a significantly long time to fully start. In setups with more endpoints and modules enabled, the startup time becomes even longer. The large number of endpoints appears to increase initialization time considerably, which affects developer productivity and slows down the feedback loop during development. We are still at the starting point of our application, and even now the project takes a long time to initialize when starting or restarting. This raises concerns about future scalability because as the project grows, the initialization time may become even slower, impacting development workflow and overall performance.

chamishkadinuwan avatar Nov 24 '25 08:11 chamishkadinuwan

Hey @chamishkadinuwan, Thanks for the issue.

Let us look into this quickly internally and get back to you.

rohitg00 avatar Nov 24 '25 12:11 rohitg00

Hey @chamishkadinuwan, our team is working on it. Thanks for the issue. This is going to be resolved soon.

rohitg00 avatar Nov 24 '25 16:11 rohitg00

Thanks @rohitg00 looking forward to the fix! ☺️

chamishkadinuwan avatar Nov 25 '25 05:11 chamishkadinuwan

cc @ytallo

rohitg00 avatar Dec 03 '25 16:12 rohitg00