Subscription Triggers
In the previous section, we only used a single hard-coded topic value, but when we start thinking about tracking the life cycle of a particular entity, we need to pay a lot more attention to how we’re setting up our subscriptions and how we’re triggering them. The challenge isn’t just keeping track of how the topics are constructed; it can also be hard to make sense of where in your code base publish/3 calls may be happening. We’re going to explore an alternative approach to trigger mutations as we expand on the order-tracking capabilities of the PlateSlate system.
Everything that has a beginning has an end, and for the hungry customer, orders are fortunately no exception. We need to complete the life cycle of an order ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access