Skip to content

[Host.Outbox] Allow implementation OutboxRepository for a specific type PK #311

@dundich

Description

@dundich

I want to create outbox repository for Postgres, and I need the following features to create tables as PARTITION:

  • generate monotonically increasing PK
  • choose type for PK ( int64, ULID, UUID v7 )

for example:

public interface IOutboxRepository<TOutboxKey>  // <==  specific type
{
    Task<TOutboxKey> GenerateId(CancellationToken cancellationToken);  // <= added method
    Task Save(OutboxMessage<TOutboxKey> message, CancellationToken token);

The current implementation in the base class does not allow to do this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions