// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
Useful resources for building Go applications.
Keep API keys and webhook signing secrets out of your Gin repository and environment files, set them per environment, and read them in handlers and middleware, with Encore or with AWS Secrets Manager and ECS.
Accept attachments in a Labstack Echo API, stream them into object storage with size and type checks, and serve them back through short-lived signed URLs, using Encore or the AWS SDK for Go v2 with S3.
Schedule recurring work in a Labstack Echo API, such as releasing expired booking holds and purging old rows, so each run happens once however many replicas you have, with Encore, gocron or an external scheduler.
Publish an event from a Labstack Echo handler and consume it in a separate service with retries, a dead-letter queue and an idempotent subscriber, using Encore or SNS and SQS set up by hand.
Use Redis in a Labstack Echo API for idempotency keys on POST requests and a per-user recently viewed list, with Encore or with go-redis and Amazon ElastiCache.
Let clients upload files straight to S3 from a Go API with presigned PUT URLs, using the AWS SDK for Go v2 with your own bucket, IAM and CORS, or Encore's signed upload URLs on a bucket declared in code.
Connect an Echo API in Go to PostgreSQL with migrations and a local database, using Encore or pgx with Amazon RDS.
Schedule recurring work for a Gin API in Go, from robfig/cron inside the process to Encore cron jobs that keep running when the app scales to several instances.
Publish events from Gin handlers and process them in a subscriber with retries, a dead-letter queue and idempotent handling, using Encore or SNS and SQS wired by hand.
When a goroutine is enough, when you need a durable queue, and how to run retries, dead letters and scheduled jobs for a Go backend on AWS or GCP.
Run a Go Echo API on AWS with Postgres, from the Encore setup that provisions Fargate and RDS in your account to the ECS, Elastic Beanstalk and Lambda routes by hand.
Cache slow upstream calls and rate limit clients in a Gin API with Redis, using Encore's typed cache keyspaces or go-redis with ElastiCache.