// Articles

Guides and deep dives

Guides, tutorials, and comparisons to help you build better backend applications.

Filter by category: All (965)
How to Build a GraphQL API in Go with gqlgen

Schema-first GraphQL in Go with gqlgen: generating resolvers, batching N+1 lookups with a per-request dataloader, limiting query complexity, turning off introspection in production, and serving it next to the rest of your backend.

8 Min Read
Dependency Injection in Go: Constructors, Wire, Fx and Service Structs

How to pass dependencies into Go services so they are easy to test: plain constructors, interfaces for fakes, Uber's Fx container, what happened to Google Wire, and Encore service structs with initService.

8 Min Read
How to Build a Game Leaderboard Backend

Designing the backend for seasonal game leaderboards: accepting scores only from game servers, keeping each player's best score, ranking millions of players, tie-breaking, caching the top 100, and when Redis sorted sets beat Postgres.

8 Min Read
Eventarc vs Pub/Sub: Which Google Cloud Eventing Service to Use

When to route Google Cloud events with Eventarc and when to publish your own events to Pub/Sub, how the two relate, and how retries, filtering and delivery differ.

8 Min Read
ECS Scheduled Tasks: Running Cron Jobs on Amazon ECS

How to run a container on a schedule with ECS and EventBridge Scheduler, what the IAM and networking setup involves, how retries and failures behave, and how to avoid overlapping runs.

6 Min Read
CQRS Pattern: Separating Reads and Writes in a Backend

What Command Query Responsibility Segregation is, when a separate read model pays for itself, how to keep it in sync with events, and how to handle eventual consistency, redelivery and out-of-order updates.

9 Min Read
Cloud Scheduler vs Cloud Tasks: Recurring Jobs vs One-Off Work

When to use Cloud Scheduler for work on a fixed schedule and when to use Cloud Tasks for individual, delayed or rate-limited jobs, and how to combine them.

9 Min Read
Cloud Run vs Compute Engine: Containers or VMs on Google Cloud

When to run a service on Cloud Run and when on Compute Engine virtual machines, covering scaling, billing, request limits, background work, networking and what you operate yourself.

7 Min Read
Idempotency Keys for APIs: Safe Retries for POST Requests

How the Idempotency-Key header works, how to store keys so a retried POST returns the original result instead of charging twice, how to handle concurrent retries and reused keys, and how long to keep them.

11 Min Read
How to Send Transactional Email With Amazon SES From Your Backend

Verify a domain with DKIM, leave the SES sandbox, send through the SESv2 API or SMTP from Go, queue sends so a slow provider does not block requests, and handle bounces and complaints.

6 Min Read
Postgres Extensions on Amazon RDS: How to Check, Enable and Upgrade Them

Which Postgres extensions Amazon RDS supports, how to list them with SHOW rds.extensions, who can run CREATE EXTENSION, which ones need shared_preload_libraries, how rds.allowed_extensions restricts them, and how to keep extensions in migrations.

6 Min Read
Railway vs Google Cloud Run for Backend Apps

How Railway and Google Cloud Run compare for running a backend API: deploy workflow, databases, cron and background work, scaling and cold starts, and pricing in November 2026, with a Go service that deploys to Cloud Run in your own GCP project with git push.

6 Min Read