wallyfoo

wallyfoo

I’m rebuilding an aging node online store with a mongo backend into an Elixir project with Postgres for the data layer. Since I can’t do anything the easy way, I’ve also decided to eschew my own patterns and use Ash to manage the framework stuff. NGL, I have been seduced by Ash conceptually, and I’m going to put it to the test with my company’s main means of making money.

One of the core problems of an online store that sells physical product is making sure you’re tracking that physical product accurately. We have multiple inventory locations that service different parts of the world. As such, these different warehouses have different quantities, constraints on amounts, buffers for oversell, that sort of thing.

I’ve been doing my research and have found what appears to be a reasonably robust inventory accounting method that can track all the stuff I need to track, lock availability when things are added to carts, the works.

I also don’t want to reinvent the wheel. I’m looking at the available extensions for Ash that are already out there, and I’m not seeing anything that really fits the bill. I could maybe make the Double Entry Accounting extension bend to my will, but I’m not super stoked about trying that angle. Do the seasoned Ash developers on the forum know of any off-the-shelf inventory systems?

Showing Posts 1 to 8

johnsseruwagi

johnsseruwagi

Nice project that you are welcome on, I don’t think that there is an off the shelf inventory management extension for Ash or even elixir at large. However a simple suggestion that can perhaps improve your custom implementation, why don’t you consider building your system as a CQRS/ES with ash_commanded extension and use Reactor for orchestration.

wallyfoo

wallyfoo OP

Thanks! I’ll investigate.

carlgleisner

carlgleisner

Hey @wallyfoo,

While it’s not off-the-shelf – and perhaps too domain-specific for your use-case – maybe you’d want to check out this repo:

garrison

garrison

This is only tangentially related but I came across this blog post recently which is about using double-entry accounting for inventory management. Specifically using the Tigerbeetle database (which implements double-entry accounting) to manage ticket sales. Maybe you’ll find it interesting :slight_smile:

wallyfoo

wallyfoo OP

Thanks! I will.

wallyfoo

wallyfoo OP

Very cool. Maybe double entry isn’t as wild an idea as I thought.

wallyfoo

wallyfoo OP

Reading more about Reactor, their “advanced workflow” example is exactly an order processing system.

garrison

garrison

In that particular case I don’t think it’s so much double-entry as it is that Tigerbeetle is a database designed for very high-contention workloads which both financial transactions and ticket sales/product inventory tend to be. With transactions you have hot accounts, and with inventory you have hot products. And in both cases strong consistency is an absolute necessity.

I’m not saying double-entry is a good or bad idea here; I don’t really know enough about it. It certainly seems to be an enduring paradigm, though!

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
psy-q
I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up c...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews