Exns (alpha)
Interact with Python nanoservices from Elixir.
Usage
- Define nanoservices in mix.exs
def application do
[applications: [:exns],
env: [
nanoservices: [
[name: :math_service,
address: "ipc:///tmp/math-service.sock",
timeout: 1000,
workers: 10
]
]
]- Then simply call the nanoservice
{result, error} = Exns.call(:math_service, "add", [1, 2]
IO.puts "1 + 2 = #{result}"
(*) Note To Self: enm build scripts fail on OS X. Replace cd c_src with cd ./c_src. Perhaps fork enm?
MIT LICENSE