Code Monkey home page Code Monkey logo

Comments (3)

supermomonga avatar supermomonga commented on June 20, 2024

1s, 2s, 4s, 8sのウェイトを置いて最大4回リトライする。

よさそう。でも単純に1,2,4,8とするよりは https://github.com/mperham/sidekiq/wiki/Error-Handling#automatic-job-retry このあたり参考に (retry_count ** 4) + 5 とかの方がよさそう。MoEmbedでは random number の加算は要らないかな…

例外発生から5分間有効とする

よさそう

最大n回リトライ、5分間有効の数字は設定可能であるとよさそう

from moembed.

pgrho avatar pgrho commented on June 20, 2024

いつも使っているウェイトの取り方はmin(c * f ^ n, max)かな。
Amazonの例だとc = 80ms, f = 2, max = 1280msで計算している。

from moembed.

supermomonga avatar supermomonga commented on June 20, 2024

よさそう。あとはAmazonとかの例考えるとサイト(Metadata)によってその辺り調整できればよさそげ

from moembed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.