Skip to content

Add the option to use Symfony locks #1604

@BentiGorlich

Description

@BentiGorlich

Is your feature request related to a problem? Please describe.
When a user uploads a pretty large image that takes some time to generate a thumbnail for and said user keeps on hitting f5 on the page because the image is not loading (it is being generated) multiple processes try to generate the thumbnail, one for each reload. Because the image processing on its own can eat up RAM quite well you can run into the issue that you php-fpm process gets killed to recover memory, because otherwise the server would crash

Describe the solution you'd like
Add the option to use the Symfony lock component so each image can only be processed by exactly one process at a time

Describe alternatives you've considered
I though about triggering the generation on uploading the image and that might help, but it doesn't really solve the issue

Additional context
https://github.com/MbinOrg/mbin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions