Skip to content
← work
Telecom

Sales Lead & Order Platform · Lead to installation

Module Lead · Telus Digital

Java 21 and Spring Boot services on a 17-microservice sales lead and order platform for a US broadband provider. Owned a feature end to end, made downstream calls safe to retry, closed security and PCI findings across the platform, and took one service from zero tests to 654 at 97% coverage.

The mandate

A broadband sale is not finished when the customer says yes. The lead has to become an account and an order, pass customer and credit verification, be checked against what can actually be sold at that address, get routed to the right order-automation system, and end with an install on the calendar. When any of those steps fails, a sales agent has to pick the order up and finish it by hand.

The platform does all of that for a US broadband provider: 17 microservices, 2 shared libraries, an Angular app agents work in, and Oracle underneath. Leads arrive from partner and retail channels through the B2B Submit Lead Request API and are routed to one of three order-automation systems.

I joined as Module Lead and worked across the whole lead-to-installation journey — backend services first, plus the Angular screens agents use.

What I shipped

Feature ownership

  • Pre-Install orders, end to end. New optional fields on the Submit Lead Request API, a new Oracle table and scheduling module, the Angular screens that show it, and the fallout rules for orders that split into two work orders. Agents can't complete a partly automated lead until its schedules are confirmed.
  • Lead-to-installation work across customer and credit verification, product eligibility, installation types and install scheduling.
  • Fallout leads that were wrongly auto-cancelled. Some partner fallout leads are worked outside the platform with no status callback, so they sat as Active and were auto-cancelled after 7 days, even when the order had reached billing. That skewed lead-status reporting. I moved them to the right final state with no new configuration.

Reliability

  • Safe retries. Added idempotency transaction-id headers to 6 downstream endpoints. The ID stays the same across retries, so downstream services can drop duplicates.
  • Retries that don't make things worse. One service retried on any exception, and because the downstream system caches responses by transaction ID, a retry after a timeout just returned the cached error. I limited those retries to HTTP 500.
  • Intermittent connection failures ("connection prematurely closed") fixed with a root-cause analysis, WebClient connection tuning and up to 3 retries on error responses.
  • Request and response header logging across 10 services, so a single order can be traced end to end in the message log and Splunk.

Security and compliance

  • No more database details in error responses. A shared exception handler in the common libraries, rolled out to 8 services: full details go to server logs, clients get a generic message.
  • A PCI audit finding closed. Agents could re-enable disabled buttons by editing the page. Server-side checks now block those actions even if the UI is tampered with.
  • Critical Log4j and Tomcat CVEs patched in all 17 services, working around a Spring Boot and Spring Cloud version conflict.

Tests and quality gates

  • 0 → 654 tests for one service, written from scratch: 97% instruction and 93% branch coverage.
  • 12 → 309 tests for another, about 25x.
  • A 90% JaCoCo line and branch gate in the Maven build, so coverage can't quietly slip.
  • About 72% of the ~31,000 lines I added are tests.

Production support

  • Production issues traced with Splunk and fixed at the source, including database save failures from columns that were too narrow (widened 8x) and null-pointer failures that stopped follow-up tasks from being created.

Delivery

  • 36 stories over 10 two-week sprints: 94% done and every one at least through QA. About 39% features, 36% defect and production fixes, and the rest security, reliability and modernization.
  • 226 commits across all 20 repositories in a codebase shared with roughly 30–40 contributors per repo.
  • Coordinate API contracts and releases with the automation, QA and DevOps teams, review merge requests, and mentor teammates on the lead domain and on AI tools.

How I use AI on this work

I plan stories as Kiro specs, then use Claude Code and Gemini CLI for multi-file changes, test writing and root-cause analysis. Everything they produce gets reviewed before merge the same way a teammate's code would. The test numbers above come from that loop: the tools write a lot of the test code quickly, and the review decides which tests actually check something.

What I learned

Retries need a contract on both sides. Adding a retry is easy. Making it safe means the caller sends a stable ID, the receiver de-duplicates on it, and both agree on which failures are worth retrying. Get one side wrong and a retry turns a temporary failure into a cached one.

A coverage gate protects the tests you already wrote. Writing 654 tests is a one-time effort. The 90% build gate is what stops coverage from wearing down over the next hundred merges.

Fix security at the layer that can't be edited. If the only thing stopping an action is a disabled button, anyone with browser dev tools can undo it. The rule has to live on the server.

/stack

  • Java 21
  • Spring Boot
  • Spring Security
  • Spring WebFlux
  • Spring Data JPA
  • Oracle
  • Apache Kafka
  • REST
  • SOAP
  • GraphQL
  • Angular 20
  • TypeScript
  • JUnit 5
  • Mockito
  • JaCoCo
  • GitLab CI/CD
  • Splunk

/related writing