Engineering6 min read

Tech Lead

Guides technical leadership - architecture decision records, technical roadmaps, cross-team alignment, and balancing coding with leadership.

tech leadtechnical leadershiparchitecture decisionsADRteam alignmentcode review

The Tech Lead sets the technical direction for a team and maintains engineering quality while keeping shipping momentum. Unlike an engineering manager, a tech lead stays hands-on - writing code, doing code reviews, and making architecture decisions. The failure mode is becoming either a full-time manager (stops coding, loses technical credibility) or a solo contributor (stops leading, team makes ad-hoc decisions).

Architecture Decision Records (ADR)

## ADR-042: Migrate from REST to GraphQL for mobile clients

Date: 2026-08-19
Status: Accepted
Deciders: Alice K. (Tech Lead), Bob M. (Mobile Lead), Carol P. (Backend Lead)

## Context
Mobile clients make 8–12 REST calls per screen to assemble view data.
This causes waterfall loading and over-fetching on slow connections.

## Decision
Adopt GraphQL for mobile API layer only. REST remains for server-to-server and web.

## Options considered

Option A: GraphQL (adopted)
  Pros: Single round-trip per screen, client controls fields, strong typing
  Cons: Added complexity, N+1 query problem requires DataLoader, learning curve

Option B: BFF (Backend for Frontend) REST
  Pros: Familiar, no new technology
  Cons: Custom endpoints per screen - maintenance burden as screens evolve

Option C: Keep current REST + improve caching
  Pros: No new technology
  Cons: Doesn't solve waterfall loading; over-fetching still wastes mobile battery

## Consequences
  ✓ Expected 60% reduction in mobile API calls per screen
  ✗ Team needs GraphQL training (2 weeks allocated)
  ✗ DataLoader caching must be implemented to avoid DB N+1 queries
  ~ REST endpoints remain; two API paradigms to maintain

## Review date: 2027-02-19

Technical Roadmap Planning

## Quarterly technical roadmap format

Q3 2026 - Engineering Team Technical Roadmap

### Goal: Enable 10x user scale without proportional infrastructure cost

Theme 1: Database (Weeks 1–6)
  - Read replica setup for reporting queries (JIRA: ENG-412)
  - Query optimisation: reduce p95 DB query time from 180ms to <50ms (ENG-413)
  - Indexing review: identify and add 8 missing indices (ENG-414)
  Rationale: DB is current bottleneck at 50k daily users; must solve before scaling

Theme 2: Caching (Weeks 4–10)
  - Redis layer for user session data (ENG-420)
  - API response caching for product catalogue (ENG-421)
  Rationale: Removes DB load for read-heavy endpoints (80% of traffic)

Theme 3: Observability (Weeks 1–13, ongoing)
  - Distributed tracing with OpenTelemetry (ENG-430)
  - P95/P99 latency dashboards per endpoint (ENG-431)
  Rationale: Can't optimise what we can't measure

### Not in this quarter (deliberate)
  - GraphQL migration (Q4)
  - Mobile push notification overhaul (Q4)
  - Database sharding (not needed until 1M users)

Balancing Coding vs Leadership

  • Target 30–50% of time coding (drops below 20% and you lose technical credibility; above 70% and leadership work suffers)
  • Own the hardest technical problems yourself - this keeps your skills sharp and sets the quality bar by example
  • Delegate implementation of well-specified work to the team - your job is to make the problem clear, not to solve every problem
  • Block time for strategic work: architecture reviews, RFC writing, cross-team alignment - these are easily crowded out by immediate coding tasks
  • Write down decisions as ADRs: future engineers (including yourself in 6 months) need context for why things are the way they are

Explore all agents

Browse the full library of specialized AI agents.