Giter VIP home page Giter VIP logo

expbackoffworker's People

Contributors

dbhynds avatar deboorn avatar erictendian avatar watercycle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

expbackoffworker's Issues

Not compatible with Laravel 5.3+

It looks like this no longer works with Laravel 5.3 (and possibly other versions).

Declaration of ExpBackoffWorker\Worker::process($connection, Illuminate\Contracts\Queue\Job $job, $maxTries = 0, $delay = 0) should be compatible with Illuminate\Queue\Worker::process($connectionName, $job, Illuminate\Queue\WorkerOptions $options)

There is a change in the method signature as well as some of the internal implementation details.

Spatie Backup & Exponential Backup

Detailed description

We are having issues with Laravel Backup by Spatie due to rate limiting at Digital Ocean Spaces. We get time-outs / 503s. Besides options PHP Fly League S3 Driver (used by laravel Backup) gives us to do better error reporting there is no exponential backoff built in. We chatted with Flysystem https://github.com/thephpleague/flysystem-aws-s3-v3/issues/205 and Laravel Spatie spatie/laravel-backup#783 . Both agree exponential backoff is a good idea, but both packages do not provide this service.

So it would be great to either show in a test case how Laravel Backup could be used or an example in the README.md perhaps. This would help us a lot in our quest to get exponential backup to work.

Context

This change is vital to us to have Digital Ocean Spaces work for us for backups and potentially loading of static data. Currently backups only work partly and we had to give on on using their CDN for loading images of. Exponential Backoff would allows us to retry backups, cleanup of old backups after an x number of backups have been stored.

Possible implementation

Only idea of implementation I can think of currently is either an example of integration shown with a test or README.md example here or a new package that both uses Laravel Backup and Exponential Backoff. The former I think is better as both PHP Flysystem S3 nor Spatie Laravel Backup want to implement this directly as they want to focus on the core features of their respective packages.

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

  • Laravel 6.x, PHP 7.3
  • Laravel Forge Ubuntu 18.04 on Digital Ocean Droplet
  • Digital Ocean Spaces for the backup storage

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.