brown-gopher-background

Catching Slow Go Tests

The Problem Hello, in this short and sweet post, I will show a handy bash script to catch slow go tests based on their durations and their go cache status, but first we need to define the problem. Our current problem is when I run go test -v ./... we get simply huge output that is overwhelming with subtest outputs as well as t.Parallel pauses/continues. Plus, my inner OCD strikes when some things are always cached and some things are always not cached, I could never guess why and I never have time to look at plain log that has 1 million lines....

November 8, 2024 · 4 min · 656 words · Talha Altinel
spiral-staircase

Packaging Go for Arch Linux Tutorial

Getting Started In this tutorial, I will be showing how to package Go application for Arch Linux User Repository (AUR). We will be opening an AUR account and go through PKGBUILD template and follow Arch’s Wiki guidelines for Go. By the end of the tutorial, you will be able to upload your own Arch package that uses Go to AUR. The Requirements Git Go Arch Linux x86_64 AUR account Setting up AUR account and SSH key We will fill up the username and the email in this form, as well as the most important one public ssh key....

September 17, 2023 · 7 min · 1326 words · Talha Altinel
turquoise-gopher-background

[DEV PART 2/2] Serverless Highscore Go API with Faasd and CockroachDB

The Intro Hi everyone, this is the 2nd part of the series, we will be developing our API in this part. I will assume you have already followed the previous part and setup faasd and CockroachDB in your cloud server instance and have faas-cli in your both client computer and cloud server instance. I will also assume you have Go on your computer and a proper text editor. Let’s quickly get started....

September 8, 2021 · 10 min · 2046 words · Talha Altinel
yellow-gopher-background

[INFRA PART 1/2] Serverless Highscore Go API with Faasd and CockroachDB

The Series Intro Hi everyone, in this series we will be creating serverless highscore REST API in Go and utilize the most advanced and bleeding-edge open-source technologies such as Faasd(OpenFaaS engine) and CockroachDB(our cluster database). Keep in mind that we will actually need a server to do serverless computing :) (Plot Twist) In this 1st part, we will be setting up the infrastructure side for Hetzner Cloud with Terraform then in the 2nd part we will develop/deploy our functions with help of faas-cli....

September 8, 2021 · 5 min · 1002 words · Talha Altinel
blue-gopher-background

Localstack with Terraform and Docker for running AWS locally

The Intro Hello everyone, in this post I will be demonstrating how you can run localstack with Terraform and Docker and give you a proof of concept go application so you can tweak it according to your logic and follow anything you want to do such as integration/system tests for AWS services in your own CI/CD or localhost. Github Repository for PoC(proof of concept): hotdog-PoC-repository Requirements: Docker docker-compose Terraform Go aws CLI A bit of lambda, dynamodb and kinesis knowledge Localstack is a testing/mocking framework for developing Cloud applications locally....

July 3, 2021 · 4 min · 789 words · Talha Altinel