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

Optimize dub.co and youtube integrations #263

Open
gaboesquivel opened this issue Jul 8, 2024 · 0 comments
Open

Optimize dub.co and youtube integrations #263

gaboesquivel opened this issue Jul 8, 2024 · 0 comments
Assignees
Labels
chore Routinary tasks

Comments

@gaboesquivel
Copy link
Member

Optimize integrations for Dub.co and YouTube at build time in Next.js. Save the results to a file and ensure the data is read only once every 3 days for YouTube, and only once for Dub.co shortlinks. Define a format to save data as "slug:shortlink".

Task List

  1. Setup a Timer:
    • Implement a timer mechanism to check the last fetch time for YouTube (every 3 days).
    • Ensure Dub.co shortlinks are fetched only once and not updated thereafter.
  2. File Handling:
    • Create a utility function to read/write the JSON file in the format "slug:shortlink".
    • Integrate file read/write operations within the timer and API functions.
  3. Code Refactoring and Optimization:
    • Ensure all functions are modular and reusable.
    • Optimize code for minimal build time and runtime performance impact.

This task list focuses on optimizing the integration processes, managing data fetching frequencies, and ensuring efficient data storage in the specified format.

@gaboesquivel gaboesquivel added the chore Routinary tasks label Jul 8, 2024
@gaboesquivel gaboesquivel self-assigned this Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Routinary tasks
Projects
Status: No status
Development

No branches or pull requests

1 participant