Skip to content

What is the best way to pass events to another Laravel project? #291

Answered by inmanturbo
PJKerrigan asked this question in Q&A
Discussion options

You must be logged in to vote

sounds like a good case for rabbitmq. Other options are to have your event project make an api call to the new project over http when events are fired. A similar but more scalable, "eventually consistent" way is you expose an "events" api in your current project then begin polling that api from your new project at intervals based on how quickly it will need the data, you could use artisan scheduler for this. What you are describing is essentially microservices. Even still another, less advisable option is to poll the event stream directly over tcp using a shared database connection.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@brendt
Comment options

Answer selected by brendt
Comment options

You must be logged in to vote
5 replies
@inmanturbo
Comment options

@renepardon
Comment options

@inmanturbo
Comment options

@renepardon
Comment options

@inmanturbo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants