From ba700c31fceb4554ccbb3181f0e5747fcf5c3259 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 27 Apr 2025 22:36:45 -0600 Subject: add design decisions --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4921d35..c20958a 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,14 @@ There is no real-authentication implemented. There is a dummy user in the databa In production, rather than specifying the user ID as part of the bid, the backend should authenticate the user and associate the bid with the authenticated user's ID. -### Caching - -In production, rather than calling the gridstatus API to get the market data, the backend should cache the data locally and update it periodically. - -Also, rather than using the simple in-memory cache, the backend should use a more robust caching mechanism such as Redis or Memcached. - ### Bid Management Currently there is a cron job running every hour to check the bids in the database and then process them. In this process the market data is fetched in real-time from the gridstatus API. Ideally, the database is updated with the latest market data before processing the bids. That way the cron job can simply process the bids. +### Timezones + +Everything is handled as UTC + Offset. Submit bid page shows the current time in the user's timezone as well as the timezone for the market. Everything else is displayed in UTC for now. + ## Project Structure ``` -- cgit v1.2.3