Fergus In London

The musings of a man with a keyboard and an internet connection.

Automating Code Generation With Docker

2019-04-11 4 min read

Code generation can be really useful; need to generate some models from an OpenAPI spec or a Protocol Buffer definition? No problem! Unfortunately in a team environment this can pose a few problems though: What happens when new members of staff join the team and have newer versions of the generation tools? Should generated files be checked in source control - and if so, how can you ensure that no manual modifications are present?

Continue reading

Docker multi-stage builds are awesome.

2018-05-23 3 min read Fergus
I have a new found love of Docker; despite my early frustrations with CoreOS (as it was) in 2015, I have come to love the simplicity and encapsulation that containers provide. Run a single command and whoosh - you now have a completely functional unit that runs whichever package you require, and it’s nice and isolated too: awesome! In contrast though, I have no love for build processes: you’re always one step away from dependency hell, small environmental issues can prove to be show-stoppers, and you end up polluting your development or build environment with various tools and libraries. Continue reading

The Rise of the Function-As-A-Service

2018-04-03 4 min read Fergus
“Functions as a Service” are becoming quite a common component in complex web services; they allow energy conservation - and thus cost reduction - via only utilising resources when required. The daddy of FaaS providers is AWS Lambda, as it ties nicely in to other AWS services like the AWS API Gateway, SQS and S3. There are other providers though, such as Google’s Cloud Functions or Microsoft’s Azure Functions. Continue reading