// Articles
Guides, tutorials, and comparisons to help you build better backend applications.
When a backend should receive webhooks and when it should poll an API, comparing latency, reliability, rate limits and operational cost, why most production integrations end up doing both, and a Go service that takes webhooks and reconciles with a scheduled poll.
A practical review of the twelve factors for backends running on AWS, GCP and Kubernetes today, which ones every service should still follow, where secrets managers, containers and agents have changed the advice, and how to apply them without a pile of infrastructure scripts.
When a service should call another and wait, when it should publish a message and move on, what each choice does to latency, availability and consistency, and how to combine both in one request.
What the database-per-service pattern requires, the isolation levels from shared schema to separate servers, how to query across services without shared tables, and an event-fed read model in Go.
How bulkheads stop one slow dependency from taking down a whole service: concurrency limits per dependency, separate connection pools, isolated worker queues, and a tested Go implementation.
Accept an order, reserve inventory, enqueue fulfillment and store packing labels, with Encore provisioning Postgres, Pub/Sub, object storage and cron in your own AWS account.
Post balanced journal entries, keep an append-only ledger and emit transaction events for statements and reconciliation, with Encore in your own AWS account.
Model shipment status changes as events, update a tracking store and fan out to webhooks and partners, with Encore Pub/Sub or SNS/SQS and Pub/Sub by hand.
Follow an order through separate services for catalog, payments, inventory, and notifications.