-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Describe the feature
What?
-
Currently we support relayer
InMemoryRelayerRepository&RedisRelayerRepositorysimilarly for transaction state management we supportInMemoryTransactionRepository&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.