Похожие чаты

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 ответов

12 просмотров

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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта