Skip to content

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

@chamishkadinuwan

Description

@chamishkadinuwan

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.

motia.mov

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions