/event-store-mongodb-adapter

MongoDB Adapter for ProophEventStore

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

event-store-mongodb-adapter

Build Status Coverage Status Gitter

MongoDB Adapter for ProophEventStore

Requirements

  • MongoDB >= 2.6.0
  • PHP Mongo Extension >= 1.5.0

Write concern

This adapter uses a transaction timeout of 50 secs by default.

The default write concern for this adapater is acknowledged and journaled (['w' => 1, 'j' => true]).

It's possible to change both values by injecting them into the constructor or by using the factory.

Sharding

This adapter does not use the MongoDB ObjectId for its primary key, instead a UUID (string) is used.

When using MongoDB's sharding feature, simply set the "_id" as shard key.

For more information about sharding in MongoDB check the MongoDB manual.