outboxd 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +25 -0
- data/lib/outboxd/error.rb +5 -0
- data/lib/outboxd/version.rb +5 -0
- data/lib/outboxd.rb +7 -0
- metadata +70 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 55abf44ca5dbe3037d2777919edfe4bdde4893f940eeae6056c9a70d250122f4
|
|
4
|
+
data.tar.gz: e2305de5e3afe45b64cb931aededa620d5b4e6c5dbf683c82b9ffcadc40743c0
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 04cbce20b6b1ef6f3fc9005e9bc706c95d9b2eccab0d46c1a43c6980f8196c1f08ba1a436ee765a24426abe7e6bc1b355a83a6d6f1c436476690dfad53dff755
|
|
7
|
+
data.tar.gz: 057f16f96a7bec5fcfbdfc595fbab798c0e0004f277c89c6fe07a9ee49109e07e96be864a4dbe8fee280c709e80cc67d4c531c0dc8485d6bee72820590cfa4fd
|
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andy Rusterholz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# outboxd
|
|
2
|
+
|
|
3
|
+
A transactional outbox for Ruby with a pluggable dispatcher.
|
|
4
|
+
|
|
5
|
+
> **Status: Early Development.** outboxd is not yet functional — this gem name is reserved while the first working release is built. Nothing here is ready for use yet; watch the repo if you're curious.
|
|
6
|
+
|
|
7
|
+
## The Idea
|
|
8
|
+
|
|
9
|
+
When an application updates its database **and** tells another system about it — a message bus, a job queue, a webhook — doing both naïvely invites inconsistency: the write commits but the publish crashes, or the publish lands and the write rolls back. The well-known **transactional outbox** pattern fixes this by staging the event in a database table, inside the same transaction as the domain write, and dispatching it from that table asynchronously.
|
|
10
|
+
|
|
11
|
+
outboxd implements that pattern for Ruby, with:
|
|
12
|
+
|
|
13
|
+
- **Atomic staging** — publish intent commits or rolls back together with your domain write.
|
|
14
|
+
- **Pluggable transports** — deliver to Sidekiq or anything else you can write a small Ruby class to talk to; transports are a plugin contract, not a baked-in destination.
|
|
15
|
+
- **Database agnosticism** — PostgreSQL, MySQL, and SQLite are all first-class, via ActiveRecord.
|
|
16
|
+
- **Honest per-destination delivery state** — each (event, transport) pair has its own lifecycle, retries, and dead-lettering.
|
|
17
|
+
- **A separately-run dispatcher daemon** — scale and operate delivery independently of your application.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
Not yet — see the status note above.
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
MIT. See [LICENSE.txt](LICENSE.txt).
|
data/lib/outboxd.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: outboxd
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andy Rusterholz
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-07-19 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: activerecord
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '6.1'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '6.1'
|
|
27
|
+
description: 'outboxd implements the transactional outbox pattern: stage events atomically
|
|
28
|
+
alongside your database writes, then dispatch them to pluggable transports. Database-agnostic
|
|
29
|
+
via ActiveRecord — PostgreSQL, MySQL, and SQLite are all first-class. The durability
|
|
30
|
+
layer your message bus assumed you already had.'
|
|
31
|
+
email:
|
|
32
|
+
- andyrusterholz@gmail.com
|
|
33
|
+
executables: []
|
|
34
|
+
extensions: []
|
|
35
|
+
extra_rdoc_files: []
|
|
36
|
+
files:
|
|
37
|
+
- CHANGELOG.md
|
|
38
|
+
- LICENSE.txt
|
|
39
|
+
- README.md
|
|
40
|
+
- lib/outboxd.rb
|
|
41
|
+
- lib/outboxd/error.rb
|
|
42
|
+
- lib/outboxd/version.rb
|
|
43
|
+
homepage: https://github.com/rusterholz/outboxd
|
|
44
|
+
licenses:
|
|
45
|
+
- MIT
|
|
46
|
+
metadata:
|
|
47
|
+
homepage_uri: https://github.com/rusterholz/outboxd
|
|
48
|
+
source_code_uri: https://github.com/rusterholz/outboxd
|
|
49
|
+
changelog_uri: https://github.com/rusterholz/outboxd/blob/main/CHANGELOG.md
|
|
50
|
+
rubygems_mfa_required: 'true'
|
|
51
|
+
post_install_message:
|
|
52
|
+
rdoc_options: []
|
|
53
|
+
require_paths:
|
|
54
|
+
- lib
|
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: 3.2.0
|
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
|
+
requirements:
|
|
62
|
+
- - ">="
|
|
63
|
+
- !ruby/object:Gem::Version
|
|
64
|
+
version: '0'
|
|
65
|
+
requirements: []
|
|
66
|
+
rubygems_version: 3.5.22
|
|
67
|
+
signing_key:
|
|
68
|
+
specification_version: 4
|
|
69
|
+
summary: A transactional outbox for Ruby with a pluggable dispatcher.
|
|
70
|
+
test_files: []
|