Sha256: 81867a1b71c5aed87884d9f8469c928f9a2bb07b72e74918ae50e4c2a56acfc8

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

require_relative "../lib/moleculer"

##
# Users is a class for benmarking speed vs Moleculer Node apps
class Users < Moleculer::Service::Base
  service_name "users"
  action "empty", :empty

  def empty(_context)
    {}
  end
end

Moleculer.config do |c|
  c.services << Users
  c.log_level = :info
end

Moleculer.run

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moleculer-0.1.0 examples/benchmark_server.rb