top | item 42553134

(no title)

mikehostetler | 1 year ago

To 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.

discuss

order

No comments yet.