paramodel
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

Paramodel

Run-time domain model for event-sourcing.


  • TODO: Split store impl into functions

  • TODO: Use LRU cache for PII keys. Delete from cache when committing a shredded scope.

  • TODO: Validate model: Dependencies must exist AND not cause loop. Dependency of a materialized view cannot be disclosing. Events for mutators must exist. Mapping keys must be equal.

  • TODO: Memory driver continuation tokens must be improved (can't just skip over stuff)

  • TODO: Add store.views() for iterating over all views

  • TODO: Add provider.stores() for iterating over all stores (this requires store to be registered somehow)

  • TODO: Add store.drop() for dropping views that are no longer modelled.

  • TODO: Support fast sweeping sync (not storing every commit, like a purge on the fly sort of)

  • TODO: Add auto-mapping projection (disclosing all PII)

  • TODO: External continuation tokens (when there's a server) must include version and timestamp and shall expire when too old (older than purge ttl) - or be renewed in case version is still not purged!

Package Sidebar

Install

npm i paramodel

Weekly Downloads

0

Version

0.4.2

License

ISC

Unpacked Size

364 kB

Total Files

7

Last publish

Collaborators

  • mwikstrom