YOUR DIGITAL HUB

Expertise

Go expertise: APIs and services

Go is one of the specialities of YOUR DIGITAL HUB, a custom software company. Our senior team uses it for network services, APIs and tools that have to stay simple to deploy, alongside PHP, Java and Python.

What we do with Go

  • HTTP APIs and services. Services written with the standard library (net/http), without a heavy framework, easy to read and to change.
  • Service-to-service communication with gRPC. Contracts defined in Protocol Buffers, from which client and server code is generated.
  • Command-line tools. Migration, import or administration tools distributed as a single binary.
  • Concurrent processing. Workers, message queue consumers and data pipelines built on goroutines and channels, with explicit handling of cancellation and timeouts.
  • Infrastructure components. Gateways, proxies, agents and scheduled jobs delivered as containers.
  • Targeted rewrites. Extracting into Go the part of an existing application that concentrates the load, without rewriting the rest.

When Go is the right choice

  • The service handles many simultaneous connections: the concurrency model of the language and its small memory footprint suit that well.
  • Deployment has to stay simple: a static binary, a minimal container image, a fast start.
  • The code has to stay readable by the whole team: the language is deliberately small and its formatting is enforced.
  • You want few dependencies: testing, benchmarking, profiling and race detection ship with the language.

When to look elsewhere

  • For a business application rich in rules, administration screens and data access, Java with Spring Boot or PHP with Symfony provide more ready-made building blocks.
  • For scientific computing, data or machine learning, Python's libraries have no equivalent in Go.
  • The language offers few abstractions: error handling is verbose and modelling a complex domain takes more code.
  • If the team that will maintain the software does not practise Go, that learning cost belongs in the decision.

How we work

Automated tests rely on the testing package of the standard library, with table-driven tests and the race detector switched on. Every change goes through code review, then through continuous integration that formats, analyses, tests and builds the binary before merging. Documentation (architecture decisions, API contracts, operating procedure) is kept up to date in the repository. Security is handled from the design stage: input validation, timeouts on every network call, secrets kept out of the code and tracking of vulnerable dependencies.

Related services

Do you have a service to build, or part of an application to rewrite in Go? Describe your project.

Let's talk about your project. Send us the essentials.

Tell us the context, whether it is a new build, a takeover or a migration, the technologies in place and your target date.