Zero Second Downtime


  • Admin

    I hate waiting.

    I especially hate waiting for programs to compile when I want to make a small change, which is one of the reasons why I like web programming so much. While others would be waiting for their programs to compile, I could maintain my groove and concentration by immediately refreshing the browser to check my work before continuing.

    Node being pretty damn fast means I don't have to wait all that long either, although there's no getting around a lot of the pre-processing that needs to be done before a NodeBB instance is "ready".

    During a typical start-up, the following is done...

    Click here to see the full blog post



  • Utterly magnificent. I'd say that I loved you, but I might need to play that card later on. Take my upvote instead!

    In all seriousness though, this is awesome. No downtime is phenomenal, and practically unheard of.


  • Admin

    Thanks @Ted! A lot of the inspiration for zero downtime stems from the same forums and CMS systems we're purportedly replacing*: Installing a plugin is literally a one-click affair, whereas in NodeBB, it's more like:

    1. Click "install" (or run npm install {plugin_name})
    2. Activate plugin
    3. Restart NodeBB
    4. Refresh the page to expose the new admin page for the plugin (if any)
    5. Optionally - Set up the plugin and restart NodeBB again

    Two restarts and a refresh just to install a plugin? I found that unacceptable. It was done this way because NodeBB is a server, not just an app sitting atop a server. That's part of the reason why it's fast, but also means the server needs to be restarted if things like routes, or minified scripts change.

    You might also remember a very very brief time when every time you activated a plugin or saved plugin settings, NodeBB would automatically restart. It become unbearable quickly, since restarts could take up more than 30 seconds for forums with many plugins enabled. With this new reloader system, I'm contemplating re-introducing automatic reloading for plugin activations.

    * Not that I consider NodeBB a CMS, but who am I to argue when people use NodeBB that way?



  • @julian, I dont think it's fair to define NodeBB. The platform is so flexible, it can be whatever you want or need it to be.

    Truthfully, it is neither a forum nor a discussion board, as it has too much potential to be summed up in such a manner. It certainly has elements of each, but it doesn't feel, to me anyways, to possess the limiting factors of each.

    If that makes any sense at all.



  • Super excited about these changes. NodeBB restarts get a bit old when you're trying to set up your forum and you're playing with all the plugins.


  • Plugin & Theme Dev

    Great @julian!



    • Not that I consider NodeBB a CMS, but who am I to argue when people use NodeBB that way?

    -julian

    I am planning on using NodeBB as a full node platform 👍


  • Anime Lovers

    Very intresting the comunication between wordpress and nodebb forum.


  • Swedes

    Always nice with interesting blog updates even if they are 2 years old 😛

    I just say Cool Beans 😛



  • Always nice with interesting blog updates even if they are 2 years old ....


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.