Locality, connection reuse, load distribution, and concurrency can make microservices practical for low-latency workloads, when their complexity is worth it.
Production ownership means restoring service, finding the testing or design gap that let a bug escape, and improving the system so the same failure does not return.
Blind retries can duplicate side effects; resilient systems need business-aware reconciliation, idempotency, or compensation when outcomes are uncertain.
A credible second design challenges architectural bias, exposes hidden tradeoffs, and validates whether the first solution fits the actual constraints.
Compare unary gRPC calls with bidirectional streams: extra throughput brings acknowledgment tracking, failure handling, and load-distribution complexity that may exceed your needs.
Use glue services as an anti-corruption layer that translates legacy protocols at the edge, allowing the new platform to evolve without forcing clients to migrate immediately.
Shift small percentages of traffic between old and new platforms with weighted load balancing, limiting migration risk and making rollback a routing change.
This post explores the pitfalls of relying on production traffic to validate changes and offers better strategies like canary releases, shadow traffic, synthetic traffic, and smoke tests to reduce risk and catch issues early.
Route requests for the same key to a predictable owner to reduce stale reads and coordination overhead, while retaining replication for durability and failover.
Microservices do not have to mean one centralized deployment per capability. Reusing the same service codebase inside multiple platforms can preserve autonomy, reduce cross-cell dependencies, and avoid rebuilding the same logic from scratch.
Mirror live traffic to a secondary system for migration testing or out-of-band inspection. Responses stay off the primary path, but sidecar overhead and parallel infrastructure still need evaluation.
Package internal frameworks, conventions, and constraints as discoverable Agent Skills so coding agents can apply institutional knowledge, while accounting for duplication with existing documentation.
Combine unit, service, and platform tests on pull requests with nightly customer-journey, performance, and chaos tests to validate faster code generation.
Persistent HTTP/2 connections can concentrate gRPC requests on a few instances. Use request-aware load balancing or client connection pools to distribute traffic.
Availability reroutes traffic around failures; resiliency defines how processing continues or recovers. Cached configuration illustrates how to survive a failed dependency.
Article
americanexpress.io · Benjamin Cane and Tristan Fuentes
Use AGENTS.md to capture project architecture, build instructions, testing practices, and team constraints, then have coding agents learn the codebase before making changes.
Code coverage is a guide, don’t let it give you false confidence. Test the happy path, and the unexpected ones. Validate function outputs against the input you provide. 100% Coverage is easy. Writing reliable code is not.
Agentic coding tools are more than just a fancy chat interface. To get the most out of them, you need to shift your mindset from giving simple directions to defining outcomes with guidance and guardrails. By providing context and allowing agents to take more autonomy, you can achieve better results and work more efficiently.
Infrastructure-as-Code reduces manual provisioning mistakes and keeps environments consistent, making test results more representative of production behavior.
Fixing slow build pipelines and flaky tests improves delivery for the whole team, multiplying the impact of work beyond individual feature development.
Architecture loses its original intent as teams and requirements change. Component responsibilities, contracts, and controlled entry points help guide future changes.
In this post, I discuss the importance of setting performance targets before conducting tests, how to define them, and the need for ongoing monitoring in production.
Pre-populating caches reduces misses but adds synchronization and rebuild overhead. Retain cache-aside as a fallback when updates are missed or the cache is lost.
Build small tools to remove repetitive work, minimize maintenance through simple CLIs and few dependencies, and replace them when a better existing tool appears.
Keep challenging decisions that introduce serious production, operational, or security risks. When the disagreement is a preference, support the chosen direction and learn from implementation.
Canary releases limit exposure through gradual traffic shifts but require versions to coexist. Compare that complexity with blue/green cutovers against the risk your system can tolerate.
Recognize experience-driven bias in technical decisions, challenge selective use of data, and seek an impartial view without steering it toward your preferred solution.
Architecture Decision Records capture context, alternatives, and reasoning. Their value depends on an inclusive process that encourages debate and makes decisions accessible.
During shutdown, fail readiness checks while keeping the listener open until routing updates propagate and in-flight requests drain, then stop accepting connections.
Persistent gRPC connections can keep sending requests to old instances during failover. HTTP/2-aware load balancing or periodic reconnection helps move that traffic.
Validate inputs inside reusable methods instead of relying on checks elsewhere. Future callers may reuse the code without knowing the assumptions that originally made it safe.
Small latency reductions compound across microservice calls, improving end-to-end response time and freeing capacity even when individual milliseconds seem insignificant.
Store requests during a dependency outage and forward them after recovery. Store and Forward requires degraded responses, failure detection, and controlled replay instead of blind retries.
Keep only essential work on the real-time request path and defer audit logging, notifications, and enrichment to event-driven processing to reduce response latency.
Production software requires API contracts, data models, deployment pipelines, observability, and runbooks alongside coding. Faster code generation does not remove that engineering work.
Choose between individual contribution and people leadership by what motivates you: building systems or developing people. Consider future role availability and keep both skill sets sharp.
Keeping service calls within a region reduces network latency and failure exposure, but regional isolation adds data-replication, routing, failover, and operational complexity.
Kube-proxy configures routing rules rather than forwarding requests itself. Connection-level routing can pin multiplexed gRPC traffic to one pod, making request-aware balancing important.
In this post, we explore the concept of operational flags—long-lived toggles that help manage system behavior at runtime for resiliency and manageability.
Analytics and batch jobs can overload databases serving live requests. Separate analytics through published events or run reports against dedicated read-only replicas.
In this post, we explore how minor oversights like not setting timeout values can exacerbate issues in services, and the importance of testing failure scenarios to mitigate such risks.