Comments (2)
Hi @jasoneisen,
Thanks for pointing it out! At this time there is not transaction between reading the balance and updating it.
One possible approach is to change the current Unit Of Work to include a transaction scope for the reading and update repositories.
Would you suggest a particular approach? I am interested into implementing it.
from clean-architecture-manga.
A transaction could be one approach for pessimistic concurrency control. Off the top of my head, another option would be using EF Core's rowversion
for optimistic concurrency. These would be the simple approaches, each with their own trade-offs. A more engineered approach could be some kind of partitioned bus or queue that ensures FIFO within the scope of an account id - though this pushes the complexity into the infrastructure and might make the local development story a bit more difficult.
from clean-architecture-manga.
Related Issues (20)
- Add ASP NET Identity
- Add MinVer and generate unique releases HOT 1
- Introduce HashCode struct into ValueObjects design HOT 1
- Failed to compile: Cannot find name 'connect'. TS2304 HOT 2
- Can Infrastructure layer reference direct a class on Domain layer? HOT 2
- On microservices, should the use case call the another service? HOT 4
- Executable specifications with Specflow HOT 2
- (Docker) issues running on Mac HOT 3
- Add Jaeger, Prometheus, Grafana and ELK docker containers
- [Question] How does the layering of this project match the clean architecture official diagram? HOT 1
- Multitenant support? HOT 1
- Environment Setup: docker_nginx doesn't not start - [emerg] 1#1: host not found in upstream HOT 2
- Repositories and Performance
- ./startup.sh failing on WebApi .Net 5 HOT 1
- Controller endpoint expects a ViewModel class as parameter (input)
- account-api won't start in Docker
- IdentityServer4 key rotation and management HOT 2
- Use Auth0 HOT 3
- Change IdentityServer to OpenIddict or implement both
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clean-architecture-manga.