Git Product home page Git Product logo

Comments (11)

masterjus avatar masterjus commented on July 30, 2024
  1. the version is 4.0-beta.1
  2. Could you please also show your config/rabbitevents.php
  3. Your listener is incorrect. The first (and single) argument must be $payload. Please check the difference between wildcard and regular listeners.

from rabbitevents.

seivad avatar seivad commented on July 30, 2024

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.

seivad avatar seivad commented on July 30, 2024

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.

masterjus avatar masterjus commented on July 30, 2024

"nuwber/rabbitevents": "4.0-beta.1",

from rabbitevents.

masterjus avatar masterjus commented on July 30, 2024

Thank you, I've fount what trouble is.

from rabbitevents.

masterjus avatar masterjus commented on July 30, 2024

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.

seivad avatar seivad commented on July 30, 2024

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.

masterjus avatar masterjus commented on July 30, 2024

@seivad This issue will wait for your testing
The new tag was created: 4.0-beta.2

from rabbitevents.

seivad avatar seivad commented on July 30, 2024

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.

masterjus avatar masterjus commented on July 30, 2024

@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.

masterjus avatar masterjus commented on July 30, 2024

And add a Star to this package if you like it

from rabbitevents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.