Skip to content
Discussion options

You must be logged in to vote

Yes, agree this is not a pure storage layer; we have the same understanding of how repositories should work where they should only deal with data access, but considering the requirements you mentioned I think that's the "best" approach, I'm willing to make that tradeoff.

With that being said, historically when dealing with external data that requires to be saved I either do two things:

  1. Request external data before passing those values to the data layer, or
  2. Augment records afterwards, meaning "shell records" are created first and then asynchronously augmented with the external data or deleted afterwards.

Those two options perhaps don't work in your case, and they have tradeoffs as well.

G…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Catgroove
Comment options

@MarioCarrion
Comment options

MarioCarrion Sep 11, 2024
Maintainer Author

@Catgroove
Comment options

@MarioCarrion
Comment options

MarioCarrion Sep 14, 2024
Maintainer Author

Answer selected by MarioCarrion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants