Questions tagged [persistence]
In computer science, persistence refers to the characteristic of state that outlives the process that created it. From Wikipedia: http://en.wikipedia.org/wiki/Persistence_%28computer_science%29
136 questions
0
votes
2
answers
616
views
How does the MVC pattern actually work?
I’m still a Computer Science student, and recently I’ve had to develop a project using the MVC pattern, but without having learned in depth about how it actually works. And it’s not the first time I’...
0
votes
2
answers
267
views
How does the DAO design pattern decouple the persistence layer from other layers?
I have a few questions about the DAO design pattern.
Let's suppose that I'm building a simple 2-tier MVC web app with a presentation layer and a persistence layer that communicates with a relational ...
-1
votes
1
answer
150
views
Passing In-Memory Specification to Repository
I am working on my DDD know-what/how and have the following questions related to the Specification Pattern, the Repository Pattern, persistence agnosticism, and performance.
Consider, for the sake of ...
1
vote
1
answer
195
views
Persisting data in a mobile app backed by a rest API back-end, advices [closed]
So I am working on this mobile application using MAUI, which is backed by a Rest API in ASP.NET Core.
I want to be able to use the app offline, and the user can create/edit some data. This data is ...
1
vote
4
answers
516
views
How to Access the Private State of an Entity in the Save Method of its Repository
Consider the domain entity, Order, which can be persisted by the OrderRepository. Orders maintain state that is stored in the database. However, it does not expose all of it directly. That is, parts ...
4
votes
9
answers
2k
views
Can a Domain Object always be "completely ignorant of persistence" and yet still possible to persist?
Domain Object, while not necessarily a design pattern, can at least be considered as a design "concept", and one of its points is:
https://wiki.c2.com/?DomainObject
Domain objects should ...
0
votes
1
answer
575
views
Architecture for storing generic data
(I am facing this issue with code written in Swift, but would appreciate any high-level pseudocode solution, just so that I may wrap my head around the architecture)
I need to find an architecture ...
1
vote
0
answers
529
views
How to post domain events with aggregate root Id before the root is persited?
This seems pretty newby question but I still can't find a answer I'm ok with.
I'm doing a microservice and decided to have a Message as an aggregate root. This Message represents a kind of ...
3
votes
1
answer
526
views
Should repositories return self persisting entities?
In domain driven design
A repository is a collection like "interface" that hides data source access. It furnish add, remove and retrieval method just like a collection would. It does it ...
1
vote
3
answers
1k
views
Design pattern for persistent data storage - load and save arbitrary file, database, api etc
I have the following problem - I write the code for object data manager, and one of requirements is being able to save/load data into some persistent data storage. I want to make it as the following:
...
0
votes
1
answer
340
views
Approach for store multiple relationships POO objects in relational database
I'm developing a system in which a ClassA object can have multiple ClassB and ClassC objects.
And for store these objects in a relational DB model I create the following tables:
This is a simplified ...
0
votes
1
answer
247
views
Architecture of a desktop application persistence model
I am working on a C++ desktop application using the MVC design-pattern. In a nutshell, it allows to monitor the position of a real robot in a 3D environment and create tasks for it by modifying the ...
0
votes
1
answer
3k
views
Encapsulation of External API in Infrastructure Layer AS Persistence
My question is about DDD, the Infrastructure layer, it's relation to the Domain, and specifically how we can take advantage of the ability to "swap out" one persistence implementation for ...
4
votes
3
answers
4k
views
Importance of loading/saving complete aggregates at once in DDD
In the context of a web application where we handle only one command per request in a stateless fashion, do we always have to load/save aggregates as one atomic unit? Why is it recommended not to ...
0
votes
0
answers
71
views
Bigdata architecture: persisting raw data and streaming them at the same time
In a case where we have multiple source of data, we need to :
persist each source of data in its raw form.
process the data source eventually with each other to transform them in a presentable state (...