3 ms·
I love webhooks! I recently had to work with an api to integrate a card reader terminal. The system was intended to work with an on premise pos so it was orien
by cultofmetatron 5y ago
I love webhooks!
I recently had to work with an api to integrate a card reader terminal. The system was intended to work with an on premise pos so it was oriented around events sent back and forth over a websocket. Only one was allowed per restaurant.
In the end, I had to build a distributed cluster that managed a pool of processes that each spun up a websocket connection and relayed it to our pubsub system. Luckily I built out system in elixir so it was pretty easy to spin up hoarde but this would have been extremely difficult in any other language.
By contrast, a webhook is easy to scale from ANY language. Just make a http endpoint. Those are way easier to scale than a stateful process.
Not being able to replay a webhook event is an issue with the publisher of the webhook. not a consumption issue.