Thinking about how to deploy this with the following goals:
Free
Wakes up quickly
Supports infrequent traffic
My idea is to deploy the frontend as a static React site. The user will authenticate with Spotify with the necessary permissions to view and modify their playlists. The frontend will directly call Spotify's API to display their playlists. The actual logic of modifying the playlists will be implemented by a serverless function. To solve the problem of cold start lag, I'll send a request to it at login time, probably with the Spotify API tokens. Then the function will have time to wake up while a user browses their playlists. By the time the user has found the playlist they want to modify, hopefully the function is up and ready to do it.
Need to figure out how to deploy both the frontend static site and serverless function as cheaply as possible, but given the infrequent usage, it shouldn't be too hard.
Thinking about how to deploy this with the following goals:
My idea is to deploy the frontend as a static React site. The user will authenticate with Spotify with the necessary permissions to view and modify their playlists. The frontend will directly call Spotify's API to display their playlists. The actual logic of modifying the playlists will be implemented by a serverless function. To solve the problem of cold start lag, I'll send a request to it at login time, probably with the Spotify API tokens. Then the function will have time to wake up while a user browses their playlists. By the time the user has found the playlist they want to modify, hopefully the function is up and ready to do it.
Need to figure out how to deploy both the frontend static site and serverless function as cheaply as possible, but given the infrequent usage, it shouldn't be too hard.