0 down vote favorite
I am building new app and trying to improve my coding practices. As I found it applicable in my app, I am using big parts of Equinox Project (https://github.com/EduardoPires/EquinoxProject), so I implemented(*ing) DDD and CQRS.
Long story short:
How should I implement transaction which involces two models to not brake DDD rules and keep CQRS approach?
I am struggling with the transactions arrangement. The app is sort of multitenant app where there is multiple users and multiple groups. User can belong to one group only. When user is registered, he has to either create new group or ask owner to join one. When I am creating the group, I have to do that in transaction:
- Create group.
- Assign user to group.
- If for some reason user wouldn’t be assigned to group, I have to roll it back.
How should it be solved to not mess up the code and don’t introduce any code smells?
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!