def start_service
      begin
        @registry = ActorRegistry.new
        @dispatchers = create_dispatchers
        # Creating sender now but for HTTP mode it is not really usable until setup_http
        # is called by the code loaded for this application in load_actors
        @sender = create_sender
        load_actors
        setup_traps
        setup_status
        if @mode != :http
          setup_non_delivery
          setup_queues
        end
        @history.update("run")
        start_console if @options[:console] && !@options[:daemonize]
        EM.next_tick { @options[:ready_callback].call } if @options[:ready_callback]
        @client.listen(nil) { |e| handle_event(e) } if @mode == :http

        # Need to keep reconnect interval at least :connect_timeout in size,
        # otherwise connection_status callback will not timeout prior to next
        # reconnect attempt, which can result in repeated attempts to setup
        # queues when finally do connect
        setup_status_checks([@options[:check_interval], @options[:connect_timeout]].max)
      rescue StandardError => e
        terminate("failed service startup", e)
      end
      true
    end
def start_service
      begin
        @registry = ActorRegistry.new
        @dispatchers = create_dispatchers
        # Creating sender now but for HTTP mode it is not really usable until setup_http
        # is called by the code loaded for this application in load_actors
        @sender = create_sender
        load_actors
        setup_traps
        setup_status
        if @mode != :http
          setup_non_delivery
          setup_queues
        end
        @history.update("run")
        start_console if @options[:console] && !@options[:daemonize]
        EM.next_tick { @options[:ready_callback].call } if @options[:ready_callback]
        @client.listen(nil) { |e| handle_event(e) } if @mode == :http

        # Need to keep reconnect interval at least :connect_timeout in size,
        # otherwise connection_status callback will not timeout prior to next
        # reconnect attempt, which can result in repeated attempts to setup
        # queues when finally do connect
        setup_status_checks([@options[:check_interval], @options[:connect_timeout]].max)
      rescue StandardError => e
        terminate("failed service startup", e)
      end
      true
    end
Start service

 === Return
 true:: Always return true