Sunday, 14 July 2019

I am evaluating whether I should migrate from Express to Koa and could use some directions...

I have an express app running on EC2 currentlyI am working on the next version and was thinking I would switch to Koa and give it a whirlWhy? Because Koa seems to have higher throughput and is lighter as per the benchmarks HEREHere are the functions I am planning to use and am looking to see if Koa can handle them allLocal Login, seems like koa-passport is a direct optionMongoDB with mongoose, assuming that koa has something for thisPostgresQL supportLogin with Facebook, Twitter, GitHubLusca = koa-lusca seems outdatedHelmet = ?Redis Sessions = Planning to use sessions so JWT is a no-go on thisPayment gateway integration = Stripe / Paypal etc, would Koa need separate packages for theseVueJS frontend: Not even express has a direct integration with Vue. Closest thing we have is EXPRESS-VUE Express Vue however does not support Vuex as per the issue HEREHow does this work? 2 portsor 1 portWriting the vue files as a streamI am looking for server side rendered pages or a setup where each page needs to be loaded from the serverRouting: Seems like koa-router can get the job doneIORedis: Guessing it doesnt matter whether this runs on Koa or ExpressWebsockets: Not exactly SocketIO but the more general ws packageKoa Status Monitor: seems like a good replacement to express status monitorFlash messages: how would you handle these?Dotenv support?Clustering with PM2, hopefully this part has no issuesSome advice is super appreciated. Thank you for reading the long post

Submitted July 14, 2019 at 01:33PM by amazeguy

No comments:

Post a Comment