Ask A Question

Notifications

You’re not receiving notifications from this thread.

Can two apps consume webhooks of each others

Ali Ahmed asked in General

So let's say I have two apps with different dbs and both are dependent to each other (feature wise). For example App #1 has the user table and App #2 calls the App #1 Sign In Api to login the user over here. To make communication back and forth b/w two can be done thru API and webhooks and it can work fine if App #2 updates the App #1 thru webhook and App #2 can call the APIs exposed from App #1 or viseversa. But sometimes it is required that both App #1 and #2 need to update each other some way.
So my question is can we setup webhooks on both end of the apps?
Meaning that generally Webhooks are usually provided by Service Providers and clients use them (i.e who have provided their callback URL to them) but is this also a possibility/good practice if we can provide webhooks from both of the apps and both can use use each others events to perform operations? e.g App #2 sends events to App #1 to update user profile and App #1 sends the same event to App #2 because both of app have User model with same fields and we'd need to make sure that data is always updated.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.