Skip to content

Instantly share code, notes, and snippets.

@chris-arsenault
chris-arsenault / concurrent.rb
Created October 26, 2017 18:30
Shows how different ruby concurrency models operate
puts "Runnin those tests"
NUM_ARRAYS = 1600
ARRAY_SIZE = 16000
NUM_THREADS = 4
start = Time.now
sortables = Array.new(NUM_ARRAYS) { Array.new(ARRAY_SIZE) { rand(1...ARRAY_SIZE) } }
processes_sortables = []
@aeilers
aeilers / Hive_Pattern-Stack.md
Last active December 11, 2019 07:19
Hive Pattern/Stack

Hive Pattern/Stack

The Hive Pattern is a proven theory to redefine enterprise level architecture based on Command Query Responsibility Segregation (CQRS), Event Sourcing (ES), unified transaction logs, and microservices patterns.

Goals of the Hive Pattern:

  • define a horizontally scalable, high performing, fault tolerant solution for enterprise architecture
  • remove boilerplate application logic so engineers can focus on solving enterprise challenges
  • improve operational efficiencies through specialization and micro implementations
  • minimize the depth of n-tier architecture

The Hive Stack is an open source, enterprise application stack in the spirit of LAMP, MEAN, and other open source application stacks that proves the Hive Pattern. The intent is to provide a standardized set of services and storage solutions as a base set of tools to solve enterprise challenges.