New answers tagged

3 votes

Should repositories return self persisting entities?

In domain driven design... I'm with @Flater on this one. DDD is mainly about the domain as ubiquitous language, i.e. used everywhere, including in the code. It is less about these entity-value-...
user avatar
2 votes

Are repositories async?

Whether you use an Order or a Promise<Order>/Future<Order>/Task<Order> is really more about your program and it's programmers and their familiarity with async/await patterns. ...
user avatar
  • 6,967
3 votes

Are repositories async?

A repository is just a pattern where you separate the "get object from the storage" (database/file/api/whatever) code from the object. Typically the storage is a database so there will be ...
user avatar
  • 65k
4 votes
Accepted

Are repositories async?

Today, you'd typically make it async. There was a time when mainstream languages and their standard libraries didn't have async/await or things like promises and futures, so you had to do things with ...
user avatar

Top 50 recent answers are included