Tweets-as-an-Image icon indicating copy to clipboard operation
Tweets-as-an-Image copied to clipboard

Added Image Caching for faster response times

Open ProCode47 opened this issue 3 years ago • 3 comments

I'm working on a project that is utilizes your API and lambda functions and with hundreds of functions hitting the same endpoint, the API couldn't quite handle it so I added caching functionality via Redis and it's all good now. anyways.. Awesome work sir!

ProCode47 avatar Aug 09 '22 19:08 ProCode47

Hi @ProCode47, Glad you liked it! Thanks for creating PR for caching I will test it and get back to you on this. Are you using the same API endpoint I have hosted? If yes, I would recommend setting it up by forking and creating your Twitter Token and making it private, it's super easy as I have hosted it on the free-service and using free-tier services so it will exhaust very soon and won't help your project in the long run. And the cache data itself won't get updated as after a few thousand calls the API won't return anything and you may have to wait another month for getting the updated response

starkblaze01 avatar Aug 10 '22 06:08 starkblaze01

yea I actually created a fork and got my twitter token and hosted it separately as well. Yea even my own hosted fork has this free-tier limitation as well. But at least it does the bare minimum for now. I'll maybe try to upgrade or look into other options like memory optimization and such

ProCode47 avatar Aug 11 '22 11:08 ProCode47

Awesome, Glad to know, Thanks a ton for your contribution!

starkblaze01 avatar Aug 11 '22 16:08 starkblaze01