petrjanda/node-cqrs — Issue #2: More precise time for events
Author: petrjanda
Created: 2012-01-27 20:00:19+00:00
State: open

CouchDB is not very good in generating sequences. Instead each id is random generated string. It makes it a bit difficult to order the events then. The easies way is to order by time when event was created, although in some apps, there can be multiple events coming at same mili-second.

Luckily there are solutions in node.js to work with microseconds, thus orders of magnitude more precise solution.