Skip to content

Instantly share code, notes, and snippets.

@wiless
Last active August 31, 2015 09:34
Show Gist options
  • Save wiless/0b9d5b045970c6791a9c to your computer and use it in GitHub Desktop.
Save wiless/0b9d5b045970c6791a9c to your computer and use it in GitHub Desktop.

A golang application models a system of multiple base-station represented as

type BaseStation struct{
...
}

A simulation system creates []BaseStation and calls .Transmit(ch chan []complex128) method for each object. Typical size of []BaseStation is of the order of 100s.

Approach 1

Definitely go bs.Transmit() will be limited by number of vCPU in the system.

Approach 2

Create a docker image with the BaseStation functionality and provide API through RPC. Create such N=100 containers from this Basestation image and communicate with them over tcp. [ docker run basestation ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment