Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Dealing With the Outside World (we need to get something done in the outisde world) #46

Open
ylorph opened this issue Mar 27, 2020 · 4 comments

Comments

@ylorph
Copy link
Owner

ylorph commented Mar 27, 2020

As in ... some call needs to be done to say a payment gateway

Options:

@ylorph ylorph changed the title Problem: Dealing With the Outside World Problem: Dealing With the Outside World (using the outisde world) Apr 23, 2020
@ylorph ylorph changed the title Problem: Dealing With the Outside World (using the outisde world) Problem: Dealing With the Outside World (we need to get something doe in the outisde world) Apr 23, 2020
@patryk-marcin-zielinski

Is there any referential implementation of requested pattern? I would assume this pattern is part of the infrastructure? (or this is an incorrect assumption?) How the result of that communication could be express in a domain? (probably event?)

@ylorph
Copy link
Owner Author

ylorph commented May 21, 2020

Not necessarily infra , it's always dependent on the type of process behind the scene,
=> think of web sites where you reserve a spot & they tell you at one point in time "please fill in the rest of the details within 15min so that we can confirm your spot" (airlines, bookings, ......)

@patryk-marcin-zielinski

Ok I think I understand do we have any referential implementation?

@MerrionComputing
Copy link
Contributor

There are abstract entities in lots of businesses that do represent a form of saga pattern (with names like "booking" or "transaction" etc.) and for these the state of them depends on what is going on with external (to them) factors. By having a x requested event you can get the state of the saga in terms of "was everything I need done completed" because if the number of requests exceed the number of responses then we are waiting for something.

Dealing with non response to a request is an issue though - do you go with a timeout on the abstract entity (source) side and add a "No response to request" event which then triggers the compensating actions required to undo the saga-style entity?

@ylorph ylorph changed the title Problem: Dealing With the Outside World (we need to get something doe in the outisde world) Problem: Dealing With the Outside World (we need to get something done in the outisde world) Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants