Cutting a reporting endpoint's response time by ~75%

OrderHub, Multi-Tenant Order Platform · Intetics

Problem

  • A reporting endpoint in the OrderHub API took about 1.2 seconds to respond.

What I did

  • Restructured the PostgreSQL queries behind the endpoint.
  • Added indexes for the data the endpoint reads.
  • Cached results in Redis.

Result

  • The response time dropped by ~75%, from ~1.2s to ~300ms.

Tech

  • PostgreSQL
  • Redis
See the project: OrderHub, Multi-Tenant Order PlatformBack to home