Our great sponsors
dtm | bolt | |
---|---|---|
20 | 22 | |
5,149 | 11,201 | |
- | - | |
9.8 | 0.0 | |
about 2 years ago | about 6 years ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dtm
-
How to reliably sync 2 application databases
- using a distributed transaction framework (like https://github.com/dtm-labs/dtm)
- Examples code for DTM Saga
- dtm 1.15.1 Released – A lightweight workflow engine to orchestrate micro-services for distributed transactions.
-
Use workflow to handle distributed transactions
But in this article, we introduce a workflow pattern in github.com/dtm-labs/dtm. Under this pattern, a mixture of XA, SAGA and TCC can be applied to different branches in a single distributed transactions, allowing users to customize most of the contents of a distributed transaction, providing great flexibility.
-
How to elegantly implement a multi-database outbox pattern
The open source distributed transaction framework https://github.com/dtm-labs/dtm has a two-stage message pattern inside that handles this problem very well. The following is an example of the use of an interbank transfer operation.
-
How to Manage Anomalies in Saga Pattern in Microservices
The above Sub-transaction Barrier technique, when used in conjunction with the distributed transaction framework https://github.com/dtm-labs/dtm, has been made available in several language SDKs, with the following example code in Go.
-
Building financial integration with Cadence in doordash
Maybe you can take a look at github.com/dtm-labs/dtm which provide built-in TCC pattern
-
Understanding XA Transactions With Practical Examples in Go
Distributed XA transactions can solve the above business problem. This article presents a solution based on dtm-labs/dtm. DTM is a popular distributed transaction framework which supports XA, Saga, OutBox, and TCC patterns.
-
dtm 1.13.5 Released – A distributed transaction framework that supports saga, tcc, xa, outbox patterns.
Github: https://github.com/dtm-labs/dtm
-
How to Implement a Distributed Transaction Across Mysql, Redis, and Mongo
This article gives an example of implementing a distributed transaction across multiple store engines, Mysql, Redis and Mongo. This example is based on the Distributed Transaction Framework https://github.com/dtm-labs/dtm and will hopefully help to solve your problems in data consistency across microservices.
bolt
-
Announcing jammdb: a simple single-file key/value store
This crate started out as just a way for me to learn how boltdb works, while learning Rust at the same time. But somehow people started finding and using it and seem to like the simple API, so I figured I might as well share it in case someone else finds it useful too. If you want to know more about my motivations and the history of this crate, you can read the release notes on version 0.8.0!
-
Polygon: Json Database System designed to run on small servers (as low as 16MB) and still be fast and flexible.
Some example of embeddable database could be genji, badger and boltdb
- Resource for making database from scratch
-
Ask HN: Books on designing disk-optimized data structures?
Designing Data Intensive applications- specifically chapter 3 and 4 which deal with strategies and algorithms for storing and encoding data to be stored on disk and their pros and cons.
Once you read that, I'll suggest reading the source of a simple embedded key-value database, I wouldn't bother with RDBMs as they are complex beasts and contain way more than you need. BoltDB is a good project to read the source of https://github.com/boltdb/bolt, the whole thing is <10k lines of code and is a full blown production grade system with ACID semantics so packs a lot in those 10k and isn't just merely a toy.
-
GitHub examples of Go that's written really well?
Bolt db and Bolt db's author post to go with it.
-
Open Source Databases in Go
https://github.com/boltdb/bolt is a ACID B+ tree key-value store
- A Database for 2022
-
Single Dependency Stacks
For a single server, SQLite, or boltdb[0]
I've never had to scale horizontally. I develop in Go and you can get very far along with just vertical scaling (aka beefier hardware).
Therefore I can't give concrete examples of a distributed db-as-a-library.
But all that you need is to extend the functions that fetch data to not just fetch from disk but from "peers" as well. For this to work you need servers (instances) to know about each other, and as you add more they also get added to their peers - sort of like a bittorrent network. I don't think it's difficult to do.
SQLite might not be suited for being distributed (although RQlite[1] claims to have done it).
Making a distributed data storage based on boltdb[0] is probably more feasible.
Whatever the case, there's no reason why a data storage engine can't be a library, even if it's distributed.
- How can I batch events in second intervals?
- Give examples of really cool software made by a single developer?
What are some alternatives?
Seata - :fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
buntdb - BuntDB is an embeddable, in-memory key/value database for Go with custom indexing and geospatial support
go-cache - An in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications.
badger - Fast key-value DB in Go.
temporal - Temporal service
bbolt - An embedded key/value database for Go.
cockroach - CockroachDB - the open source, cloud-native distributed SQL database.
goleveldb - LevelDB key/value database in Go.
InfluxDB - Scalable datastore for metrics, events, and real-time analytics
tidb - TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://tidbcloud.com/free-trial
go-memdb - Golang in-memory database built on immutable radix trees