jimsynz

jimsynz

Ash Core Team

AshCubDB - A CubDB data layer for Ash resources

I’m happy to announce the first (useful) release of AshCubDB an Ash data layer which allows you to back your Ash resources with CubDB.

CubDB

From the CubDB documentation:

CubDB is an embedded key-value database for the Elixir language. It is designed for robustness, and for minimal need of resources.

CubDB is an impressive piece of engineering which is widely used by folks working on Nerves projects. I only learned about it earlier this year, but I’ve been itching to play with it since.

It supports ACID transactions, concurrent reads and writes and is generally resistant to data corruption during unexpected shutdowns or crashes.

Status

AshCubDB does not support, nor is it currently aiming to support all the many many features of other Ash data layers. It does support the basic CRUD operations and filtering. You can use it today.

There are a few things that I haven’t nailed down:

  1. How to handle “migrations” when the attributes of a resource change and thus the existing records are now invalid?
  2. How to handle transactions. CubDB essentially switches to a unit-of-work style structure when in a transaction, with a different API (CubDB.Tx).
  3. Should we dynamically start the CubDB processes when we need them (the current solution) or require that apps start them in their own supervision tree?

Links

Most Liked

lucaong

lucaong

CubDB author, just here to say that this is awesome!

I am also happy to get feedback on CubDB from Ash users.

jimsynz

jimsynz

Ash Core Team

Thanks for your awesome software. I’m so excited to see what the Ash community builds with it.

byu

byu

Just learned about CubDB, now I have to play with it and the new ash integration :slight_smile: . Also, the FAQ was very enlightening and did cover my actual questions about CubDB.

Where Next?

Popular in Announcing Top

Crowdhailer
The latest release of Ace (0.10.0) includes serving content over HTTP/2. I have started writing a webserver to teach my self more about...
New
gabrielpoca
Hello everyone! I want to share with you something that I’m really proud of: https://stillstatic.io/ Still is a static site builder for...
New
mspanc
I am pleased to announce an initial release of the Membrane Framework - an Elixir-based framework with special focus on processing multim...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
Qqwy
Hello everyone, I wrote a small library today called MapDiff. It returns a map listing the (smallest amount of) changes to get from map...
New
woutdp
Hi! I wanted to introduce my latest project LiveSvelte. It allows you to render Svelte inside LiveView with end-to-end reactivity. It’s ...
New
Azolo
Hey everyone, I just released WebSockex which is a Elixir WebSocket client. WebSockex strives to work as a OTP special process, be RFC6...
New
Flo0807
Hello everyone! I am excited to share our heart project Backpex with you. After building several Phoenix applications, we realized that...
New
kip
Image is an image processing library for Elixir. It is based upon the fabulous vix library that provides a libvips wrapper for Elixir. I...
622 18393 194
New
archan937
It is a well-know topic within the Elixir community: “To mock or not to mock? :)” Every alchemist probably has his / her own opinion con...
New

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39247 209
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement