Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@cr78 I write an Api which accesses another api and i want to cache some data. I also have to implement rate limiting
-
cr782817y@404response if your api uses express, google "express rate limit", there's a middleware that can do that easily. For caching I recommend redis (scalable, fast and powerful) in which you could store your values with a set timeout (see google "redis cache")
-
@cr78 thank you, I will have a look. We have already added us :) My old name was mightyleguan
-
@cr78 haha, np :D i will probably work on my project again later, i will tell you if it works
-
Take a look at Pyhton and Flask. It is ideal for light REST microservices (restful apis). Requests and Requests-cache are packages you need. And it is all you need. Flask's Quick Start is all you have to know, then take a look at Requests-cache Quick Start, and well, thats all. Caching in memory/database/redis, you can also write your own provider if you want to.
Related Rants
-
fatlard199320Finally got the last of the hardware pieces for my pi book pro in today. Figured out how I'm going to lay it o...
-
Wallpaper7"Remember that script you made a few years ago? How did you make it work with product x?" Dude, I can barely ...
-
TrojanMorse26Update on this: https://devrant.com/rants/1641198/... I was a little tired but made updated and currently get...
I am at that point of the project where I have absolutely no idea how to do what i want to do.
undefined
personal projects
no idea