You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scremsong_social_media_cache table to cache the results of appropriate API calls
Id
Platform (e.g. Twitter, Instagram, ...)
Request Type (e.g. GET, POST)
Endpoint (e.g. /searches/tweets)
Parameters (URL encoded parameter string)
Last Requested (Timestamp)
Result (BLOB)
TTL (Timestamp)
In Progress (Boolean)
Pruning Strategy (Age, # of Items)
Pruning Threshold (Per Above)
Constants (define in soft config - updatable without a deploy?)
TTL Base
TTL Increment
TTL Max
TTL timestamp will increase using a back-off approach if we receive no new data.
When a request comes in we'll check the cache table to see if we can use the cached result. If not, we'll update the table and fire off a request. If a request is already in progress we'll sleep and wait a few times and then fail back to the client.
Rate limits will be passed back to the client to handle appropriately (e.g. show a message, use a modal with a web intent)
We assume one column = one API call
The text was updated successfully, but these errors were encountered:
scremsong_social_media_cache
table to cache the results of appropriate API callsId
Platform
(e.g. Twitter, Instagram, ...)Request Type
(e.g. GET, POST)Endpoint
(e.g. /searches/tweets)Parameters
(URL encoded parameter string)Last Requested
(Timestamp)Result
(BLOB)TTL
(Timestamp)In Progress
(Boolean)Pruning Strategy
(Age, # of Items)Pruning Threshold
(Per Above)TTL Base
TTL Increment
TTL Max
TTL
timestamp will increase using a back-off approach if we receive no new data.sleep
and wait a few times and then fail back to the client.The text was updated successfully, but these errors were encountered: