Thank you for this article, it gives a very good overview! I have what I guess is a very simple question, but I can’t really find an answer to it. Lets say I want to execute a command in my system, which requires price data from an external API. The external API is a simple http interface and responds right away in this case.
Which would be the right component to do this?
An Actuator seems appropriate, since I’m taking a command (GetPriceData) and talk to the outside world (the price data API). But it can’t create an Event and its considered bad practice (or more of a grey area) to directly answer a command with a response. It may also become very unpractical, when you deal with async external calls.
The only way I see in this schema is to route it through a Actuator -> Plant -> Sensor pipeline, but it seems very complicated and over-abstracted for such a simple thing as an external API call.
Is there any solution for this problem I’m not seeing?