The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Beekeeper::Service::Router - Route messages between buses

VERSION

Version 0.01

SYNOPSIS

  $self->bind_connection( "frontend.user-123" );
  
  $self->send_notification(
      method => 'myapp.info@frontend.user-123',
      params => 'hello',
  );
  
  $self->unbind_connection( "frontend.user-123" );
  
  $self->unbind_address( "frontend.user-123" );

DESCRIPTION

Router workers shovel requests messages between frontend and backend brokers.

In order to push unicasted notifications all routers share a table of client connections and server side assigned arbitrary addresses.

METHODS

bind_connection ( $address )

Assign an arbitrary address to a current client connection.

This address can be used later to push notifications to the client.

The same address can be assigned to several connections at the same time.

unbind_connection

Cancel current client connection bind to an address.

unbind_address ( $address )

Cancel every connection bind to a given address.

AUTHOR

José Micó, jose.mico@gmail.com

COPYRIGHT AND LICENSE

Copyright 2015 José Micó.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language itself.

This software is distributed in the hope that it will be useful, but it is provided “as is” and without any express or implied warranties. For details, see the full text of the license in the file LICENSE.