Comments (3)
Yep I wonder if people are read through https://fly.io/docs/litefs/how-it-works/ and the limitations around how LiteFS is playing transactions. I think there is some margin of improvement and I will be spending some time reading through SQLite codebase and LiteFS to make sure I integrate a full transaction capturing mechanism to have some sort of IDs within transactions.
from marmot.
So after some deeper investigation turns out there is no clean way so far to detect transaction boundaries externally, even from log files unless they checkpoint. It might however start experimenting with some sort of locking mechanism built on top of NATS using the KV store they provide.
from marmot.
I've been experimented with couple of things lately, and I am not sure if I like any of them so far.
WAL log change detection, and generating a UUID to be attached to each change log. The problem with the approach is while I can group changes that are making modifications in transaction. This can also cause (due to OS Scheduling) non-transactional changes to be included in group as well. There is no clean way to do it at log level. I even tried SQLite forums.
This forked me ended up exploring NATS Key Value or stream options to have one writer writing changes at time, or use something like etcd to embed and acquire locks to transact.
While doing this exercise I realized this is fundamentally against the eventual consistent nature of Marmot. I am trying to put in locking mechanism when not having that goal was the first thing in my mind while I was building Marmot. I want Marmot to be closer to Cassandra rather than a strongly consistent store. The last writer wins is a defacto for a lot of data stores.
So after months worth of exploration, and coming back to where I started, right now I have decided to not include transaction level boundaries in the change logs.
from marmot.
Related Issues (20)
- Add a simple example. Can be a Marmot admin gui later
- What is the best way to handle schema migrations? HOT 3
- Support for 2 nodes only? HOT 4
- NATS TLS authentication HOT 1
- Consider cgo-free version of sqlite HOT 2
- marmot transforms datetime fields HOT 8
- Crash: "double free or corruption (!prev)" HOT 2
- Use Nats-Expected-Last-Sequence etc. to manage competing updates more deterministically
- Example FAILING to CONNECT ! HOT 1
- No support for NATS connection retries
- CRDT HOT 5
- web gui ? HOT 1
- Files managed using Marmot. HOT 4
- Unable to run example, possible issue with my version of sqlite HOT 2
- Clarification on Configuration Names and Cli params for Built-in and External NATS in Marmot
- https://github.com/maxpert/marmot/releases/tag/v0.8.8-alpha.4 failure
- Simple Go example of how to use
- HA setup with Master and slave HOT 6
- Supercluster nats setup for multi data center
- beginner here, is this project still maintained? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marmot.