|
|
|
|
|
by ledneb
2588 days ago
|
|
> Imagine sending out a command to the bus and not knowing when it'll get processed I would love to hear how others are correlating output with commands in such architectures - especially if they can be displayed to users as a direct result of a command. Always felt like I'm missing a thing or two. It seems the choices are: * Manage work across domains (sagas, two phase commit, rpc) * Losen requirements (At some point in the future, stuff might happen. It may not be related to your command. Deal with it.) * Correlation and SLAs (correlate outcomes with commands, have clients wait a fixed period while collecting correlating outcomes) Is that a fair summary of where we can go? Any recommended reading? |
|
You want something more like a service registry like zookeeper for that, where you can obtain a destination for service and speak to it directly. You'll need to wrap other error handling around it, of course, but that almost goes without saying.