Skip to content

I seem to gain proficiency in "JavaScript programming" skill. My level is going up, and I'm able to code more and more proficiently. I even think that it can actually be possible for me to code even JS backends.

I was kinda opposed to the idea of JS in backend because I heard Node.js is single-threaded and I thought it's gonna limit my performance. Well, turns out if you code your app well (and that applies to every programming language, not only JS) it can scale well even if the server is single-threaded. Just launch more of them!

Concurrent reads aren't a problem at all. Concurrent writes can be mitigated with locks on the database and maybe some sort of conflict management. That's why even slow apps can scale well if you write them well. Just launch more instances.

Glitch.com and hosted apps there

I see no "Pricing" button on Glitch's webpage. Probably means it's free. This feels too good to be true, but if the price is just learning JavaScript well enough, than it may be worth it. The databases I'm working with are usually either Redis or flat files, and I want to add CouchDB to my repertoire. Glitch seems to support flat files, and having a database host (for example, my own always-connected laptop that sits on the window) could allow me to use a different database.

The rate limit allows for a bit more than one request per second, which is fine for small applications and sites almost nobody reads (like mine). I don't think I could cease work on pyindieblog, since I grew so attached to the project, but some on-the-side things may be hosted on Glitch. Who knows?