retry   255

« earlier    

Designing robust and predictable APIs with idempotency
The Stripe Ruby library retries on failure automatically with an idempotency key using increasing backoff times and jitter. The implementation for that is pretty simple, and you can refer to it on GitHub to see exactly how it works.
jitter  backoff  architecture  idempotency  retry 
july 2018 by hellsten
stripe-ruby/stripe_client.rb at 1bb9ac48b916b1c60591795cdb7ba6d18495e82d · stripe/stripe-ruby
def self.sleep_time(retry_count)
# Apply exponential backoff with initial_network_retry_delay on the
# number of attempts so far as inputs. Do not allow the number to exceed
# max_network_retry_delay.
sleep_seconds = [Stripe.initial_network_retry_delay * (2 ** (retry_count - 1)), Stripe.max_network_retry_delay].min

# Apply some jitter by randomizing the value in the range of (sleep_seconds
# / 2) to (sleep_seconds).
sleep_seconds = sleep_seconds * (0.5 * (1 + rand()))

# But never sleep less than the base sleep seconds.
sleep_seconds = [Stripe.initial_network_retry_delay, sleep_seconds].max

backoff  jitter  api  webhooks  rest  retry  sleep  idempotency 
july 2018 by hellsten
OptimalBits/bull: Premium Queue package for handling jobs and messages in NodeJS.
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 85 million projects.
nodejs  redis  queue  javascript  performance  reliability  scheduling  retry  concurrency  job 
june 2018 by orlin
AWS IAM Role issue without retry · Issue #94 · fluent-plugins-nursery/fluent-plugin-cloudwatch-logs
What we do is we have a fluentd container sending logs to AWS cloudwatch from other containers in kubernetes. The EC2 instances where it runs do have proper role set that allows it to send logs. It looks like sometimes there are some tim...
aws  iam  retry  sdk  cloudwatch  timeout  credentials  refresh  metadata  logs  fluent  fluentd  plugin 
june 2018 by eeichinger

« earlier    

related tags

2018  abema  ajax  algorithm  algorithms  amsterdam  android  api  applications  architecture  aspnetcore  asynchronous  asyncio  at  atomicreferences  aws  backoff  backpressure  backup  break  bulkhead  busy  c#  cache  celery  centrifuge  channels  circuit-breaker  circuit  circuitbreaker  cloudwatch  code  comparison  component  concurrency  coroutines  counter  crash  credentials  csharp  curl  data  ddos  dead  decorator  decorators  deferred  design  development  dispatch  distributed.computing  distributed  distributedsystems  dotnet  elixir  ember  error-handling  error  errorhandler  errorhandling  errors  exactly  example  excel  exception  exceptions  exponential.backoff  exponential  failsafe  failure  fallback  faraday  fault  feature  flickering  floss  fluent  fluentd  for  form  forms  framework  frp  functional  future  futures  github  go  golang  google  grpc  guzzle  handle  handline  handling  howto  http-client-factory  http  iam  idempotency  implementation  ios  java  java8  javascript  jitter  job  kafka  kickserv  kotlinconf  kubernetes  lambda  later  least  library  limit  loadbalance  local  localstorage  log  logic  logs  loop  loops  management  message  messaging  metadata  metrics  microservice  microservices  module  most  net  netflix  network  networking  next  no  nodejs  offline  okhttp  on_failure  once  online  opensource  outage  pattern  patterns  performance  php  plugin  police  policy  polly  post  producer  programming  progressive  promise  pwa  python  queue  quic  rabbitmq  rate  ratelimit  ratelimiter  ratelimiting  reactor  redis  redo  refresh  reliability  repeatable  replay  request  requests-futures  requests  resilience  rest  retrying  rspec  ruby  rxjava  save  scala  scheduling  scopes  sdk  send  serverside  service  services  sidekiq  sleep  software  spring  stability  stem  storage  strategy  streams  structure  submit  synchronous  systems  testing  tests  thundering_herd  time  timeout  tips  tls1.3  todo  tolerant  tools  transient  travis  travis_retry  tutorialspoint  until  video  vsto  web  webhooks  wget  while  write  youtube  冪等性 

Copy this bookmark: