This is a prototype for a highly concurrent dynamic pricing engine.
An "actor" (generic server) can be started with a particular "strategy" (run-time swappable) that declares a price increment (as demand increases) and price decrements (as demand wanes).
If available in Hex, the package can be installed
by adding elastic_price_engine
to your list of dependencies in mix.exs
:
def deps do
[
{:elastic_price_engine, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/elastic_price_engine.