Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Optimize API Startup Time by Logging Module Initialization Timings #8704

Closed
rahul-rocket opened this issue Jan 6, 2025 · 0 comments
Closed
Assignees
Labels
priority: highest This issue is top priority scope: server Server / API scope type: enhancement ✨ New feature or request

Comments

@rahul-rocket
Copy link
Collaborator

Description:

The current API startup time is slow, taking 3-4 minutes to restart. This significantly impacts development efficiency. The primary issue seems to be that certain modules take too much time to initialize.

Proposed Solution:

1. Log Module Bootstrap Timings:

  • Write a utility to log the initialization time for each module during the application bootstrap process.
  • This will help identify the modules that are causing delays.

2. Optimization Plan:

  • Use the logged data to analyze and optimize the slow modules.
  • Explore techniques such as lazy loading, reducing unnecessary dependencies, and optimizing configurations.

Acceptance Criteria:

  • A log should display the initialization time for each module during startup.
  • Identify the modules that take the most time.
  • Propose and implement optimizations to reduce startup time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: highest This issue is top priority scope: server Server / API scope type: enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant