Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    The Client asks the CustomerService first and only when it has the CreditCard and makes a call to the OrderService. Basically, the client orchestrates the steps to reach the last one. To decouple services, you must embrace the idea that services are "agnostic" to the source of the data they get as input. They expect the input, they don't go for it. They are only responsible and accountable for the outputs. Commented Oct 18, 2022 at 15:30
  • @Laiv Thanks, and so sorry to reply to this a year late! I'm just curious about the security implication of doing that - isn't it unsafe to pass intermediary data to the client when it could be avoided (especially in the case of sensitive info like credit cards)? Commented Oct 4, 2023 at 21:00