Skip to content

Instantly share code, notes, and snippets.

View erwindev's full-sized avatar

Erwin Alberto erwindev

  • Outschool
  • Jacksonville, FL
View GitHub Profile
@erwindev
erwindev / xhyve.md
Last active November 2, 2017 23:14

Running Docker in your Mac without using VirtualBox

I finally got a chance to try out xhyve as a possible replacement to VirtualBox for running virtual machines. Xhyve is a hypervisor which is built on top of OSX’s Hypervisor.framework that allows users to run virtual machines in user space. It is basically what Docker for Mac uses under the hood! Now why would I want to do this as it seems more work than just using VirtualBox or Docker for Mac. First off, I am a geek and doing something like this is pretty freaking cool. Second, I wanted to compare speed and performance of using xhyve with using VirtualBox or Docker for Mac when doing software development using docker. Anyway, here are the steps that I had to go through to start using xhyve.

Install xhyve

$ brew update
$ brew install --HEAD xhyve
$ xhyve -h 
@erwindev
erwindev / scalable-web.md
Last active May 22, 2023 09:38
Strategies Scalable Web Architecture

Strategies for a Scalable Web Application

highly scalable architecture

Scale Up vs Scale Out

Scale Up (Vertical Scaling)

  • Add more CPU’s or add faster CPU’s to a single server

Scale Out (Horizontal Scaling)