mthenw
Re:Distributed Locks with Consul and Golang
on Wednesday December 28, 2016 @12:22PM (#13271955)
Thanks!
I was using Consul because we had that already deployed. After quick research looks like etcd client doesn't provide nice abstraction for creating dist locks. I found [1] and [2] though. Definitely it's doable with etcd.
[1] https://github.com/datawisesystems/etcd-lock [2] https://github.com/ORBAT/node-etcd-lock
First Female Computer Science Ph.D. Was a Nun #AdaLovelaceDay
Re:Amazon EC2 Container Registry
on Thursday October 08, 2015 @04:10PM (#10355797)
Short price comparison:
AWS ECR: $0.10/GB-month (+ data transfer)
quay.io: $12/month - cheapest plan (5 repos)
docker.com: $7/month - cheapest plan (5 repos)
https://aws.amazon.com/ecr/pricing/ https://quay.io/plans/ https://www.docker.com/pricing
Re:How to Test Private Functions in JS Modules
on Wednesday July 30, 2014 @01:16PM (#8109566)
Don't test methods. Test behaviour that stands behind them. Unit in "unit testing" stands for behaviour not method/function. Private methods are private because they should not be exposed outside, never. Changing internal implementation of module should not crash test suite.