How Is Gateway Supposed to Work? #186
-
Hi, We are looking to use Eventuous in production in order to reduce boilerplate code (thanks @alexeyzimarev for creating this!). We're playing around with the sample app. Everything makes sense but we just can't make heads or tails of how to get the gateway working. Here's what we've done so far:
The subscription works fine if we look for PaymentEvents.PaymentRecorded event (changing this in the handler). But it does not have any knowledge of IntegrationEvents.BookingPaymentRecorded. The event gets created successfully but the Transform method never hits. Pretty sure we're missing some piping but haven't been able to figure out where. We've looked through the discussion, there was one mention of Gateway, but the link is broken. Would appreciate some help. If there is an example with this working as expected, we'd really appreciate it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the feedback. I am wondering why you needed to do all that work as it's already in the sample app. The RegisterPayment endpoint in the Bookings app is for easy demo purpose only, but the flow should work as you described if you just run Bookings and Payments without any changes. Here's the API endpoint in Bookings.Payments: https://github.com/Eventuous/dotnet-sample/blob/baf0d7c8e528afc8a50c53da2417bee8d11a8b8f/Bookings.Payments/Application/CommandApi.cs Here's the integration subscription in Bookings: https://github.com/Eventuous/dotnet-sample/blob/baf0d7c8e528afc8a50c53da2417bee8d11a8b8f/Bookings/Integration/Payments.cs |
Beta Was this translation helpful? Give feedback.
Thanks for the feedback. I am wondering why you needed to do all that work as it's already in the sample app. The RegisterPayment endpoint in the Bookings app is for easy demo purpose only, but the flow should work as you described if you just run Bookings and Payments without any changes.
Here's the API endpoint in Bookings.Payments: https://github.com/Eventuous/dotnet-sample/blob/baf0d7c8e528afc8a50c53da2417bee8d11a8b8f/Bookings.Payments/Application/CommandApi.cs
Here's the integration subscription in Bookings: https://github.com/Eventuous/dotnet-sample/blob/baf0d7c8e528afc8a50c53da2417bee8d11a8b8f/Bookings/Integration/Payments.cs