whatyouhide

whatyouhide

Elixir Core Team

Hey all,

earlier today @lexmag and I released the first version of Xandra, a Cassandra driver built natively in Elixir. We’re very excited and we hope you’re gonna enjoy it!

Andrea and Aleksei

Showing Posts 1 to 7

lexmag

lexmag

Hi everyone,

Recently we have released new version of the driver that supports clustering.

Right now we use it in all components of the push notification system mentioned in the “The Pursuit of Instant Pushes” article.
Using Xandra resulted in 30% boost in push notification delivery time.

Aleksei and Andrea

whatyouhide

whatyouhide OP

Elixir Core Team

Quick update: we just released v0.4.0 of the driver, which supports retry strategies to retry failed queries. Exciting times!

Andrea and Aleksei

lexmag

lexmag

Since the last update we have released few more versions of the driver (v0.7 is the most recent) with great changes:

  • Support for date, time, smallint, and tinyint types
  • Support for user-defined types
  • Support for authentication
  • Important encoding and decoding optimisations (around 35% speedup)

:rocket:

whatyouhide

whatyouhide OP

Elixir Core Team

Hey folks,

we released version v0.9.0 of Xandra which adds native support for datetime data types and optimizes decoding even more. If you’re interested you can check out the full CHANGELOG.

idi527

idi527

Hi!

Thanks for the library, @whatyouhide @lexmag!

Have you considered using other libraries before writing your own, for example, lpgauth/marina?
Was it a lack of features that made you write your own or maybe something else?

I’m trying to pick a library to use to interface with scylladb, and there are just too many choices …

whatyouhide

whatyouhide OP

Elixir Core Team

Heyo, we used cqerl initially but we were not satisfied with it because of performance, maintainability, documentation, and the poor error messages it kept spitting out. I was not aware of marina personally but I bet @lexmag was, but we went with our own to have 1. a pure Elixir solution 2. based on DBConnection (which in turn means great and extensible pooling) which could 3. be fast, modern, and extensible.

Also, since you’re mentioning scylladb, it would be awesome if you ended up trying Xandra with it and could report if everything works fine. In case you do end up trying them together, please take the time to clone the source code for Xandra and run the Xandra test suite against ScyllaDB :slight_smile: Related: Verify that Scylla works with the driver · Issue #112 · whatyouhide/xandra · GitHub.

lexmag

lexmag

Hey!

We have indeed considered existing libraries before writing our own. Best options were CQErl and marina.

As @whatyouhide said, we went with CQErl to have our project moving forward.
Though its performance was far from desired for our use case, error messages that come from internals did not help, its dependency configuration was extremely painful: Git instead of Hex (we even discovered that one the dependencies changes actual Git ref during Makefile execution—what you see is not what you get). In fact, we end up with a fork.
We could (and were considering to) fix all those aforementioned issues, but that amount of work would mean that we are basically writing a new driver. Also it felt that starting from scratch will be faster to get things done.

Marina seems alright (still Git dependencies though). However it lacks some substantial features, batch queries in our case.

The day we switched to Xandra we got minimum 30% performance improvement and were able to simplify the code around error handling.
Since then Xandra received many optimizations (~35% faster decoding, for example), native support for calendar data types, and streaming functionality out of the box.

— All posts loaded —

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
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
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
fuelen
Hi all! I want to present a small library which provides a mix task for generating an Entity-Relationship Diagram for Ecto schemas. You...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
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

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
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New
sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New
akoutmos
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews