recentpopularlog in


« 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 
6 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 
6 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 
25 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 
4 weeks ago by eeichinger
AtomicReference: A (Sometimes Easier) Alternative to Synchronized Blocks - DZone Java
`AtomicReferences`에 관한 아티클인데 난 `Retry Until Success` 처리방식이 흥미롭다.
java  java8  AtomicReferences  retry 
9 weeks ago by ncrash

Copy this bookmark:

to read