Artwork

Do not fear the Queue!

DevelopersHangout

30 subscribers

published

iconShare
 
Manage episode 180394382 series 1401962
Content provided by Alfred Nutile and DailyAi.Studio and Alfred Nutile. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Alfred Nutile and DailyAi.Studio and Alfred Nutile or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://staging.podcastplayer.com/legal.

News & Other Happenings

Al (tool/app) Copied – Copy and Paste Everywhere by Kevin Chang

http://copiedapp.com/

Make sure to enable the keyboard

NK: Intro Video to Pickle - a BDD layer on top of Dusk and PHPUnit

https://www.youtube.com/watch?v=GmA-6hnhljI&feature=youtu.be

https://github.com/alnutile/pickle

Al: Github moving to GraphQL

https://developer.github.com/v4/

NK: IBM tells thousands of remote employees to come back to office or find new jobs

https://arstechnica.com/information-technology/2017/05/ibm-to-remote-workers-come-back-to-the-mothership-or-else/

Deep Dive

Do not fear the Queue

Queue usage

https://en.wikipedia.org/wiki/Message_queue

The many levels it can benefit your workflow and how you solve problems

Use Cases

Parallel tasks

Connect two different languages with json

Split up services offload work - Microservice

Allows you to work locally on a part of your App that later you can move off to a microservice or worker

Prevent database sharing

Sending Mail

Importing Files

Database buffer

Long running jobs

How to Implement

Locally using Sync Driver

Laracast

https://laracasts.com/search?q=Queue

Beanstalk

SQS

Iron

Forge

FortRabbit with CloudAMQP https://help.fortrabbit.com/cloudamqp

Homestead

AWS SQS

S3 for large payloads

How to deploy

Laravel Daemon pretty simple

Database

--simple start

--local jobs vs remote

Gotchas

Retries

SNS Format

You gotta restart the queue

Interesting how Laravel does it with timestamp

Have wasted a day on this in the past

Logs can will up if queue is erroring out

Failed jobs

Queue has limit 256 k limit

Visibility timeout

Links

Beanstalk

https://laracasts.com/lessons/beanstalkd-queues-with-laravel

etc

https://laravel.com/docs/5.4/queues#supervisor-configuration
link to sns

👉🏻 Support me on YouTube https://www.youtube.com/channel/UCZa3QWzy1z1G9FIw02pytdA/join

👉🏻 Subscribe to my YouTube https://www.youtube.com/@AlfredNutile

  continue reading

42 episodes