Support the ongoing development of Laravel.io →
Queues Architecture
Last updated 2 years ago.
0

My opinion is always cache or queue if backend processing takes more than a second. There are some exceptions like "search" or "scrape", but other than that you should aim in 0.5 response time.
In your case 10 seconds to perform this request is a killer.

Let's imagine that you will encounter 250+ users performing image manipulation at the same time. With default LAMP stack your server load will hit the roof!!!

To achieve youtube like feedback you will need some clever front end magic such as WebSocket or less efficient setInterval function.

How to setup Laravel queue server : http://fideloper.com/ubuntu-beanstalkd-and-laravel4

Great Laravel/WebSocket implementation : https://github.com/BrainBoxLabs/brain-socket

Last updated 9 years ago.
0

These are 2 excellent links. I think I know where and what to evaluate.

I just have another question that worries me a bit at the moment. Your example of 250+ user using the service at the same time would be a great thing, meaning the service is a success. So far I have put that worry away with the assumption that in that case I would just upgrade/resize my droplet at digitalocean. Is this assumption correct. I guess in theory there must be a solution even with thousands of manipulaions at the same time, multiple servers sharing the load?

Last updated 9 years ago.
0

Also checkout Gearman PHP a good queue server

0

Sign in to participate in this thread!

Eventy

Your banner here too?

pbohny pbohny Joined 12 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.