ExWorker
Simple example of message processing with Elixir
Installation
If available in Hex, the package can be installed
by adding ex_worker to your list of dependencies in mix.exs:
def deps do
[
{:ex_worker, "~> 0.1.6"}
]
end
def application do
[
extra_applications: [..., :ex_worker]
]
endMnesia Setup
To persist messages across application restarts, specify the DB path in your config.exs:
config :mnesia, dir: 'mnesia/#{Mix.env}/#{node()}' # Notice the single quotesAnd run the following mix task:
mix ex_worker.setupUsage
ExWorker.Server.add_message("some text")
ExWorker.Server.add_messages(["some text", "another text"])Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/kortirso/ex_worker.
License
The packages is available as open source under the terms of the MIT License.
Disclaimer
Use this package at your own peril and risk.
Documentation
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_worker.