Comments (11)
- the version is 4.0-beta.1
- Could you please also show your
config/rabbitevents.php
- Your listener is incorrect. The first (and single) argument must be
$payload
. Please check the difference between wildcard and regular listeners.
from rabbitevents.
I was trying both Wildcard and Standalone, sorry for the confusion on that but I did try both.
The config is your provided stub.
<?php
return [
/*
|--------------------------------------------------------------------------
| RabbitEvents Connection Configuration
|--------------------------------------------------------------------------
|
| Here you may define the RabbitMQ connection settings that should be used
| by RabbitEvents. Note that `vhost` should be created by you manually.
| @see https://www.rabbitmq.com/vhosts.html for more info
|
*/
[
'default' => env('RABBITEVENTS_CONNECTION', 'rabbitmq'),
'connections' => [
'rabbitmq' => [
'driver' => 'rabbitmq',
'exchange' => env('RABBITEVENTS_EXCHANGE', 'events'),
'host' => env('RABBITEVENTS_HOST', 'localhost'),
'port' => env('RABBITEVENTS_PORT', 5672),
'user' => env('RABBITEVENTS_USER', 'guest'),
'pass' => env('RABBITEVENTS_PASSWORD', 'guest'),
'vhost' => env('RABBITEVENTS_VHOST', 'events'),
'logging' => [
'enabled' => env('RABBITEVENTS_LOG_ENABLED', false),
'level' => env('RABBITEVENTS_LOG_LEVEL', 'info'),
],
],
],
],
];
How do I pull in that beta version in composer? currently I have:
"nuwber/rabbitevents": "dev-master",
from rabbitevents.
I've now got "nuwber/rabbitevents": "dev-master#4.0-beta.1",
in the composer.json file but still when trying to run artisan rabbitevents:list
I still receive Your application doesn't have any registered broadcast events.
from rabbitevents.
"nuwber/rabbitevents": "4.0-beta.1",
from rabbitevents.
Thank you, I've fount what trouble is.
from rabbitevents.
As you can see, the issue was in the installation command.
How to fix in your app: just add App\Providers\RabbitEventsServiceProvider::class,
in your providers list in config/app.php
config.
from rabbitevents.
Thanks man, I'm about to go on a 4 day holiday over the aussie day long weekend but I will try it again on Tuesday morning if you can leave the ticket open. I've made pretty good strides so far using the tutorials, but hoping to simplify everything using this plugin and some other wrappers i'll put together.
from rabbitevents.
@seivad This issue will wait for your testing
The new tag was created: 4.0-beta.2
from rabbitevents.
Just bashed it around this morning and it's all working great! Listeners between μSVC and the main monoliths are working.
A thought though, how much harder would it be to support RPC? I've followed the RPC tutorial for PHP and Node.js on the RabbitMQ tutorials site, so really it's just listening back to the correct response. Maybe if we had another global helper command like publish but called rpc() which took in a UUID so it knows to send back to the right response. This is really the only thing missing now from this package for running microservices on Laravel.
Maybe also allowing some options on the listen command (command line call) to allow for persistent queues etc...
from rabbitevents.
@seivad Thanks for your test. So, I'll close this issue and you please make a new issue with your suggestion.
I've read your comment but not fully understand what you need. Maybe because I'm not familiar with RPC.
from rabbitevents.
And add a Star to this package if you like it
from rabbitevents.
Related Issues (20)
- Question about graceful restarting. HOT 5
- Write more information on Exception Ocurred
- When the listener starts without an event name then with large numbers of events it returns an error HOT 3
- Getting "PhpAmqpLib\Exception\AMQPInvalidArgumentException: String too long" on message delay when I start listener without event names HOT 3
- Give ability to explicitly set queue name in `rabbitevents:listen` command HOT 2
- Need example files
- Do payloads have to be JSON? HOT 8
- [QUESTION]: Deploying to productioin HOT 5
- Support php 8 HOT 3
- Config not properly read HOT 2
- sync or dummy driver for testing environment HOT 5
- ShouldBeUnique Support HOT 12
- exception Illuminate\Container\EntryNotFoundException when try using command HOT 4
- Configuration file is ignored
- Add protobuf as the transporting content-type
- Add option --message-ttl HOT 2
- Handlers could be executed twice after a Message release
- Worker stoped after 3 tries with error: "[INFO] Worker has been stopped with the status code 1"
- Connection option is not working HOT 1
- Horizon Support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rabbitevents.