Event sourcing with sync (Effect's effect/eventlog).
event and event_group declare events; event_log writes them to
an event_journal and replays them through handlers; event_row
makes events that keep table rows. event_log_remote syncs a log with
a server (event_log_server_encrypted stores batches it cannot read,
event_log_server_unencrypted runs the handlers itself), over the RPCs
of event_log_message, encrypted by event_log_encryption (the
eventlog extra, cryptography) and authenticated by
event_log_session_auth. sql_event_journal,
sql_event_log_server_encrypted and sql_event_log_server_unencrypted
keep the journal and the server storages in a SQLite or PostgreSQL
database.
Import it as a submodule (from pyfect import eventlog): import pyfect
does not load it, since its servers load pyfect.rpc.
Payloads, entries and write and change frames are encoding.schema_binary
frames with Effect's bytes.
Re-exports#
- From
pyfect.eventlog.event:Event,Write - From
pyfect.eventlog.event_group:EventGroup - From
pyfect.eventlog.event_journal:Entry,EventJournal,EventJournalError,RemoteEntry - From
pyfect.eventlog.event_log:EventLog,Registry - From
pyfect.eventlog.event_log_encryption:EventLogEncryption - From
pyfect.eventlog.event_log_remote:EventLogRemote - From
pyfect.eventlog.event_row:EventRow