eventsourcing/es4j

Problem: PostgreSQL database provisioning contention

Open

#208 opened on Jan 27, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Java (27 forks)batch import
bughelp wanted

Repository metrics

Stars
 (406 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

PostgreSQL-backed journal & indices will create necessary tables and types without consideration for others — meaning there might be a conflict and two nodes might attempt to do the same thing at the same time.

Proposed solution: ensure these storages are locking these initialization routines. PostgreSQL advisory locks can be used to easily accomplish this.

Contributor guide