Audit performance

General Discussion

Suggested Topics


  • 0 Votes
    5 Posts
    2k Views

    it works, thanks for all your answers, I'm reassured.

  • 2 Votes
    12 Posts
    4k Views

    One possible problem with this testing is since you use ip_hash in the nginx config and run the locust/siege/ab etc from a machine all the requests will be directed to a single nodebb instance. So having 2 nodebb processes does't help since all requests are coming from the same IP. You can confirm that by checking cpu usage in top during the bench.

  • Forum performance

    General Discussion
    0 Votes
    12 Posts
    8k Views

    Never had any kind of performance issues. Always quick loading with no delays.

    I can't say that for all of my vb run forums.

  • 0 Votes
    4 Posts
    2k Views

    @belstgut said:

    Not really sure what all the hype about mongodb/redis lately is, if you can use well tested sql databases.

    MongoDB is well tested too. But beyond being super stable, it is screaming fast - far faster than any relational database, it has amazing sharding properties, it speaks native JSON, it is getting a massive amount of active development, it is considered the native database for Node.js on which NodeBB is built and it scales like crazy.

    Now the big one.... when using Node... those "well tested sql databases" are not well tested. MongoDB is far more stable and tested than any of them and, in fact, lack of highly reliable drivers is a major issue for relational (what you call SQL) databases.

    So there are very, very good reasons to use NoSQL, especially MongoDB specifically. Speed, stability, battle tested, native, etc. I'm not actually clear on any upside to using a relational database here. Relationships are nice, but would they add any value at all in an online community infrastructure?

    Also, I should note, some online communities that we have dealt with have scaling issues specifically because they eschewed this advice and went with those "well tested" relational databases. Once they grew and got busy they were unable to keep pace and they bogged down and had to throw crazy amounts of money at keeping respectable performance when MongoDB or other similar datastore could have been faster for cheaper.

  • 0 Votes
    2 Posts
    890 Views

    We mostly use !!var, but filtering an array so you can get rid of falsy values with arr = arr.filter(Boolean) is neat as well 🙂