Workflow
message-db
Our great sponsors
Workflow | message-db | |
---|---|---|
1 | 6 | |
42 | 1,607 | |
- | 0.2% | |
0.0 | 0.0 | |
almost 8 years ago | 16 days ago | |
Haskell | Shell | |
BSD 3-clause "New" or "Revised" License | MIT 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.
Workflow
-
Event Sourcing
I was part of that debate, I remember a rather interesting point of discussion: Is the main operation "apply" or "dedup"
Apply seems to be the common notion of event sourcing: There is a function apply that takes a state an event and yields a new state. Then, starting in an init state and iteratively applying the entire event history, boom, latest state restored.
Dedup has a lot of charm though: Run and rerun your code, if that step of your code is executed for the first time (no corresponding event in the event history) execute the step and store its result as an event in the history, however, if that step of your code is executed for the second, third time (there is a corresponding event in the event history) do not execute the step and return its result from the event in the history. The Haskell Workflow Package (https://hackage.haskell.org/package/Workflow) is a good example
Temporal follows the second approach, so "proper" Event Sourcing? You be the judge :)
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
What are some alternatives?
cloud-haskell - This is an umbrella development repository for Cloud Haskell
tikv - Distributed transactional key-value database, originally created to complement TiDB
unliftio - The MonadUnliftIO typeclass for unlifting monads to IO
plumber - A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.
effect-monad - Provides 'graded monads' and 'parameterised monads' to Haskell, enabling fine-grained reasoning about effects.
FASTER - Fast persistent recoverable log and key-value store + cache, in C# and C++.
record - Anonymous records
three-elements - Web Components-powered custom HTML elements for building Three.js-powered games and interactive experiences. 🎉
lens-tutorial - The missing tutorial module for the lens library
jsynchronous - Jsynchronous.js - Data synchronization for games and real-time web apps.
rio-orphans - A standard library for Haskell
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.