So I want the apps I build to have immediate updates pushed out while also having lightening fast data transfer. I like working on the MEAN stack, so the tools would be:
- MEAN using Angular 4
- Redis caching the Mongodb
- Socket.io
- Middleware using passport and JWT for secure sessions?
I personally think a setup like this would provide the primary pillars for an application: speed, security, and functionality. However, I feel that it will be tedious getting them all to work with each other, so I wanted to reach out and get opinions from the community.
Here are some questions below:
-
Is it common for devs to use Redis and a disk-based database? Is that the most typical combination? If so, would Redis access a special nodejs api talking with Mongodb, and feed that information into Redis?
-
Let's say I'm using Passport Google login. Is Passport really the latest and greatest or is there something better? I'm not too familiar with Angular 4 yet (just version one), but in the past I used Passport as middleware on the node route, then created a JWT session that Angular would use.
-
Anyone with experience using Angular and Socket, do they play well together or is it more like using two frameworks together and not a good idea?
Thanks for any answers or insight provided. I'm trying to grasp if this is a viable setup.
via Kenny
No comments:
Post a Comment