Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Use redis pubsub as event bus
And use a queue system in Java to listen for processing request, create jobs and process them later on in a threaded manner
I dod the same with some heavy lifting long runing task except the processor itself is written in nodejs -
Laravel has support for background tasks using message queue
I used it a couple of years back to push notifications and send emails in background and reply to the user as soon as the job is saved in the queue -
uuid25567y@benderRodriguez I have a tight deadline to deliver this task but I'll surely check out your suggestion of using redis later.
I'm using symfony not laravel. -
It's not exactly multithreading (honestly, I still struggle with the concept) but there's Gearman.
http://php.net/manual/en/... -
@rising glad I could help (: now to just remember it when I jump back on the issue I originally needed it for and haven't had chance to fix!
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Daaamn! I needed to process some data simultaneously using PHP, so I thought of using Threads to make things faster, checked out SO and discovered that the available Thread class can only be used in cli environment not on a web server ... FML 😑.
It's like these moments that I remember why I hate PHP, and regret accepting this job.
I miss Java 😣😣
rant
php
multithreading
fml