---
title: "Go Development: Services, Agents and WebRTC | VulCode"
description: "What we build in Go: agents on nodes and inside client machines, a messenger server with WebRTC, telemetry and a Terraform provider, on real screens."
url: "https://vulcode.com/en/technologies/go"
lang: "en"
---

[Home](https://vulcode.com/en) [Work](https://vulcode.com/en/work) [Technologies](https://vulcode.com/en/technologies)

# Go Development: Services, Agents and WebRTC

We pick Go for services that run on many machines and should need as little attention as possible: node agents, telemetry, messenger servers and networked games.

[Free quote](https://vulcode.com/en/quote) [Full pricing](https://vulcode.com/en/services/pricing)

## The projects we write in Go

Projects from the portfolio and the case studies, each with a short note on what this language does in it.

- [**Plazer: hub and community server** WebSocket, WebRTC via pion, PostgreSQL and Redis.See the project](https://vulcode.com/en/work/case-studies/plazer)

- [**Flaem: container daemon** A fork of Pterodactyl Wings that runs Docker containers on a node.See the project](https://vulcode.com/en/work/case-studies/flaem)

- [**Flaem: VPS agent** Runs inside the client's machine and opens every connection itself.See the project](https://vulcode.com/en/work/case-studies/flaem)

- [**Flaem: telemetry** An in-memory sample store with several resolutions and disk checkpoints.See the project](https://vulcode.com/en/work/case-studies/flaem)

- [**Flaem: Terraform provider** Services, DNS and firewall as code through the public API.See the project](https://vulcode.com/en/work/case-studies/flaem)

- [**Pharos** Monitoring and a status page.See the project](https://vulcode.com/en/portfolio/platforms/pharos)

- **Lunatic Studios games** Small networked games and chess.

## When we choose it, and when we do not

Where we use it

- ### Agents on client servers
  The Flaem VPS agent and container daemon are single binaries with no runtime. A build for another system or processor comes from the same code by changing variables at compile time.

- ### Services that must not hang
  The context package carries a deadline through every call down the line, so the agent never waits forever on a service that has gone quiet. When the other side is down, the agent lengthens the gaps between attempts instead of flooding it with requests.

- ### Live connections and voice
  Plazer's hub and community server hold WebSocket connections and run voice calls over WebRTC with the pion library. Each connection is a light goroutine, not a separate system thread.

- ### A server the client runs on their own hardware
  Plazer's community server starts with one command from a Docker image, together with PostgreSQL and Redis. One Go program is easy to set up and update on a VPS, at home or on a local network.

- ### Monitoring that works when the rest is down
  Pharos is one Go program with an embedded SQLite database: it checks services over HTTP, TCP and TLS and runs a public status page. Monitoring must not depend on what it monitors, so it needs no separate database or services next to it.

- ### Terraform and projects already written in Go
  The Flaem Terraform provider is built on HashiCorp's official framework, which exists only in Go. The container daemon is a fork of Pterodactyl Wings and talks to Docker through its official Go client.

When we choose something else

- ### A panel with many screens
  We write panels with forms, tables and charts in TypeScript and React. Plazer's web app talks to the Go hub through an API, and the Go services take care of data and connections.

- ### Cryptography in the browser
  Go compiled to WebAssembly carries its whole runtime along, so the module is heavy. Plazer's encryption is in Rust, which ships a light module to the browser.

- ### Billing in a platform core
  In Go a field nobody set holds its zero value, so a missing amount silently becomes zero. Flaem billing is in Rust, where a missing value has to be handled explicitly.

- ### Supervising many processes
  An unhandled panic in one goroutine ends the whole program. The router on Flaem nodes is in Elixir, because an OTP supervisor restarts only the broken part while the rest keeps running.

- ### A bot or script that changes often
  We write Discord bots and housekeeping scripts in Python. A fix goes in without a build, and discord.py has slash commands and panels ready.

- ### A module for a hosting billing system
  WHMCS, HostBill, Paymenter and Blesta load modules only in PHP. The Flaem modules for them are in PHP and talk to the platform through its API.

## Go or something else

A technology has to fit the place the code will run and the team that will take it over. The final choice is made in the quote, together with you.

| Need | Go | Rust |
| --- | --- | --- |
| An agent on thousands of machines | simple code, fast builds | good too, slower to start |
| A WebRTC server | the mature pion library | fewer ready tools |
| Development by a changing team | easy to take over | needs experience |
| Billing and amounts | zero values have to be watched by tests | a missing value handled explicitly in the type |
| Build time | short even in a large project | noticeably longer |
| Cryptography in the browser | a heavy module with the whole runtime | a light WebAssembly module |
| A Terraform provider | HashiCorp's official framework | only unofficial libraries |

## The libraries these projects stand on

From the dependency files of [our repositories](https://vulcode.com/en/opensource). With each, one sentence on what we use it for.

- `pion/webrtc` voice and video in Plazer

- `go-chi, coder/websocket` the hub's HTTP and WebSocket

- `pgx, go-redis, goose` PostgreSQL, Redis and migrations

- `docker/docker` container control on a node

- `gRPC and protobuf` contracts between the core and nodes

- `terraform-plugin-framework` the Terraform provider

## Our changes to other people's Go projects

43 changes in 25 projects. The maintainers of these projects reviewed our code and merged it into theirs.

- [**urfave/cli** 24,329 stars1 change](https://vulcode.com/en/opensource/contributions/urfave-cli)

- [**twpayne/chezmoi** 22,342 stars2 changes](https://vulcode.com/en/opensource/contributions/chezmoi)

- [**PuerkitoBio/goquery** 14,995 stars2 changes](https://vulcode.com/en/opensource/contributions/goquery)

- [**hajimehoshi/ebiten** 13,647 stars3 changes](https://vulcode.com/en/opensource/contributions/ebiten)

- [**fission/fission** 8,950 stars1 change](https://vulcode.com/en/opensource/contributions/fission)

- [**concourse/concourse** 7,944 stars1 change](https://vulcode.com/en/opensource/contributions/concourse)

- [**dromara/carbon** 5,225 stars1 change](https://vulcode.com/en/opensource/contributions/dromara-carbon)

- [**alecthomas/chroma** 5,086 stars1 change](https://vulcode.com/en/opensource/contributions/chroma)

- [**olekukonko/tablewriter** 4,824 stars1 change](https://vulcode.com/en/opensource/contributions/tablewriter)

- [**knadh/koanf** 4,244 stars1 change](https://vulcode.com/en/opensource/contributions/koanf)

- [**itchyny/gojq** 3,821 stars1 change](https://vulcode.com/en/opensource/contributions/gojq)

- [**versity/versitygw** 3,157 stars12 changes](https://vulcode.com/en/opensource/contributions/versitygw)

## Services we build in Go

Each has a starting price and a free quote.

- ### [Integrations and automation](https://vulcode.com/en/services/api-integrations)
  Network services and integrations that run unattended, from PLN 999 (about EUR 220).

- ### [Pterodactyl](https://vulcode.com/en/services/integrations/pterodactyl)
  Pterodactyl Wings is written in Go and we know it inside out.

- ### [Web platforms](https://vulcode.com/en/services/web-platforms)
  Platform back ends with real-time communication, from PLN 8,999.

## Frequently asked questions

Answers about Go and our projects.

- **How much does a back end or a service in Go cost?**: A network service or integration in Go starts at PLN 999 (about EUR 220) and usually takes 2-3 days, while a platform back end starts at PLN 8,999 (about EUR 2,020) and takes 2-4 months. We give the figure for your scope in a free quote.
- **Why Go and not Node.js for agents?**: A Go agent is one binary with no runtime. Nothing like Node has to be installed on the client's machine or kept at the right version.
- **Do you also fix other people's Go projects?**: Yes. We have Go changes merged into ebiten, goquery, koanf, concourse and versitygw among others. The list is on the contributions page.
- **When Go and when Rust?**: We pick Go for agents, WebRTC servers and services a changing team will develop: the code is simple and builds fast. We pick Rust for billing and for cryptography in the browser, where a missing value has to be handled explicitly in the type.
- **Will you take over an existing Go project?**: Yes. We start with an entry audit, from PLN 799 (about EUR 179): a code review and a list of risks, then a decision on what to fix and what to leave.

## Other technologies we write in

Each has its own page with projects and a comparison with the alternatives.

- ### [Rust](https://vulcode.com/en/technologies/rust)
  We write Rust where a bug costs the most: a hosting platform's core, a messenger's cryptography, a licence server and tools that run for years on other people's machines.

- ### [TypeScript, React and Node](https://vulcode.com/en/technologies/typescript-react-and-node)
  TypeScript is our default for everything you see in a browser: websites, client panels, stores and web apps, with Node and Next.js for their back ends.

- ### [C# and .NET](https://vulcode.com/en/technologies/csharp-and-dotnet)
  C# with Avalonia is our pick for native desktop apps on Windows, macOS and Linux, and .NET for libraries, emulators and plugins for Unity-based games.

- ### [Kotlin](https://vulcode.com/en/technologies/kotlin)
  We write native Android apps in Kotlin with Jetpack Compose, and use Kotlin away from phones too: in a database engine and a language interpreter.

- ### [Swift](https://vulcode.com/en/technologies/swift)
  We write native iPhone apps in Swift: the interface in SwiftUI, widgets in WidgetKit and notifications through APNs that arrive even when the app is closed.

- ### [Elixir](https://vulcode.com/en/technologies/elixir)
  We pick Elixir on the Erlang virtual machine for processes that must survive a neighbour's failure: request routers, streaming connections and caches.

- ### [Python](https://vulcode.com/en/technologies/python)
  Python is our language for Discord bots, ops scripts, monitoring and data sync: wherever writing quickly and fixing easily matter most.

- ### [PHP](https://vulcode.com/en/technologies/php)
  We write PHP where hosting runs: WHMCS modules, Pterodactyl themes, WordPress and WooCommerce plugins, small sites without a framework and APIs that must run on any server.

- ### [Java](https://vulcode.com/en/technologies/java)
  We write Java mainly for Minecraft plugins on Paper, Purpur and Folia.

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
