araeuchle

Experience

280

0 Best Reply Awards

  • Member Since 3 Days Ago
  • 1 Lesson Completed
  • 0 Favorites

15th January, 2018

araeuchle started a new conversation Laravel Forge And AWS Hosting Environment • 2 days ago

Hey guys. Ok firstable, Laravel Forge is super awesome! i totally love the idea behind it. But i have one question if this scenario can be achieved with it:

Ok we are going to have the following infrastructure with AWS:

1 Loadbalancer 2 Application Server (EC2 Instances) 1 Amazon Aurora DB 1 Storage Server (Amazon S3)

The application needs to be able to scale horizontally dynamically depending on traffic. Deployments should effect all EC2 Instances running by AWS. Storage Server should be connected to all EC2 instances. It should be possible to select Availability Zones were the servers should be hosted.

Any tip if this can be achieved with forge?

14th January, 2018

araeuchle left a reply on Task Scheduling In A Big Environment With Two Or More Application Servers • 3 days ago

@martinbean: ok awesome! that what i was looking for! thanks for your help!

13th January, 2018

araeuchle left a reply on Task Scheduling In A Big Environment With Two Or More Application Servers • 3 days ago

My understanding problem atm is the following:

The command is called at the same time. so Laravel will have two instances trying to execute the jobs. How is decided which app is executing the job AND is the job really blocked when hit by the other instance first? :)

araeuchle left a reply on Task Scheduling In A Big Environment With Two Or More Application Servers • 3 days ago

@martinbean: Thanks for your answer.

So lets assume i have two application servers running and are connected through Load Balancer. I am build a job and add the job. when i call withoutOverlapping() it should prevent to be Double Triggered. is this right? :)

araeuchle started a new conversation Task Scheduling In A Big Environment With Two Or More Application Servers • 3 days ago

Hello guys. My first post here! We have started creating a new web application using Laravel 5.5. We are expecting to have several thousands of users so we will host this application on AWS using a Load Balancer and two application servers for the start.

To my question: I have given the following task to create a Job that runs daily at 00:00. Check if a user have birthday, if he has birthday, sent him an email. Also check for his age and depending on his new age he gets a new user role.

I realised that Laravel's build Task Scheduler should be perfect for it, but it wants me to a cronjob every one minute. So i am looking for some solution were i can build something that is really reliable to call long running tasks.

Any help is really appreciated!

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.