Skip to content

Using different repos for different models #7

@assembler

Description

@assembler

What if I want to use different repos for different models? Some of my models can be persisted in postgres, while some retrieved via api, some stored in redis, yet others stored in dynamodb. As the app grows, I want to be able to change between persistance strategies on model basis in order to optimise performance, or extract some portions of it as external services.

Repo solution, as you have put it, is designed as a service which uses single shared implementation (strategy) for all the models. Am I missing a way to make this per-model based?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions