Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Medium.com:
Laravel 5.6 Preview - Single Server Scheduling
Nov 30, 2017 @ 15:40:46

On the Medium.com site today Laravel project lead and creator Taylor Otwell has posted about a feature coming in the 5.6 release of the Laravel framework: single server scheduling.

Today Laurence Ioannou, founder of the Laravel monitoring application Eyewitness.io, contributed a great new feature to Laravel 5.6 (February 2018 release): single server scheduling.

He illustrates the new feature by first defining a new "inspire" job, making it run hourly with the artisan command and not overlap with a previous execution. While this works with a simple server, it doesn't scale to multiple - that's where the "single server scheduling" comes in. The addition of this support provides a new onOneServer option that prevents the job from running elsewhere. It makes use of Redis or Memcache to store the information about which server it is running on so that will need to be enabled to use this feature.

tagged: laravel preview laravel56 single server scheduling job

Link: https://medium.com/@taylorotwell/laravel-5-6-preview-single-server-scheduling-54df8e0e139b


Trending Topics: