I'm a frontend/mobile developer and my side project needs a backend to serve an API. I saw this as the perfect time to get some experience with node.js and I think I have an idea on how to approach this, but I'm looking for some guidance.My service is a single public API call (powered by Express) updated periodically which returns ~30 small objects in nested groups. When I post to the backend, I include the location which goes straight into mongodb (using mongoose). I am thinking to cache the nested output with Redis and recompute with each update (maybe 5-10 times daily). Reads would be significantly more so I think Redis is the best option here.I've had good success implementing this and running things locally. But now I'm wondering how I would deploy something like this to AWS.Is this a good approach? Do I need to run Redis locally alongside express or use something like ElastiCache - could I run this kind of service on Redis alone? I then read about AWS Lambda but (dumb question I know) wouldn't some lambdas be serving from an empty Redis cache?As you can tell, I'm very lost and struggling with all the information I can find. Any help on how to move forward would be greatly appreciated!
Submitted August 16, 2020 at 10:02AM by Scary-Value6852
No comments:
Post a Comment