Open jjm3x3 opened 4 weeks ago
Just right off the top of my head I am wondering if this entire milestone should be broken up in a couple of different ways (these are in no particular order for now):
Also, one other thing I am going to put out there right off the bat is that I likely have a bit of a bias towards trying to use something that requires as little overhead to use as possible. Off the bat, that seems like it could look like Vercel KV, but that could be too lean and could cause us to do more work in the long run, so that is one focus of this POC.
Using this comment's list to guide this work I have started to take a look at what the simplest way to add a leagueContestant to a Vercel KV Database might be.
It seems like Vercel's KV Database offering is very simple to get stared with including its quickstart guide. It also seems to be quite compatible with the default Redis as described in this doc of theirs. A few interesting details to note
JSON.*
set of commandsSCAN
command seems like the right way to grab a related set of leagueContestant data based on leagueshow:season:userId
where show
& season
are exactly what you expect and userId
can just be a monotonically increasing id (ex: amazing-race:35:1
)
Here are a few open questions that we should try to get answers to
npm run build
running locally, seemed to fail because the secrets were not available. These seems to indicate to me that these pages are trying to access the KV Database for static site generation. Is that true?/api/install
endpoint which adds data for testing (in combination with Vercel's cli tool int the project portal)
The parameters for this are fairly open-ended, at the moment. As a result of this POC I am expecting that we have a much more solid idea of what kind of backend storage we plan to use and that can probably come about several ways. Playing around with and trying a couple of different options is one and coming up with a one-pager or decision doc explaining an approach is likely the most sensible outcome.