Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

Sending Webhooks with Exponential Backoff Discussion

General • Asked by Chris Oliver


love the episode!

Just a tiny remark; when running this code;

  def send_create_webhook!
    User.has_webhook_enabled.find_each do |user|
      SendWebhookJob.perform_later(user.webhook_url, {
        type: "tweet.created",
        id: id,
        body: body,
        user: {
          id: user_id,

Wouldn't that be sending the wrong You pass in the user that wants to receive the webhook and in the body, you refer to that webhook user, instead of the user that created the tweet.

I think refering to would fix that.

Sidekiq has an automatic job retry with exponential backoff:

Why didn't you use that?

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 29,763+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.