Перейти к содержимому

Refactoring to Batched Jobs from Actions - CLI-Driven Development for Large Jobs

Kompute’s Edge

0:00 / 0:00

Refactoring to Batched Jobs from Actions - CLI-Driven Development for Large Jobs

865 просмотров · 4 года назад
Kompute’s Edge
1,14 тыс. подписчиков
865 просмотров · 4 года назад
Today I'm working with Laravel Jobs and queues over a Bus to process my jobs in sequence. Before I begin, I'm setting up individual Actions and testing each step of my flow via the CLI. To simplify my process, I'm using the Laravel Actions package to extend my actions as commands and jobs. Best of all, these actions can be used batched and used over a bus! Resources used within my video: https://laravelactions.com/ https://laravel.com/docs/9.x/queues#a... 00:00 - Intro 00:13 - What we are doing today 01:19 - “Gotchas” 02:18 - Introducing Laravel Actions 03:22 - Mapping Actions to Jobs 03:46 - Actions as CLI Commands 04:35 - Testing our first CLI Action 05:18 - Testing our second CLI Action 05:55 - Testing our third CLI Action 06:31 - Refactoring our Actions into Batch Jobs over a Bus 07:38 - Testing our Bus::batch($chain) command 08:07 - Optimizing our Jobs (to process smaller parts ) 09:16 - Using then() to chain batches 10:18 - Refactoring Actions into Child Jobs 10:54 - Wrapping up 11:24 - Laravel Actions for the win! 12:01 - Thanks for watching! Enjoy!