Похожие чаты

I want to explore how to use Go in the

following architecture:

I'm running a couple of dozen NodeJS fat processes (50+Mb RES ram each, some >150Mb), all different workloads. They are all managed by a supervisord instance.

Each process connects to a RabbitMQ broker and to a PostgreSQL RDBMS, and is responsible of one or two message queues. Each message received is mapped to a function, and after processing, a reply message is sento back to the broker where it's routed to the originating web browser (mostly) and/or to other NodeJS consumers. The browsers are connected directly to rabbitMQ trough a STOMP over WS adapter.

All of this is the backend of a B2C web property; it works great, response times are consistent and I'm sure I can scale horizontally and outsource each important piece when the time comes.

Now, What would be the best practice if I wanted to decommission the fat NodeJS processes?

- Do I need a couple of dozen Go executables or only one?
- The couple of dozen proceses are currently there to allow me to fix/upgrade a small part of the site without disturbing anything else. How can I achieve this with Go?

Finally, the main reason I'm considering decomissioning the nodeJS processes is because I want to reduce the RAM consumption and be able to scale with smaller VMs and/or use simple containers (not multilayered ones, but simple, one image each). Another consideration is _npm install_; each deploy/upgrade cycle it's just a waste of resources and it increases the build time considerably.

- Would you consider this as valid reasons?

Thanks all.

2 ответов

9 просмотров

So your question is if you should have different go processes on the MQ?

I've heard of RabbitMQ but I'm still not sure I understand its uses or how to implement it

Похожие вопросы

Обсуждают сегодня

Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Мужики и девушки, привет) в Вelphi xe7 в настройках во вкладке "Editor Options" далее " Color" есть список: "Elements", открыв который мы можем настраивать отображение разных...
Kraszx
14
is that okay?
Samurai 🇯🇵
21
Добрый вечер. Есть вопрос, а может и предложение. Был у меня диалог в другой группе о делфи и я задался вопросом: "А нельзя ли в делфи цвет //коментария и {комментария} сде...
Kraszx
24
How about the project bro Likes the community not that active ?
🅿️abby_FX
19
Guys, Donald Trump or Kamala Harris? It does not matter for Bitcoin in the long run!! 2020 Election: After Joe Biden's victory in November 2020, Bitcoin steadily rose from...
Sabah Shabu
1
как быть с принтером? такой подход прокатит?
zamtmn
12
Всем привет! Подскажи, пожалуйста, как передать в TComboBox сразу значение и id записи. На Delphi я делал так: ComboBox1.Items.AddObject('Какое-то значение', Pointer(id запис...
Евгений
13
Мдя, прикол, боевая сборка запускается (именно под отладчиком) после F9 примерно полторы минуты (97 секунд если быть точным). Начал копать - проблема детектится сразу - зависа...
Александр (Rouse_) Багель
38
@brucezli Any info regarding ETA on updates?
Old Man Tom
10
Карта сайта