MCPcopy Create free account
hub / github.com/effect-app/libs / messagePartition

Function messagePartition

packages/infra/src/ClusterCosmos.ts:113–113  ·  view source on GitHub ↗
(shardId: string)

Source from the content-addressed store, hash-verified

111const refailPersistence = <A, E, R>(effect: Effect.Effect<A, E, R>) => PersistenceError.refail(effect)
112const cosmosId = (id: string) => encodeURIComponent(id)
113const messagePartition = (shardId: string) => `message::${shardId}`
114const messageDocId = (envelope: Envelope.Encoded, primaryKey: string | null) =>
115 cosmosId(primaryKey === null ? envelopeId(envelope) : `primary::${primaryKey}`)
116const replyPartition = (requestId: string) => `reply::${requestId}`

Callers 1

envelopeToDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…