Skip to content

Release v3.22.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 11:53
a0efeb7

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/2 imports any Enumerable, a lazy Stream included: 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/2 runs it as a Task.
  • Explicit import sessions: begin/1 opens one, Chronicle.Imports.Session.add/2 adds events in steps, complete/1 and abandon/1 end it, and reattach/2 resumes a session by its import id after a dropped connection.
  • get/2 reads an import's state, and observe/2 delivers its progress as messages to a process until unobserve/1.
  • EventForEventSourceId carries 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_contracts 19.153.