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

Persistence layer interface #3

Merged
merged 5 commits into from
Dec 13, 2021
Merged

Persistence layer interface #3

merged 5 commits into from
Dec 13, 2021

Conversation

daltonfury42
Copy link
Contributor

Define the interface of persistence layer. We would have one mongo based implementation for now.

Writing the Mongo stuff behind an interface would help us support multiple data storage systems, say for example if we feel tomorrow that we need to migrate to DynamoDB or install inhouse for a client who wants to store data in PostgreSQL. Also this will help us easily mock out the DB layer for testing our business logic.

internal/models/queue.go Outdated Show resolved Hide resolved
@daltonfury42 daltonfury42 marked this pull request as ready for review December 9, 2021 04:44
internal/persistence/persistence.go Outdated Show resolved Hide resolved
@aneeshsharma aneeshsharma merged commit 3ec6c18 into main Dec 13, 2021
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.

3 participants