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

DEVEXP-469: Support sms versioning #26

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JPPortier
Copy link
Contributor

No description provided.


// let business layer process the request
switch (event) {
case InboundText e -> webhooksBusinessLogic.processInboundEvent(e);
case TextMessage e -> webhooksBusinessLogic.processInboundEvent(e);
default -> throw new IllegalStateException("Unexpected value: " + event);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can imagine to respond successfully in case of a Delivery Report event, even if we don't use it in this getting-started example. Otherwise, the server will be flooded with attempts from the Sinch server to deliver this event successfully.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔
We can discuss furthermore, because on the opposite, responding silently and blindly "that's fine" to every request may be not the best onboarding and quickstart way we could want for a Sinch product (e.g Verification even if I'm aware we are having different Controllers int this current sample app).
So finally, do we want to highlight to end users to take aware of their own backend with exception/error logs (they should monitoring) to do we want to avoid them to be flood because they do not handle "properly" webhooks management.
It seems my answer give insight about my preference 👼 but open to discussion 😄

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

Successfully merging this pull request may close these issues.

2 participants