message-db
txid-syncing
message-db | txid-syncing | |
---|---|---|
6 | 1 | |
1,608 | 16 | |
0.2% | - | |
0.0 | 4.9 | |
24 days ago | about 2 months ago | |
Shell | Python | |
MIT License | GNU General Public License v3.0 or later |
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.
message-db
-
Show HN: Light implementation of Event Sourcing using PostgreSQL as event store
I’m addition to the alternatives mentioned, here’s another Postgres-only ES implementation: https://github.com/message-db/message-db
-
Thalo - Event Sourcing runtime for WASM
Thalo is a new Rust library that provides a runtime for WASM-based event sourcing. With Thalo, developers can compile their aggregates and components into WASM modules and use them in the runtime to handle commands and persist events to an event store. The library is built on top of Wasmtime and Message DB, and uses the ESDL schema language to define aggregates. While Thalo is not yet ready for real-world use, it has the potential to make event sourcing more accessible to a wider range of languages that compile to WASM, allowing for a language-agnostic runtime. Give it a try and let us know what you think! https://github.com/thalo-rs/thalo
Its built on top of Wasmtime for wasm execution, and MessageDb which is a message store for Postgres.
-
Announcing our Elm/Haskell app in production!
We are using message db which is uses postgres under the hood, and provides a few useful postgres functions. We use it with `postgres-simple` and have a small internal library. However my colleague is working on abstracting our logic and open sourcing into a library here: https://github.com/Disco-Dave/message-db
-
Event Sourcing
Check out MessageDB https://github.com/message-db/message-db. It's basically Postgres and can be installed into any Postgres DB.
-
Building a Distributed Turn-Based Game System in Elixir
Trying a new language or framework is fun experiments that you spend a few hours on. I have been enjoying implementing Message DB[0] in a hobby project. My current job is not in programming, and not looking for one.
[0]https://github.com/message-db/message-db
txid-syncing
-
Show HN: Light implementation of Event Sourcing using PostgreSQL as event store
Nice job, eugene-khyst. Looks very comprehensive from an initial skim.
I've worked on something in the same space, with a focus on reliable but flexible synchronization to many consumers, where logical replication gets impractical.
I have a mind to do a proper writeup, but at least there is code at https://github.com/cognitedata/txid-syncing (MIT-licensed) and a presentation at https://vimeo.com/747697698
The README mentions …
> A long-running transaction in the same database will effectively "pause" all event handlers.
… as the approach is based on the xmin-horizon.
My linked code works with involving the MVCC snapshot's xip_list as well, to avoid this gotcha.
Also, note that when doing a logical restore of a database, you're working with different physical txids, which complicates recovery. (So my approach relies on offsetting the txid and making sure the offset is properly maintained)
What are some alternatives?
tikv - Distributed transactional key-value database, originally created to complement TiDB
postgresql-event-sourcing - A reference implementation of an event-sourced system that uses PostgreSQL as an event store built with Spring Boot. Fork the repository and use it as a template for your projects. Or clone the repository and run end-to-end tests to see how everything works together.
plumber - A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.
ksqldb-event-souring - Kafka is not for event sourcing, isn't it? Kafka alone is not an event store, but Kafka and ksqlDB together allow building full-featured event stores. This repository provides a sample of event sourced system that uses Kafka and ksqlDB as event store.
FASTER - Fast persistent recoverable log and key-value store + cache, in C# and C++.
eventstoredb-event-sourcing - EventStoreDB is the database for Event Sourcing. This repository provides a sample of event sourced system that uses EventStoreDB as event store.
three-elements - Web Components-powered custom HTML elements for building Three.js-powered games and interactive experiences. 🎉
Marten - .NET Transactional Document DB and Event Store on PostgreSQL
jsynchronous - Jsynchronous.js - Data synchronization for games and real-time web apps.
commanded - Use Commanded to build Elixir CQRS/ES applications
Workflow - re-startable monad that recover the execution state from a log, and workflow patterns