As an exercise, I am going to create a Google Docs inspired app (for my home network/personal use, not trying to compete). Same concept, with documents that will be editable from more than one machine at the same time and the ability to see what the other user(s) are editing. I plan to use Express on the backend, but beyond that I'm unsure.I'm wondering what people think would be the best way to approach this? Is this something where Socket.io would be helpful? Or should I simply be querying a database repeatedly? I plan to have the app update each user once every few seconds, maybe as often as every second (there won't ever be more than 4 instances of the web app so this should be pretty feasible). But of course, when doing something like this, performance starts to become a real issue, sending requests back and forth constantly.I want this to be a learning experience so I'm open to any and all suggestions for any packages/modules that could be helpful here, any design patterns that would be advisable, etc. I'm also going to be using TypeScript (though I'm relatively new to TypeScript), so if there are any features there that may be particularly useful, that'd be good to hear as well.I've made something like this before in PHP with MySQL, and it certainly worked, but I'm sure that I was doing it in a way that wouldn't have scaled at all...
Submitted August 05, 2018 at 02:30AM by PM_ME_A_WEBSITE_IDEA
No comments:
Post a Comment