retry   246

« 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 
3 days 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

backoff  jitter  api  webhooks  rest  retry  sleep  idempotency 
3 days 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 
22 days ago 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 
28 days ago by eeichinger
AtomicReference: A (Sometimes Easier) Alternative to Synchronized Blocks - DZone Java
`AtomicReferences`에 관한 아티클인데 난 `Retry Until Success` 처리방식이 흥미롭다.
java  java8  AtomicReferences  retry 
8 weeks ago by ncrash

« earlier    

related tags

ajax  algorithms  android  api  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  credentials  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  handling  howto  http-client-factory  http  iam  idempotency  implementation  ios  java  java8  javascript  jitter  job  juliaevans  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  network  next  nginx  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  stem  storage  strategy  structure  submit  synchronous  systems  testing  tests  thundering_herd  time  timeout  tips  tls1.3  todo  tools  transient  travis  travis_retry  tutorialspoint  until  vsto  web  webhooks  wget  while  write  冪等性 

Copy this bookmark: