broadway/snapshotting 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

broadway/snapshotting

最新稳定版本:0.3.0

Composer 安装命令:

composer require broadway/snapshotting

包简介

POC for snapshotting aggregates in broadway/broadway

README 文档

README

Proof-of-concept component providing snapshotting functionality to broadway/broadway.

build status

Installation

$ composer require broadway/snapshotting

Documentation

This project demonstrates taking and using snapshots of an aggregate root in the EventSourcingRepository.

Snaphots can be triggered using different strategies like once every number of events or after an amount of time has passed. The EventCountTrigger implements the former strategy.

Getting started

This repository is just a library. It lacks (for now) implementations of the SnapshotRepository.

For example if you want store your events and snapshots in a database using doctrine/dbal you will have to:

  • create a DBALSnapshotRepository implementing the SnapshotRepository to store and fetch snapshots. You wil have to figure out how to serialize your aggregate root.

License

This project is licensed under the MIT License - see the LICENSE file for details

统计信息

  • 总下载量: 69.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-02