Ancestry
A reusable messaging profile card that loads in fewer round trips
A mini-profile component for member messaging, built to show who you are talking to with fewer network calls, and tested to 94% coverage.
- Sector
- Consumer technology (family history)
- Scale
- Enterprise
- Role
- Built the component, its retrieval approach and its tests
- Stack
The situation
When members of a family-history service message each other, they need to see who they are talking to: a name, a photo, how they are connected.
That small profile card appears every time a conversation opens.
The problem
Every piece of information on that card that has to be fetched separately is another round trip across the network, and the person waits for each one.
A card that needs several separate requests before it can show a name feels slow; on a phone, each extra request also costs battery.
What was done
A reusable mini-profile component was built for messaging, organized with the Model-View-Controller pattern.
- Its retrieval approach reduced the number of network hops needed to show a profile, so the card appeared sooner and used less of the device's network and battery.
- The component was covered by unit tests at 94%, and the RxJava parts at 80%, high enough to pass the SonarQube release gates.
- It was deployed through CI/CD on AWS, with Terraform, Jenkins and Harness.
The result
One tested component that messaging features could reuse, showing a profile with fewer network calls, and passing every release gate on the way to production.Sources
- I. Grigorik, High Performance Browser Networking, O'Reilly.