Skip to content

Instantly share code, notes, and snippets.

@myitcv
Last active August 29, 2015 13:56
Show Gist options
  • Save myitcv/9093747 to your computer and use it in GitHub Desktop.
Save myitcv/9093747 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'bundler/setup'
require 'celluloid/autostart'
require 'aws-sdk-core'
Aws.config = { access_key_id: 'xxxxxxxxx', secret_access_key: 'xxxxxxxxxxxx', region: 'xxxxxxxxx' }
class SigningTest
include Celluloid
include Celluloid::Logger
def initialize(client)
@client = client
end
def doit
info @client.list_tables.inspect[0,15]
end
end
dd = Aws.dynamodb
x = SigningTest.pool(size: 50, args: [dd])
(1..100).each do
x.async.doit
end
sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment