@antosik said in NodeBB + MongoDB + Scaling (k8s):
@PitaJ
I'm not against it ^^.
Just want to research a bit before giving AWS more money. :d
@baris
So, we need to try:
implement something like src\database\redis\pubsub.js in mongo;
check out socket.io-adapter-mongo and @nodebb/mubsub packages?
UPD. Found an interesting thing - maybe we can use watch + changeStream to implement the pubsub ?
What's your overall goal? I have a feeling that you are giving AWS way more money than you should already. If the goal is to go big without wasting money, this isn't the approach. Unless you are doing something in the billion hits a month range, I don't think that this approach can be cost effective at all.
So if you want to give AWS money just for fun, then you might as well give more. If you want to be cost effective, then setting yourself up for scaling will require more scale than will ever be practically needed.