Back end
Go development in Tunisia.
Go: small, fast services that stay easy to run. Go is a compiled language built for network services.
- Compiled
- Goroutines
- Single binary
On this page
A Go backend ships as one small binary, starts in milliseconds and serves many requests at once on little memory. We use it when a backend has to stay quick and inexpensive to host as the product grows.
01When to choose it
When Go is the right call.
Choose Go when the backend is the product's engine: several services, many concurrent users, payments, messaging or background work that must not fall over. Concurrency is part of the language, so one modest server handles a load that would need several in an interpreted runtime.
It is less suited to a first prototype that is mostly screens and forms, where a JavaScript or Python framework gets to a demo sooner. A common split is Go for the core services and a TypeScript front end in React or Next.js.
Go, Node.js or Python: by the work the backend does.
Most backends can be written in any of the three. The difference shows in what the backend spends its time doing.
APIs between a front end, a database and other services
- Go
- Good. More code to write, less to run.
- Node.js
- Best fit when the front end is TypeScript: shared types and one language.
- Python
- Good, fastest to write with Django for forms and admin screens.
Many users at once, chat, live updates
- Go
- Best. Concurrency is part of the language.
- Node.js
- Good for connections that mostly wait; heavy work blocks everything.
- Python
- Weakest of the three without extra infrastructure.
Long-running jobs and schedulers
- Go
- Best. Workers run for months on little memory.
- Node.js
- Works with a queue and separate workers.
- Python
- Works with a queue and separate workers.
AI, data processing, machine learning
- Go
- Call it from Go; do not write it in Go.
- Node.js
- Fine for calling model APIs.
- Python
- Best. The data and AI tooling lives here.
Lowest hosting cost as the product grows
- Go
- Best. Small binaries, little memory.
- Node.js
- Moderate.
- Python
- Moderate to high for the same load.
Easiest to hire for
- Go
- Smallest pool; good engineers learn it in weeks.
- Node.js
- Largest pool.
- Python
- Large pool.
A back office of forms over a database
- Go
- Slowest to write.
- Node.js
- Good with NestJS.
- Python
- Fastest with Django.
Dextra's backend is Go, because it carries payments, chat and background work. This website's content system runs on Node.js. We would use Python for the part of a product that is data or machine learning.
02Strengths
What Go does well.
- 01Concurrency
- Goroutines and channels make it normal to serve thousands of connections and run background work in the same process.
- 02Cheap to host
- Low memory use and fast start-up. A small VPS runs several Go services comfortably.
- 03Simple to deploy
- One static binary in a minimal container. No runtime to install, few moving parts to patch.
- 04Readable by design
- A small language with one formatting style. A new developer reads someone else's Go without a style guide.
03Limits
Where Go falls short.
Every tool has a cost. These are the ones we tell you about before you commit, not after.
- 01More code for simple CRUD
- Go has less framework magic. Forms-over-a-database back offices are quicker to write in Django or NestJS.
- 02Smaller hiring pool
- There are fewer Go developers than JavaScript or Python developers, in Tunisia and elsewhere. Good backend engineers pick it up in weeks.
- 03Not for data science
- Machine learning and data tooling live in Python. We keep that part in Python and call it from Go.
04What we build
What we build with it.
01
APIs for web and mobile.
REST and gRPC backends behind a Flutter app and a Next.js site, with authentication, roles and rate limits.
02
Payment and billing services.
Checkout, provider adapters, webhooks with signature checks, and reconciliation that survives retries.
03
Real-time messaging.
Chat and notifications over WebSockets, with delivery that copes with flaky mobile networks.
04
Workers and schedulers.
Queues, cron-style jobs and data pipelines that run for months without attention.
How we run Go on Dextra.
Dextra's whole backend is Go. These are counts and practices from that code, read on 24 November 2026.
- 01Six services, one deployable
- Identity, billing, coaching, programmes, messaging and notifications. Each service is its own module with its own tests, and they are started from one server command, so a small team runs one process and not six.
- 02Each service owns its data
- 479 migrations, kept beside the service that needs them and applied by the pipeline.
- 03Tests
- 827 test files. Unit tests on the rules, integration tests against a real database, and contract tests for each payment provider.
- 04Payments behind one interface
- Every provider implements the same small interface: start a payment, verify it, check the webhook signature. Adding a provider does not touch checkout.
- 05AI calls treated as untrusted
- Requests to language models go through guards on the way in and out, each prompt carries a version, and a labelled test set must pass before a model or prompt changes.
- 06Background work
- Reminders and scheduled messages run in workers with their own tests, not inside a request.
What production taught us.
Three lessons from Go backends we run.
- 01"Nothing available" read as "everything available"
- Dextra's billing service correctly reported that no payment provider was configured. The apps treated an empty answer as a failed call and showed every provider anyway, and the payment then failed. An empty answer is now an answer.
- 02A feature that had never worked
- On DoWell, creating a session had been broken since it was written, for two reasons that were both ours. Nothing exercised the whole path. The lesson: each flow needs one test that runs it from the request to the database.
- 03Two histories, one set of migration numbers
- Bringing an earlier product's work into Dextra meant merging two lines of database migrations across six services. Several numbers collided. We resolved them one by one. The lesson: check for collisions before a merge, not after a failed deploy.
05Architecture
The shape we usually start from.
A starting point. We adjust it for each project once the scope is written down.
- 01
Services
A modular monolith or a few services split by domain (identity, billing, messaging), each with its own package boundary and tests.
- 02
Data
PostgreSQL with migrations in the repository, plus Redis for cache, rate limits and queues.
- 03
Contracts
Versioned HTTP APIs with typed requests and responses, and contract tests for every third-party provider.
- 04
Run and observe
Small Docker images, health checks, structured logs and metrics, deployed by CI to your own server or cloud.
06Hiring and cost
Hiring, handover and cost.
Go developers are fewer than JavaScript developers, so the handover matters. We keep to the standard library and a short list of well-known packages, and we write the tests and the run book a new engineer needs on day one.
Cost is driven by the number of services, integrations and business rules, not by the language. Hosting is usually where Go saves money over time. The number comes out of scoping.
07Questions
Questions we get asked.
Go or Node.js for our backend?
Go when the backend carries heavy concurrent load, several services or long-running work, and you want low hosting cost. Node.js when the team is JavaScript end to end and the backend is mostly glue between the front end, the database and third-party APIs.
Is Go a good choice for a startup MVP?
For an MVP whose risk is the backend (payments, real time, heavy integrations), yes. For an MVP that is mostly screens, start with a faster framework and move the hot paths to Go later if they need it.
Can you take over an existing Go codebase?
Yes. We start with a read of the code, the tests and the deployment, then tell you what is sound, what is risky and what we would change first.
Do you build Go backends for mobile apps?
Yes. Dextra, our own product, pairs Flutter apps with a Go backend, so that is a combination we run in production every day.
How large is a Go backend three engineers can run?
Ours is six services, 479 migrations and 827 test files, deployed as containers on one server. It stays manageable because the services share one repository, one pipeline and one way of doing things.
Do you start with microservices?
No. We start with one deployable split into clear modules, and separate a service only when it needs to scale or deploy on its own. Dextra's services run from one command for that reason.
08Related
Where to go next.
The service
Not sure this is the right stack?
Tell us what you are building. We will tell you which stack we would use and why, in writing, before we talk about a number.