Open in app

Sign in

Write

Sign in

Alex Tan
Alex Tan

45 Followers

Home

About

Jan 7, 2021

The Outbox Pattern

The Assignment Let’s say you are tasked to write a service that handles user registration. Upon registration, two emails will be sent out — one welcome email, and another for confirming the email. How would you design it? Dissecting the Problem Surely it’s not difficult. All we need is just one register function that persists…

Microservice

6 min read

The Outbox Pattern
The Outbox Pattern
Microservice

6 min read


Jun 6, 2020

Makefile 101: Useful tips and tricks

Here are some useful tips on using Makefile and how to optimize them: Creating a Makefile In order to work with Makefile , we need to create one first:

Makefile

4 min read

Makefile 101
Makefile 101
Makefile

4 min read


Oct 6, 2019

Microservice Health Endpoint

The Health Endpoint 👨‍⚕️ Consider the following scenarios: You are working on an integration of an API, and you are given an API endpoint, https://api.abc.com/. Now, they did not provide sufficient information on the endpoint, so you figured you will have to take a look at the repository and read the code (assuming it’s…

DevOps

2 min read

DevOps

2 min read


Aug 29, 2018

Docker and Go 1.11 modules

This is a simple guide on how to dockerize a golang binary in go1.11 with the vendor directories. By default go command will completely ignore vendor directories. But enabling the build using the vendor directory would speed up build a lot, especially when running inside Docker, as you do not need to fetch the dependencies anymore. View the guide here: alextanhongpin/go-modules Docker + go modules in go1.11. Contribute to alextanhongpin/go-modules development by creating an account on GitHub.github.com

Golang

1 min read

Golang

1 min read


Aug 23, 2018

Circuit Breaker in Microservices

I have seen a lot of presentation on circuit-breakers - on how successful it was when Company X or Company Y applied it in services. Yet, I have always asked myself this question — is circuit breaker really practical in an auto-scaling environment? That question was never really answered by…

Microservices

2 min read

Circuit Breaker in Microservices
Circuit Breaker in Microservices
Microservices

2 min read


Apr 11, 2018

gRPC Load Balancing with Nginx

Nginx recent release finally has native support for gRPC. It is a nice addition to existing tools such as Linkerd, Traefik, Envoy etc, but with much simpler configuration. 😄If you have tried Linkerd (which has an awesome dashboard!), you would definitely have agreed. To test it out, we have a…

Docker

2 min read

gRPC Load Balancing with Nginx
gRPC Load Balancing with Nginx
Docker

2 min read


Sep 9, 2017

10 things I learnt about Go

1. There’s no round function for numbers If you want to round numbers in go, you have to implement it yourself, that is, until go 1.10 is released. 2. There’s no reverse string function Again, it’s weird that go lacks something as simple as a reverse string function. But there are times when you actually need it. Here's how you can do…

Programming

2 min read

Programming

2 min read


Sep 4, 2017

Multi-Stage Docker build for Go

TL;DR Dockerize your golang app easily with the new multi-stage builds from Docker 17.05. Reduce deployment steps and produce smaller, optimized builds. Audience: You want to know how to Dockerize your Golang app You want your Docker image to be as small as possible You want to know how multi-stage docker build…

Docker

3 min read

Docker

3 min read

Alex Tan

Alex Tan

45 Followers
Following
  • Sciforce

    Sciforce

  • cheetooh

    cheetooh

  • Matt Klein

    Matt Klein

  • .

    .

  • Kent Gruber

    Kent Gruber

See all (37)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams