3 ms·
Could this be used to allow Elixir to load balance a third party server? For example: You have an Elixir load balancer that manages requests for three other se
by Dangeranger 10y ago
Could this be used to allow Elixir to load balance a third party server?
For example: You have an Elixir load balancer that manages requests for three other servers and distributes load based on the 'demand' that the consumer communicates back to the balancer?
- felixgallo 10y agoyep. The neat thing about this is that it's composable primitives, so you could imagine having an arbitrarily shaped tree of demand-creating producer-consumers and consumers. And with distribution, it'd be possible to scale this out pretty far.
- Dangeranger 10y agoThat's great. Are there any plans to use these primitives to communicate with servers not written in Elixir? For example can you foresee Elixir being used to manage and coordinate heterogeneous architectures?
- felixgallo 10y agoI'm on the erlang rather than the elixir side of the BEAM, but it's pretty easy and normal in the BEAM to communicate with heterogenous processes, either by implementing a dirty or regular NIF, opening a port, building a C Node or using JInterface with java, using CORBA haha, or just opening a socket.