4 ms·
Can you elaborate on the scaling potential here, given your choice of stack?
by jittoshi 2y ago
Can you elaborate on the scaling potential here, given your choice of stack?
- mikehostetler 2y agoTo run multiple agents in TypeScript, you're typically reaching for a package like 'pm2'. This starts a Node.js process for each Agent, then you need another tool like Redis for them to communicate. Adding Docker adds even more weight. You could run multiple agents in a single Node.js process, but you'll eventually face event-loop conflicts. With Elixir and BEAM, you already have the tools to run agents as a lightweight Erlang process. You also have built-in PubSub for inter-agent communication (via a package). This provides the ability for safely running 1000's of agents in a single BEAM Node. This is much more robust and efficient then Node.js and TypeScript.