SnapshotReader

edomata.backend.eventsourcing.SnapshotReader
trait SnapshotReader[F[_], S]

Attributes

Source
Snapshot.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait SnapshotStore[F, S]

Members list

Value members

Abstract methods

def get(id: StreamId): F[Option[Valid[S]]]

Reads snapshot

Reads snapshot

this might involve reading from disk and/or provide the latest version available due to buffering for instance

Value parameters

id

Stream id to read snapshot for

Attributes

Returns

optional snapshot for a folded aggregate

Source
Snapshot.scala
def getFast(id: StreamId): F[Option[Valid[S]]]

Reads snapshot from a fast access storage or returns None if not accessible from fast storage/cache. it will always return last version of cache or None.

Reads snapshot from a fast access storage or returns None if not accessible from fast storage/cache. it will always return last version of cache or None.

Value parameters

id

Stream id to read snapshot for

Attributes

Returns

optional snapshot for a folded aggregate

Source
Snapshot.scala