Questions tagged [prooph]

prooph is an open source library providing components for CQRS and Event Sourcing in PHP.

Prooph is a set of PHP components for CQRS and Event Sourcing. It consists of

  • Event Sourcing
  • Event-Store
  • Snapshot-Store
  • Persistent Projections
  • CQRS Service-Bus
  • Message Queue
14 questions
3
votes
2 answers

Prooph, How do I route some messages via the local Command Bus and other by the BernardMessageProducer

I have had the command bus up and running for a while and developed a lot of my application. Now their are some commands I wish to process asynchronously. I have added the BernardMessageProducer and that all seem to work. I would like to only send…
2
votes
2 answers

Prooph Eventstore (PDO) and Doctrine DBAL results in multiple connections

Situation I'm using Prooph for my commandbus, eventbus and eventstore within Symfony 4.3. Since not every aggregate needs to be eventsourced, we also use Doctrine DBAL to just simply CRUD those simple aggregates. Within a given domain I have…
2
votes
2 answers

Waiting for new record in read model created by projection in PROOPH

I use prooph(https://github.com/prooph) so I have my write model, where I store events like below(aggregate table): when I run projection in background using command: php bin/console event-store:projection:run card_projection I have read model…
Arkowsky
  • 851
  • 7
  • 19
2
votes
1 answer

Configuration prooph in Symfony DI Container

I configured all prooph service buses with event source and event store. But it's one thing what make me confused. I must call: $eventPublisher = $this->container->get('event_publisher'); in my CommandBusFactory to glue event emitter and event bus…
gargi258
  • 829
  • 1
  • 10
  • 16
2
votes
1 answer

How to solve incompatibility of InMemoryEventStore and PdoEventStore in Prooph?

I am testing my command handlers somehow like this: public function testHandle_ShouldPublishFooEvent(): void { $fooCommand = $this->givenFooCommand(); $this->whenHandleCommand($fooCommand); …
Tom
  • 189
  • 1
  • 12
1
vote
1 answer

Is it possible to set the event created_at time with Prooph?

I'm evaluating if Proof is a good fit for this project. I read through the docs but they do not cover this case and I'm unsure how to use it like this, or if what I want to do even makes sense with respect to event sourcing. I have a system that…
Coder1
  • 13,139
  • 15
  • 59
  • 89
1
vote
1 answer

Is it possible to make only one dynamic table for event source in prooph cqrs?

Is it possible to make only one dynamic table for event source in prooph CQRS + ES, instead of creating a new table for each ID? I am using this tutorial https://pilsniak.com/cqrs-es-php-prooph/
Dhiraj
  • 106
  • 6
1
vote
1 answer

Getting aggregate by other property than ID in Prooph

How simplest get aggregate from aggregate repository without know his ID but knowing of other unique property? For example I have Cart which has ID as AggregateId and ownerId as other property.
gargi258
  • 829
  • 1
  • 10
  • 16
0
votes
1 answer

How can i avoid using prooph's event sourcing?

Concept of Event Sourcing in my mind is that Event Sourcing is related to Domain layer which can't be coupled with Infrastructure layer. so I will not use prooph/event-sourcing component and this is why Prooph's team will not maintain event-sourcing…
Veitor
  • 25
  • 3
0
votes
1 answer

Prooph into Laravel CommandBus was not able to identify a CommandHandler

I have a laravel 5.7 application where I want to add prooph for event sourcing. I have follow the instructions but I retrieve this error: Prooph\ServiceBus\Exception\RuntimeException: CommandBus was not able to identify a CommandHandler for command…
Alessandro Minoccheri
  • 35,521
  • 22
  • 122
  • 171
0
votes
2 answers

Prooph and object in event payload

what is reason for only scalar and array values in payload? Can it be more flexible with object which has toString or toArray method? I would use event dispatched which contain complete ValueObject or similar thing, then I can build ReadModel…
gargi258
  • 829
  • 1
  • 10
  • 16
0
votes
1 answer

Get current no from prooph event store

I try to update a projection from event store. The following line will load all events: $events = $this->eventStore->load(new StreamName('mystream')); Currently i try to load only not handled events by passing the fromNumber parameter: $events =…
nblum
  • 155
  • 1
  • 1
  • 6
0
votes
1 answer

Aggregate, DomainEvent with Prooph

I'm developing an application which scrapes HTML feeds after it authenticates. These websites only support email/password authentication, but some integrations may require additional information. So my question is now specific should I get when…
user1007817
-1
votes
2 answers

Symfony, proopgh, event soursing Error 42S02. Maybe the event streams table is not setup?

Good day/night, I'm really new in prooph event sourcing. Try to understand how it works with symfony. Take a look on this project. https://github.com/prooph/proophessor-do-symfony What should I do with the DB in the beginning ? I run the…
alytvynov
  • 81
  • 12