Skip to content

[Refactor] SQLAlchemy outbox model.#2

Open
Dioneya wants to merge 30 commits into
masterfrom
sqlalchemy-fix-simple
Open

[Refactor] SQLAlchemy outbox model.#2
Dioneya wants to merge 30 commits into
masterfrom
sqlalchemy-fix-simple

Conversation

@Dioneya
Copy link
Copy Markdown
Owner

@Dioneya Dioneya commented Feb 22, 2026

  • Implement BinaryUUID for PostgreSQL and MySQL compatibility.
  • Make sqlalchemy an optional dependency.

Вадим Козыревский and others added 30 commits January 11, 2026 15:02
…ng (pypatterns#31)

* Added Fallback for saga steps with circuit breaker supporting

* Increase version

* Upgrade README

* Fix pyright problems

* Update Saga mermaid generating

* Update Saga mermaid generating

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Fix dublicated events emitting

* fixes linter errors

* fixes linter errors

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Decouple interfaces from pydantic types

* Decouple interfaces from pydantic types

* Fixes after linter

* Fixes after linter

* Add coverage and badges

* Add coverage and badges

* Add coverage and badges

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update Tests action

* Update lint stages

* Update lint stages

* Update lint stages

* Update lint stages

* Update lint stages

* Increase version

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* [BUGFIX] Fix stream mediator bootstrap

* Fixes after pre-commit

* Fixes after pre-commit

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
…ctorCQRSContainer (pypatterns#40)

* Fix bug in future injection

* Fixes after pre-commit

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Add CodSpeed performance benchmarking setup

- Add pytest-codspeed to dev dependencies
- Create benchmarks directory with sample benchmark files
- Add GitHub Actions workflow for CodSpeed integration
- Add CodSpeed badge to README

* Change Pydantic models to dc models

* Change Pydantic models to dc models

* Change Pydantic models to dc models

---------

Co-authored-by: codspeed-hq[bot] <117304815+codspeed-hq[bot]@users.noreply.github.com>
Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
Add wizard supporting

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
…vironment variables (pypatterns#44)

* Added saga table names variables supporting

* Fixes after pre-commit

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Add dataclass_wizard supporting into SagaContext

* Fix some problems

* Fix some problems

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
Add saga attemptes supporintg

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
…ypatterns#47)

Fix fetching saga recovery candidates

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Extend ISagaStorage interface

* Extend ISagaStorage interface

* Fixes after pre-commit

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Setting project coverage

* Add ruff settings

* Add ruff settings

* Fixes after pre-commit

* Fix ruff in CI

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Added new speed banchmarks

* Fixes after pre-commit

* Separate dataclasses and pydantic banchmarks

* Fixes after pre-commit

* 📝 Add docstrings to `add-new-banchmarks` (pypatterns#53)

Docstrings generation was requested by @vadikko2.

* pypatterns#52 (comment)

The following files were modified:

* `benchmarks/dataclasses/test_benchmark_cor_request_handler.py`
* `benchmarks/dataclasses/test_benchmark_event_handling.py`
* `benchmarks/dataclasses/test_benchmark_request_handling.py`
* `benchmarks/dataclasses/test_benchmark_saga_fallback.py`
* `benchmarks/dataclasses/test_benchmark_saga_memory.py`
* `benchmarks/dataclasses/test_benchmark_saga_sqlalchemy.py`
* `benchmarks/dataclasses/test_benchmark_stream_request_handler.py`
* `benchmarks/pydantic/test_benchmark_cor_request_handler.py`
* `benchmarks/pydantic/test_benchmark_event_handling.py`
* `benchmarks/pydantic/test_benchmark_request_handling.py`
* `benchmarks/pydantic/test_benchmark_saga_fallback.py`
* `benchmarks/pydantic/test_benchmark_saga_memory.py`
* `benchmarks/pydantic/test_benchmark_saga_sqlalchemy.py`
* `benchmarks/pydantic/test_benchmark_serialization.py`
* `benchmarks/pydantic/test_benchmark_stream_request_handler.py`

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update ci files

* move banchmark tests

* Try to fix banchmarks

* Try to fix banchmarks

* Try to fix banchmarks

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Added new speed banchmarks

* Fixes after pre-commit

* Separate dataclasses and pydantic banchmarks

* Fixes after pre-commit

* 📝 Add docstrings to `add-new-banchmarks` (pypatterns#53)

Docstrings generation was requested by @vadikko2.

* pypatterns#52 (comment)

The following files were modified:

* `benchmarks/dataclasses/test_benchmark_cor_request_handler.py`
* `benchmarks/dataclasses/test_benchmark_event_handling.py`
* `benchmarks/dataclasses/test_benchmark_request_handling.py`
* `benchmarks/dataclasses/test_benchmark_saga_fallback.py`
* `benchmarks/dataclasses/test_benchmark_saga_memory.py`
* `benchmarks/dataclasses/test_benchmark_saga_sqlalchemy.py`
* `benchmarks/dataclasses/test_benchmark_stream_request_handler.py`
* `benchmarks/pydantic/test_benchmark_cor_request_handler.py`
* `benchmarks/pydantic/test_benchmark_event_handling.py`
* `benchmarks/pydantic/test_benchmark_request_handling.py`
* `benchmarks/pydantic/test_benchmark_saga_fallback.py`
* `benchmarks/pydantic/test_benchmark_saga_memory.py`
* `benchmarks/pydantic/test_benchmark_saga_sqlalchemy.py`
* `benchmarks/pydantic/test_benchmark_serialization.py`
* `benchmarks/pydantic/test_benchmark_stream_request_handler.py`

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update ci files

* move banchmark tests

* Try to fix banchmarks

* Try to fix banchmarks

* Try to fix banchmarks

* Refactor saga streaming

* Fixes after pre-commit

* Changes after review

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Add event propagation into event handlers

* Fix pyproject.toml

* Fix tests.yaml

* Fixes after review

* Fixes after review

* Add ignore codspeed file

* Add ignore codspeed file

* Fix nitpicks after review

* Added new tests for coverage increase

* Fixes after pre-commit

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Add saga id for step result

* Add saga id for step result

* increase version

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
* Try ti reduce saga storage overhead

* Increase version

* Rename banchmarks

* 📝 Add docstrings to `reduce-saga-storage-overhead` (pypatterns#62)

* Fixes after review

* Fix deadlocks

* Fix after pre-commit

* fix ruff format

* fix after review

* fix after review

* fix after review

* fix after review

* fix after review

* fix after review

* fix after review

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Try ti reduce saga storage overhead

* Increase version

* Rename banchmarks

* 📝 Add docstrings to `reduce-saga-storage-overhead` (pypatterns#62)

* Fixes after review

* Fix deadlocks

* Fix after pre-commit

* fix ruff format

* fix after review

* fix after review

* fix after review

* fix after review

* fix after review

* fix after review

* fix after review

* refactor readme

* refactor readme

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Add Fallback for requests and events

* fixes after review

* add type checking

---------

Co-authored-by: Вадим Козыревский <v.kozyrevskiy@timeweb.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants