Skip to content

Extend support for other databases for Relayer and Transaction repositoriesΒ #391

@tirumerla

Description

@tirumerla

Describe the feature

What?

  • Currently we support relayer InMemoryRelayerRepository & RedisRelayerRepository similarly for transaction state management we support InMemoryTransactionRepository & RedisTransactionRepository.

  • Code for Relayer Repository & Transaction Repository

Extend the support for additional databases like postgres ( local and/or cloud ), dynamodb, rds postgres etc ( cloud dbs ) to avoid anti-pattern of using redis as persistent storage. Using redis as persistent storage has higher costs associated with data storage especially if relayer is integrated with cloud redis dbs like aws elasticache.

In the shorter term - Adding expiration to items such as confirmed transactions after certain period of time ( ~4 hours for example ) would avoid higher costs for users when integrated with aws elasticache.

Medium/longer term - Extending support to other databases makes it flexible, reducing overall costs for data storage and follows best practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-mediumIntermediate-level tasksS-needs-triageRequires initial triage or categorizationT-featureSuggests a new feature or enhancementenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions