Repository navigation
Release v3.22.0
Elixir applications can import large volumes of events into an event sequence in one resumable session. Requires Chronicle 19.153.0 or later.
Added
Chronicle.Imports.import/2imports anyEnumerable, a lazyStreamincluded: every event is validated before anything is committed, the source is read while it uploads and sent in chunks, and the commit runs on the kernel as a job.import_async/2runs it as aTask.- Explicit import sessions:
begin/1opens one,Chronicle.Imports.Session.add/2adds events in steps,complete/1andabandon/1end it, andreattach/2resumes a session by its import id after a dropped connection. get/2reads an import's state, andobserve/2delivers its progress as messages to a process untilunobserve/1.EventForEventSourceIdcarries an event's correlation id, generation, source sequence number, idempotency key and named tags, which an import keeps on the stored events.
Changed
- Ordinary appends honor an entry's generation for the event type they send.
- The client now depends on
cratis_chronicle_contracts19.153.