JustZack / audit-congress

A website collecting & displaying information about the activities of congress.
0 stars 0 forks source link

Handle safe cache updates when the information is requested during update #55

Closed JustZack closed 6 months ago

JustZack commented 7 months ago

the solution might vary depending on which cache is updating.

Congress/Sessions is quick, so just wait for it to finish (probably less than a second) Members is not as quick, either wait for it to finish or allow for periodic checkin via API Bills is very slow, so need to allow for periodic check in via API

JustZack commented 6 months ago

API checkin can be a frontend thing, just need to inform the frontend that that info is being updated.