Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add standalone MPR postgres module #41

Merged
merged 18 commits into from
Dec 24, 2024

Conversation

gabrielmatau79
Copy link
Contributor

Introduce new module credo-ts-message-pickup-repository-pg

This module implements the MessagePickupRepository interface from @credo-ts to manage messaging in live mode. It uses PostgreSQL as the storage backend for all messaging operations and introduces a publish/subscribe system to support multiple instances sharing the same database.

This approach centralizes all database operations for a DIDComm Mediator, simplifying its implementation and ensuring seamless scalability across multiple instances.

Resolve issue #40

@gabrielmatau79 gabrielmatau79 self-assigned this Dec 18, 2024
packages/postgress/config/constants.ts Outdated Show resolved Hide resolved
packages/postgress/src/MessagePickupRepositoryPg.ts Outdated Show resolved Hide resolved
packages/postgress/src/MessagePickupRepositoryPg.ts Outdated Show resolved Hide resolved
packages/postgress/src/MessagePickupRepositoryPg.ts Outdated Show resolved Hide resolved
packages/postgress/src/MessagePickupRepositoryPg.ts Outdated Show resolved Hide resolved
packages/postgress/src/MessagePickupRepositoryPg.ts Outdated Show resolved Hide resolved
packages/postgress/src/MessagePickupRepositoryPg.ts Outdated Show resolved Hide resolved
packages/postgress/src/MessagePickupRepositoryPg.ts Outdated Show resolved Hide resolved
packages/postgress/src/MessagePickupRepositoryPg.ts Outdated Show resolved Hide resolved
packages/postgress/src/interfaces.ts Outdated Show resolved Hide resolved
@genaris genaris linked an issue Dec 19, 2024 that may be closed by this pull request
packages/postgress/src/interfaces.ts Outdated Show resolved Hide resolved
packages/postgress/src/interfaces.ts Outdated Show resolved Hide resolved
packages/postgress/src/interfaces.ts Outdated Show resolved Hide resolved
@genaris genaris changed the title feat: Initial commit add standalone MPR postgress module feat: add standalone MPR postgres module Dec 19, 2024
@genaris
Copy link
Contributor

genaris commented Dec 19, 2024

Also don't forget to add an entry in release-please-config.json:

    "packages/postgres": {
      "release-type": "node"
    }

And .release-please-manifest.json:

"packages/postgres": "0.0.1"

It also would be good to add in tsconfig.json, under compilerOptions:

      "@2060.io/credo-ts-message-pickup-repository-pg": ["packages/postgres/src"]

packages/postgres/src/interfaces.ts Outdated Show resolved Hide resolved
packages/postgres/src/PostgresMessagePickupRepository.ts Outdated Show resolved Hide resolved
packages/postgres/src/PostgresMessagePickupRepository.ts Outdated Show resolved Hide resolved
packages/postgres/src/PostgresMessagePickupRepository.ts Outdated Show resolved Hide resolved
packages/postgres/src/PostgresMessagePickupRepository.ts Outdated Show resolved Hide resolved
packages/postgres/src/PostgresMessagePickupRepository.ts Outdated Show resolved Hide resolved
packages/postgres/package.json Outdated Show resolved Hide resolved
packages/postgres/package.json Outdated Show resolved Hide resolved
packages/postgres/src/interfaces.ts Outdated Show resolved Hide resolved
@gabrielmatau79
Copy link
Contributor Author

The module has already been tested with basic functionality in a Didcomm Mediator instance with good results.

Signed-off-by: Ariel Gentile <[email protected]>
Signed-off-by: Ariel Gentile <[email protected]>
@genaris genaris merged commit d499b7d into main Dec 24, 2024
4 checks passed
@genaris genaris deleted the feat/add-standalone-mpr-postgress branch December 24, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add standalone MessagePickupRepository Postgres implementation
2 participants