Web app using Microservices in Go: Part 3 – Storage and Master

Previous part Introduction In this part we will implement the next part of the microservices needed for our web app. We will implement the: Storage system Master This way we will have the Master API ready when we’ll be writing the slaves/workers and the frontend. And we’ll already have the database, k/v store and storage when writing the master. SO every time we write something we’ll already have all its dependencies....

March 21, 2016 · 9 min · Jacob Martin

Web app using Microservices in Go: Part 2 – k/v store and Database

Previous part Introduction In this part we will implement part of the microservices needed for our web app. We will implement the: key-value store Database This will be a pretty code heavy tutorial so concentrate and have fun! The key-value store Design The design hasn’t changed much. We will save the key-value pairs as a global map, and create a global mutex for concurrent access. We’ll also add the ability to list all key-value pairs for debugging/analytical purposes....

March 16, 2016 · 11 min · Jacob Martin

Web app using Microservices in Go: Part 1 – Design

Introduction Recently it’s a constantly repeated buzzword – Microservices. You can love ’em or hate ’em, but you really shouldn’t ignore ’em. In this short series we’ll create a web app using a microservice architecture. We’ll try not to use 3rd party tools and libraries. Remember though that when creating a production web app it is highly recommended to use 3rd party libraries (even if only to save you time)....

March 14, 2016 · 5 min · Jacob Martin

Practical Golang: Using Google Drive and Calendar

Introduction Integrating Google services into your app can lead to a lot of nice features for your users, and can create a seamless experience for them. In this tutorial we’ll learn how to use the most useful functionalities of Google Calendar and Google Drive. The theory To begin with, we should understand the methodology of using the Google API in Golang. For most of their API’s I’ve skimmed through it works like that:...

March 8, 2016 · 10 min · Jacob Martin

Practical Golang: Using websockets

Introduction This is the first post in the practical Golang series. Posts in it are meant to provide short and informative introductions to various topics. This one is a about websockets, which are an awesome and easy way to provide communication between your web app and server. Here we will use the gorilla websocket library, but you could also use a few others. We will create two basic apps which should cover most day to day usage:...

March 7, 2016 · 5 min · Jacob Martin