diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2025-04-27 22:36:45 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2025-04-27 22:36:45 -0600 |
commit | ba700c31fceb4554ccbb3181f0e5747fcf5c3259 (patch) | |
tree | fb2a3f156bc4cbbb04af1374b3ef52fded5f2078 | |
parent | 7d5cf0adc6e600e976e8633a91f01b4673c8584d (diff) |
add design decisions
-rw-r--r-- | README.md | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 ``` |