Y
Hacker News
new
|
ask
|
show
|
jobs
by
r00fus
805 days ago
Couldn't you cache the reads? Not many usages really require real-time from their data store.
1 comments
RockRobotRock
805 days ago
Do you really want to deal with caching logic for what should be a simple API call? Sounds like a convincing argument to use whatever this product is.
link
kellpossible2
804 days ago
It's max a couple of hours work to cache in some local database like sqlite or in memory.
link
internetter
805 days ago
client = (APIcall) => redis.get(sha1(APIcall)) || { res = api(APIcall); redis.set(sha1(APIcall),res) return res }
Not that hard. Like 10 lines of code to get a decentish cache going.
link
hot_gril
805 days ago
Assuming you have Redis
link
internetter
805 days ago
Redis uses like 5mb of baseline RAM and can be deployed in a few lines of docker-compose.
link
hot_gril
805 days ago
I'm not allowed to do that where I work. License is a no-no, can't run jobs without red tape, and there's no Docker either.
link
internetter
805 days ago
Ok? I'm surprised your work lets you build a whole product ontop of google sheets, then. Also, why did you delete your original comment on not having a server?
link
randomdata
804 days ago
Hell, just stick the data in memory.
link
hot_gril
804 days ago
Valid strategy
link