Profile picture
Andrei Pacurariu @AndreiPacurariu
, 7 tweets, 2 min read Read on Twitter
I realize I've been asking you a lot of question lately and will probably get throttled which is fair enough :). But if you've got the time and feel like it: Say some products require reservation on existing stock but some don't. 1/7
So, an order must be accepted or not based on the specific product and stock levels. There's a whole domain around orders and another around stock. They naturally form boundaries for two services: Orders & Stock. Yet the last stage of accepting an order takes input from both. 2/7
It's more complex in fact, as an Order with a value larger than X must be flagged for human review by an Orders Desk. Of course, product pricing does not fall within Orders but rather Sales due to there being a whole different domain around pricing. 3/7
So, an order can be rejected (due to Stock rules) or flagged for review before accepting it (due to it's value derived from Sales prices). Anyway, once accepted, Orders continues processing the order. 4/7
The options I see: 1. Orders is aware of the OrderAccepted and OrderIsLarge (or similar) events published by Stock and Sales respectively. 2. Orders invokes some kind of engine which gets a decision (not raw biz data) from Sales and Stock it uses for subsequent processing. 5/7
Both options have pros and cons so I'm wondering what would you recommend. More biz. analysis can always be done but I'm really interested in dealing with such cross-cutting decisions as I'm sure I'll find one which I cannot model away. 6/7
It's a case of a biz process starting in a service, spanning others, and returning in the initial service. In many cases I see how it can be modeled away with deeper domain insight but I've got something where it doesn't seem the case. Thanks and much appreciated, as always! 7/7
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Andrei Pacurariu
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($3.00/month or $30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!