I would like to talk about a series of custom-made infrastructure components that I've built over several months to support a hosted e-commerce app that I run in my spare time. This consists of a central events hub written in Go, to which the user-facing apps send events, and a series of Go and Ruby scripts subscribing to said events on a ZMQ socket and doing varied things such as analytics, periodical backups and house-keeping. The code I’ll show is mostly Go, with some Ruby to illustrate how this all hooks in to my Ruby apps and existing infrastructure. I’ll try to show why Go is great for writing small, focused scripts that support your user facing apps.
YOU MAY ALSO LIKE: