retry   251

« 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 
10 weeks ago 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

sleep_seconds
end
backoff  jitter  api  webhooks  rest  retry  sleep  idempotency 
10 weeks ago 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
hashicorp/go-retryablehttp: Retryable HTTP client in Go
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 85 million projects.
golang  http  retry 
june 2018 by bdimcheff

« earlier    

related tags

ajax  algorithm  algorithms  android  api  applications  architecture  article  aspnetcore  asynchronous  asyncio  at  atomicreferences  aws  backoff  backpressure  backup  break  bulkhead  busy  c#  cache  celery  centrifuge  circuit-breaker  circuit  circuitbreaker  cloudwatch  code  component  concurrency  counter  crash  credentials  csharp  curl  data  ddos  dead  decorator  decorators  design  dev  development  dispatch  distributed.computing  distributed  distributedsystems  dotnet  elixir  ember  error-handling  error  errorhandling  errors  exactly  example  excel  exception  exceptions  exponential.backoff  exponential  failsafe  failure  fallback  faraday  fault  feature  flickering  floss  fluent  fluentd  for  form  forms  framework  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  lambda  later  least  lib  library  limit  loadbalance  local  localstorage  log  logic  logs  loop  loops  management  message  messaging  metadata  metrics  microservice  microservices  module  most  net  netflix  network  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  redis  redo  refresh  reliability  repeatable  replay  request  requests-futures  requests  resilience  rest  retrying  rspec  ruby  rxjava  save  scala  scheduling  sdk  send  serverside  service  services  sidekiq  sleep  spring  stability  stem  storage  strategy  structure  submit  synchronous  systems  testing  tests  thundering_herd  time  timeout  tips  tls1.3  todo  tolerant  tools  transient  travis  travis_retry  tutorialspoint  until  vsto  web  webhooks  wget  while  write  冪等性 

Copy this bookmark:



description:


tags: